Mercurial > hg > octave-lyh
comparison src/toplev.h @ 9144:c6463412aebb
eliminate symbol_table::scope_stack; fix scoping issue with evalin
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 21 Apr 2009 15:39:57 -0400 |
parents | eb63fbe60fab |
children | ee7cf4d963f3 |
comparison
equal
deleted
inserted
replaced
9143:74d5c1a4ca96 | 9144:c6463412aebb |
---|---|
203 { | 203 { |
204 if (instance_ok ()) | 204 if (instance_ok ()) |
205 instance->do_push (f, scope, context); | 205 instance->do_push (f, scope, context); |
206 } | 206 } |
207 | 207 |
208 static void | |
209 push (symbol_table::scope_id scope = symbol_table::current_scope (), | |
210 symbol_table::context_id context = symbol_table::current_context ()) | |
211 { | |
212 if (instance_ok ()) | |
213 instance->do_push (0, scope, context); | |
214 } | |
215 | |
208 static octave_function *top (void) | 216 static octave_function *top (void) |
209 { | 217 { |
210 return instance_ok () ? instance->do_top (): 0; | 218 return instance_ok () ? instance->do_top (): 0; |
211 } | 219 } |
212 | 220 |