comparison libinterp/parse-tree/oct-parse.in.yy @ 23470:a41fdb801db6

use mark_global and mark_persistent consistently * ls-hdf5.cc, ls-hdf5.h, ls-mat5.cc, ls-mat5.h, ls-oct-binary.cc, ls-oct-binary.h, ls-oct-text.cc, ls-oct-text.h, oct-parse.in.yy, pt-decl.cc, pt-decl.h, pt-eval.cc, pt-id.h: Consistently use mark_global and mark_persistent instead of mark_as_global, mark_as_persistent, mark_static, or mark_as_static.
author John W. Eaton <jwe@octave.org>
date Thu, 04 May 2017 15:10:29 -0400
parents 2699c5974844
children 55916f99b8b6
comparison
equal deleted inserted replaced
23469:2699c5974844 23470:a41fdb801db6
3859 switch (tok) 3859 switch (tok)
3860 { 3860 {
3861 case GLOBAL: 3861 case GLOBAL:
3862 { 3862 {
3863 retval = new tree_decl_command ("global", lst, l, c); 3863 retval = new tree_decl_command ("global", lst, l, c);
3864 retval->mark_as_global (); 3864 retval->mark_global ();
3865 } 3865 }
3866 break; 3866 break;
3867 3867
3868 case PERSISTENT: 3868 case PERSISTENT:
3869 if (curr_fcn_depth > 0) 3869 if (curr_fcn_depth > 0)
3870 { 3870 {
3871 retval = new tree_decl_command ("persistent", lst, l, c); 3871 retval = new tree_decl_command ("persistent", lst, l, c);
3872 retval->mark_as_persistent (); 3872 retval->mark_persistent ();
3873 } 3873 }
3874 else 3874 else
3875 { 3875 {
3876 if (lexer.reading_script_file) 3876 if (lexer.reading_script_file)
3877 warning ("ignoring persistent declaration near line %d of file '%s'", 3877 warning ("ignoring persistent declaration near line %d of file '%s'",