Mercurial > hg > octave-lyh
comparison src/pt-pr-code.cc @ 14294:9e3983c8963c
deprecate the static keyword
* octave.gperf: Use PERSISTENT as the token for "static" and
"persistent" but use separate static_kw and persistent_kw values so we
can distinguish them.
* lex.ll (is_keyword_token): Handle static_kw and persistent_kw
separately. Generate deprecated keyword warning for static_kw.
* oct-parse.cc: Use PERSISTENT token instead of STATIC.
* pt-decl.h, pt-decl.cc (tree_persistent_command): Rename from
tree_static_command. Change all uses.
* pt-walk.h (tree_walker::visit_persistent_command):
Rename from visit_static_command. Change all derived classes.
* NEWS: note that static has been deprecated.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 30 Jan 2012 23:42:41 -0500 |
parents | 72c96de7a403 |
children | a820a990968e |
comparison
equal
deleted
inserted
replaced
14293:71a198cca35b | 14294:9e3983c8963c |
---|---|
163 { | 163 { |
164 do_decl_command (cmd); | 164 do_decl_command (cmd); |
165 } | 165 } |
166 | 166 |
167 void | 167 void |
168 tree_print_code::visit_static_command (tree_static_command& cmd) | 168 tree_print_code::visit_persistent_command (tree_persistent_command& cmd) |
169 { | 169 { |
170 do_decl_command (cmd); | 170 do_decl_command (cmd); |
171 } | 171 } |
172 | 172 |
173 void | 173 void |