comparison lwbasic/compiler.c @ 27:77626fc37af2

Added support for removing stack from in epilog
author lost@l-w.ca
date Thu, 27 Jan 2011 20:46:44 -0700
parents 26aa76da75ad
children
comparison
equal deleted inserted replaced
26:26aa76da75ad 27:77626fc37af2
167 { 167 {
168 lwb_error("Expecting ENDFUNCTION, got %d (%s)\n", state -> lexer_token, state -> lexer_token_string); 168 lwb_error("Expecting ENDFUNCTION, got %d (%s)\n", state -> lexer_token, state -> lexer_token_string);
169 } 169 }
170 } 170 }
171 /* output function/sub epilog */ 171 /* output function/sub epilog */
172 emit_epilog(state); 172 emit_epilog(state, 0);
173 173
174 lw_free(state -> currentsub); 174 lw_free(state -> currentsub);
175 state -> currentsub = NULL; 175 state -> currentsub = NULL;
176 176
177 } 177 }