WIP: add a Val struct as an input/output when calling a function

This commit is contained in:
tomasz.sowa committed 2024-12-11 17:29:32 +01:00
1 parent 6e2fe34a5c
commit 0ac4df97e9
3 files changed
+14 -21

No files matched your search

+13 -6
View File
@@ -4,8 +4,8 @@
* Author: Tomasz Sowa <t.sowa@ttmath.org>
*/
/*
* Copyright (c) 2007-2012, Tomasz Sowa
/*
* Copyright (c) 2007-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -33,7 +33,6 @@
*/
#include "pattern.h"
#include "utf8/utf8.h"
namespace Ezc
@@ -46,15 +45,12 @@ Pattern::Pattern()
}
void Pattern::Clear()
{
item_root.Clear();
}
void Pattern::CacheBlocks(Blocks & blocks)
{
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