summaryrefslogtreecommitdiff
path: root/src/program.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-02-15 10:11:35 -0500
committerAdrian Thurston <thurston@complang.org>2015-02-15 10:11:35 -0500
commite02a3e7d7369540bf020134d538c2a3f2001c5fa (patch)
tree69b8fc5f809656d9c6d3f7906bae3df1bc8b2c12 /src/program.c
parenta4be5397162bc38f3b112d9ac675c37c6744f535 (diff)
downloadcolm-e02a3e7d7369540bf020134d538c2a3f2001c5fa.tar.gz
code cleanup and movement
Diffstat (limited to 'src/program.c')
-rw-r--r--src/program.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/program.c b/src/program.c
index cdd0f335..66fe3509 100644
--- a/src/program.c
+++ b/src/program.c
@@ -188,18 +188,8 @@ Program *colm_new_program( RuntimeData *rtd )
initPoolAlloc( &prg->headPool, sizeof(Head) );
initPoolAlloc( &prg->locationPool, sizeof(Location) );
- Int *trueInt = (Int*) 1; //treeAllocate( prg );
-// trueInt->id = LEL_ID_BOOL;
-// trueInt->refs = 1;
-// trueInt->value = 1;
-//
- Int *falseInt = (Int*) 0; //treeAllocate( prg );
-// falseInt->id = LEL_ID_BOOL;
-// falseInt->refs = 1;
-// falseInt->value = 0;
-
- prg->trueVal = (Tree*)trueInt;
- prg->falseVal = (Tree*)falseInt;
+ prg->trueVal = (Tree*) 1;
+ prg->falseVal = (Tree*) 0;
/* Allocate the global variable. */
colm_alloc_global( prg );