summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-12-19 20:44:53 -0500
committerTavian Barnes <tavianator@gmail.com>2009-12-19 20:44:53 -0500
commit0eb3d602df451f882e107ebed47b3bce9a1e68dc (patch)
tree74290cc1c399a508a61041ad4e3a68f6851dca3e /dimension/realize.c
parent970ecabc1ad30fa74e58f3d4ad9ccf41baffb8b0 (diff)
downloaddimension-0eb3d602df451f882e107ebed47b3bce9a1e68dc.tar.xz
Make symbol table semantics line up with povray's.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index eda7056..5a13d8b 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -636,7 +636,8 @@ dmnsn_realize_string(const char *str, dmnsn_symbol_table *symtable)
symtable = dmnsn_new_symbol_table();
}
if (!dmnsn_find_symbol(symtable, "__file__")) {
- dmnsn_push_symbol(symtable, "__file__", dmnsn_new_ast_string("<string>"));
+ dmnsn_declare_symbol(symtable, "__file__",
+ dmnsn_new_ast_string("<string>"));
}
FILE *file = fmemopen((void *)str, strlen(str), "r");