Mercurial > octave-nkf
comparison libinterp/parse-tree/lex.ll @ 18071:d48ef9e24324
maint: Remove deprecated keyword static.
* lex.ll: Remove static_kw processing.
* octave.gperf: Remove static_kw form list of keywords.
* grammar.txi: Remove static from list of Octave keywords.
* var.txi: Remove documentation mentioning static as synonym for persistent.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 03 Dec 2013 16:35:04 -0800 |
parents | cf3f828f401c |
children | 74dd974f7112 e0775b4f41dd |
comparison
equal
deleted
inserted
replaced
18070:ff05d5b70411 | 18071:d48ef9e24324 |
---|---|
2222 case return_kw: | 2222 case return_kw: |
2223 case unwind_protect_cleanup_kw: | 2223 case unwind_protect_cleanup_kw: |
2224 at_beginning_of_statement = true; | 2224 at_beginning_of_statement = true; |
2225 break; | 2225 break; |
2226 | 2226 |
2227 case static_kw: | |
2228 if ((reading_fcn_file || reading_script_file | |
2229 || reading_classdef_file) | |
2230 && ! fcn_file_full_name.empty ()) | |
2231 warning_with_id ("Octave:deprecated-keyword", | |
2232 "the 'static' keyword is obsolete and will be removed from a future version of Octave; please use 'persistent' instead; near line %d of file '%s'", | |
2233 input_line_number, | |
2234 fcn_file_full_name.c_str ()); | |
2235 else | |
2236 warning_with_id ("Octave:deprecated-keyword", | |
2237 "the 'static' keyword is obsolete and will be removed from a future version of Octave; please use 'persistent' instead; near line %d", | |
2238 input_line_number); | |
2239 // fall through ... | |
2240 | |
2241 case persistent_kw: | 2227 case persistent_kw: |
2242 case global_kw: | 2228 case global_kw: |
2243 looking_at_decl_list = true; | 2229 looking_at_decl_list = true; |
2244 break; | 2230 break; |
2245 | 2231 |