diff libinterp/parse-tree/lex.ll @ 16124:3be725cd195b

move more lexer helper functions to lexical_feedback class * lex.h, lex.ll (prep_for_script_file, prep_for_function_file): Declare as member functions in lexical_feedback class. Rename from prep_lexer_for_script file and prep_lexer_for_function_file. Change all uses.
author John W. Eaton <jwe@octave.org>
date Tue, 26 Feb 2013 13:24:41 -0500
parents a484e39d1f22
children 96a58f197f93
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll	Tue Feb 26 12:43:36 2013 -0500
+++ b/libinterp/parse-tree/lex.ll	Tue Feb 26 13:24:41 2013 -0500
@@ -1297,18 +1297,6 @@
 
 */
 
-void
-prep_lexer_for_script_file (void)
-{
-  BEGIN (SCRIPT_FILE_BEGIN);
-}
-
-void
-prep_lexer_for_function_file (void)
-{
-  BEGIN (FUNCTION_FILE_BEGIN);
-}
-
 // Used to delete trailing white space from tokens.
 
 static std::string
@@ -1421,6 +1409,18 @@
     help_buf.pop ();
 }
 
+void
+lexical_feedback::prep_for_script_file (void)
+{
+  BEGIN (SCRIPT_FILE_BEGIN);
+}
+
+void
+lexical_feedback::prep_for_function_file (void)
+{
+  BEGIN (FUNCTION_FILE_BEGIN);
+}
+
 int
 lexical_feedback::octave_read (char *buf, unsigned max_size)
 {