summaryrefslogtreecommitdiffstats
path: root/dimension/main.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-16 14:06:31 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-16 14:06:31 -0400
commit23229722b2abd0021c697e3f6e43f74b51e4ee41 (patch)
tree85111795e08a24a46788afc90b4b2d98620705a4 /dimension/main.c
parent7577a2b69f9a77962912753b6768b38db4e3c454 (diff)
downloaddimension-23229722b2abd0021c697e3f6e43f74b51e4ee41.tar.xz
Implement image_{width,height}.
Diffstat (limited to 'dimension/main.c')
-rw-r--r--dimension/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/main.c b/dimension/main.c
index 2bd4e10..1ea8a72 100644
--- a/dimension/main.c
+++ b/dimension/main.c
@@ -196,6 +196,8 @@ main(int argc, char **argv) {
dmnsn_symbol_table *symtable = dmnsn_new_symbol_table();
dmnsn_declare_symbol(symtable, "$file", dmnsn_new_ast_string(input));
dmnsn_declare_symbol(symtable, "version", dmnsn_new_ast_float(3.6));
+ dmnsn_declare_symbol(symtable, "image_width", dmnsn_new_ast_integer(width));
+ dmnsn_declare_symbol(symtable, "image_height", dmnsn_new_ast_integer(height));
/* Debugging option - output the abstract syntax tree as an S-expression */
if (parse) {