summaryrefslogtreecommitdiff
path: root/src/program.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-03-20 17:35:36 -0400
committerAdrian Thurston <thurston@complang.org>2015-03-20 17:35:36 -0400
commitb93bab8efac1147dc28aa85c2285928ead6f137c (patch)
tree0253bccbf5a3a2f8953d379c40d8212311433ba7 /src/program.c
parentc1f77d894e30c5c20403c235da0399186eb4955e (diff)
downloadcolm-b93bab8efac1147dc28aa85c2285928ead6f137c.tar.gz
renamed push and pop to push_tree and pop_tree
Diffstat (limited to 'src/program.c')
-rw-r--r--src/program.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/program.c b/src/program.c
index 791e29a8..2c856e1b 100644
--- a/src/program.c
+++ b/src/program.c
@@ -237,21 +237,21 @@ Tree *colm_run_func( struct colm_program *prg, int frameId,
int p;
for ( p = 0; p < paramCount; p++ ) {
if ( params[p] == 0 ) {
- vm_push( 0 );
+ vm_push_tree( 0 );
}
else {
Head *head = stringAllocPointer( prg, params[p], strlen(params[p]) );
Tree *tree = constructString( prg, head );
treeUpref( tree );
- vm_push( tree );
+ vm_push_tree( tree );
}
}
/* Set up the stack as if we have called. We allow a return value. */
- vm_push( 0 );
- vm_push( 0 );
- vm_push( 0 );
- vm_push( 0 );
+ vm_push_tree( 0 );
+ vm_push_tree( 0 );
+ vm_push_tree( 0 );
+ vm_push_tree( 0 );
execution.framePtr = vm_ptop();
execution.frameId = frameId;
@@ -260,7 +260,7 @@ Tree *colm_run_func( struct colm_program *prg, int frameId,
sp = colm_execute_code( prg, &execution, sp, code );
treeDownref( prg, sp, prg->returnVal );
- prg->returnVal = vm_pop();
+ prg->returnVal = vm_pop_tree();
assert( sp == prg->stackRoot );