diff options
author | David Walter Seikel | 2012-01-21 10:04:54 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 10:04:54 +1000 |
commit | 02c023c8047a82fcc31c67542a0cfd2e5de2deb6 (patch) | |
tree | 160ad3272a68cc6aaa64b73256ecdf50d031323e /LuaSL/src/LuaSL_compile.c | |
parent | Add a script for LSL constants. (diff) | |
download | SledjHamr-02c023c8047a82fcc31c67542a0cfd2e5de2deb6.zip SledjHamr-02c023c8047a82fcc31c67542a0cfd2e5de2deb6.tar.gz SledjHamr-02c023c8047a82fcc31c67542a0cfd2e5de2deb6.tar.bz2 SledjHamr-02c023c8047a82fcc31c67542a0cfd2e5de2deb6.tar.xz |
Commentary about freeing AST nodes by the parser.
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 40b7b00..bd619bb 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -220,8 +220,10 @@ static LSL_Leaf *newLeaf(LSL_Type type, LSL_Leaf *left, LSL_Leaf *right) | |||
220 | void burnLeaf(void *data) | 220 | void burnLeaf(void *data) |
221 | { | 221 | { |
222 | LSL_Leaf *leaf = data; | 222 | LSL_Leaf *leaf = data; |
223 | |||
223 | if (leaf) | 224 | if (leaf) |
224 | { | 225 | { |
226 | // TODO - the problem here is that lemon wants to free these after a reduce, but we might want to keep them around. Should ref count them or something. | ||
225 | // burnLeaf(leaf->left); | 227 | // burnLeaf(leaf->left); |
226 | // burnLeaf(leaf->right); | 228 | // burnLeaf(leaf->right); |
227 | // TODO - Should free up the value to. | 229 | // TODO - Should free up the value to. |