updated: to the new Ezc API

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@974 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2014-10-18 18:12:04 +00:00
parent 8196fb77d1
commit 5266a7e4e5
26 changed files with 864 additions and 676 deletions

View File

@@ -96,8 +96,18 @@ void PatternCacher::DeleteOldPatterns()
void PatternCacher::CreatePattern(const Item & item, Ezc::Pattern & pattern)
{
pattern.AllowInclude(false);
pattern.ParseString(item.content);
/*
* CHECK ME
* check the rest flags from pattern_parser
* if the default values are correct
*
* IMPROVE ME
* we can add blocks and variables
*
* add caching of blocks
*/
pattern_parser.AllowInclude(false);
pattern_parser.ParseString(item.content, pattern);
if( ezc_fun )
pattern.CacheFunctions(*ezc_fun);