WIP: add a Val struct as an input/output when calling a function
This commit is contained in:
@@ -975,6 +975,7 @@ void Generator::Generate()
|
|||||||
ResizeStack();
|
ResizeStack();
|
||||||
ResizeBlockStack();
|
ResizeBlockStack();
|
||||||
ResizeEzcFrameStack();
|
ResizeEzcFrameStack();
|
||||||
|
InitializeTmpStreams();
|
||||||
filter_index = 0;
|
filter_index = 0;
|
||||||
stack_index = 0;
|
stack_index = 0;
|
||||||
ezc_frames_stack_index = 0;
|
ezc_frames_stack_index = 0;
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007-2012, Tomasz Sowa
|
* Copyright (c) 2007-2024, Tomasz Sowa
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -33,7 +33,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "pattern.h"
|
#include "pattern.h"
|
||||||
#include "utf8/utf8.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace Ezc
|
namespace Ezc
|
||||||
@@ -46,15 +45,12 @@ Pattern::Pattern()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Pattern::Clear()
|
void Pattern::Clear()
|
||||||
{
|
{
|
||||||
item_root.Clear();
|
item_root.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Pattern::CacheBlocks(Blocks & blocks)
|
void Pattern::CacheBlocks(Blocks & blocks)
|
||||||
{
|
{
|
||||||
Cache(blocks, item_root);
|
Cache(blocks, item_root);
|
||||||
@@ -67,6 +63,17 @@ void Pattern::ClearCache()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Pattern::CacheFunctions(Functions & fun)
|
||||||
|
{
|
||||||
|
Cache(fun, item_root);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Pattern::CacheObjects(Objects & obj)
|
||||||
|
{
|
||||||
|
Cache(obj, item_root);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
} // namespace Ezc
|
} // namespace Ezc
|
||||||
|
|
||||||
|
@@ -36,7 +36,6 @@
|
|||||||
#ifndef headerfile_ezc_pattern
|
#ifndef headerfile_ezc_pattern
|
||||||
#define headerfile_ezc_pattern
|
#define headerfile_ezc_pattern
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include "item.h"
|
#include "item.h"
|
||||||
#include "cache.h"
|
#include "cache.h"
|
||||||
#include "blocks.h"
|
#include "blocks.h"
|
||||||
@@ -69,20 +68,6 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void Pattern::CacheFunctions(Functions & fun)
|
|
||||||
{
|
|
||||||
Cache(fun, item_root);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void Pattern::CacheObjects(Objects & obj)
|
|
||||||
{
|
|
||||||
Cache(obj, item_root);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace Ezc
|
} // namespace Ezc
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user