comparison src/parse.y @ 8282:47a3d2f829e4

clear local symbol table after parsing function
author John W. Eaton <jwe@octave.org>
date Tue, 28 Oct 2008 13:01:58 -0400
parents 283989f2da9b
children 54c25dc5b17d
comparison
equal deleted inserted replaced
8281:83c59e3f3106 8282:47a3d2f829e4
2616 // should create a tree_function_def object other than 2616 // should create a tree_function_def object other than
2617 // looking at curr_fcn_ptr... 2617 // looking at curr_fcn_ptr...
2618 2618
2619 retval = new tree_function_def (fcn); 2619 retval = new tree_function_def (fcn);
2620 } 2620 }
2621
2622 // Clear any local variables that may have been added by
2623 // while parsing (for example, by force_local_variable in lex.l).
2624
2625 symbol_table::clear_variables (fcn->scope ());
2621 } 2626 }
2622 2627
2623 return retval; 2628 return retval;
2624 } 2629 }
2625 2630