summaryrefslogtreecommitdiff
path: root/src/program.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-01-02 15:38:35 -0500
committerAdrian Thurston <thurston@complang.org>2015-01-02 15:38:35 -0500
commitb971eadb2e439da9cfbaed2486fc8260711983ea (patch)
tree018dda10387f968f9f0fe50ccfb3f2ee4499679c /src/program.c
parent3a89385a6495b9012342af527615f3a6b2be5f94 (diff)
downloadcolm-b971eadb2e439da9cfbaed2486fc8260711983ea.tar.gz
made list and map into structs
Diffstat (limited to 'src/program.c')
-rw-r--r--src/program.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/program.c b/src/program.c
index 4824fa55..d3044faa 100644
--- a/src/program.c
+++ b/src/program.c
@@ -159,8 +159,6 @@ Program *colm_new_program( RuntimeData *rtd )
assert( sizeof(Int) <= sizeof(Tree) );
assert( sizeof(Str) <= sizeof(Tree) );
assert( sizeof(Pointer) <= sizeof(Tree) );
- assert( sizeof(Map) <= sizeof(MapEl) );
- assert( sizeof(List) <= sizeof(MapEl) );
prg->rtd = rtd;
prg->ctxDepParsing = 1;
@@ -264,18 +262,6 @@ Tree *colm_run_func( struct colm_program *prg, int frameId,
return prg->returnVal;
};
-static void colm_clear_orig_heap( Program *prg, Tree **sp )
-{
- /* Clear the heap. */
- Kid *a = prg->origHeap;
- while ( a != 0 ) {
- Kid *next = a->next;
- objectDownref( prg, sp, a->tree );
- kidFree( prg, a );
- a = next;
- }
-}
-
static void colm_clear_heap( Program *prg, Tree **sp )
{
struct colm_struct *hi = prg->heap.head;
@@ -292,7 +278,6 @@ int colm_delete_program( Program *prg )
int exitStatus = prg->exitStatus;
treeDownref( prg, sp, prg->returnVal );
- colm_clear_orig_heap( prg, sp );
colm_clear_heap( prg, sp );
treeDownref( prg, sp, prg->trueVal );