diff options
author | Adrian Thurston <thurston@complang.org> | 2015-02-15 10:11:35 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-02-15 10:11:35 -0500 |
commit | e02a3e7d7369540bf020134d538c2a3f2001c5fa (patch) | |
tree | 69b8fc5f809656d9c6d3f7906bae3df1bc8b2c12 /src/program.c | |
parent | a4be5397162bc38f3b112d9ac675c37c6744f535 (diff) | |
download | colm-e02a3e7d7369540bf020134d538c2a3f2001c5fa.tar.gz |
code cleanup and movement
Diffstat (limited to 'src/program.c')
-rw-r--r-- | src/program.c | 14 |
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 ); |