diff libinterp/parse-tree/lex.h @ 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 6884401b2fbb
children 96a58f197f93
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.h	Tue Feb 26 12:43:36 2013 -0500
+++ b/libinterp/parse-tree/lex.h	Tue Feb 26 13:24:41 2013 -0500
@@ -51,9 +51,6 @@
 // Is the given string a keyword?
 extern bool is_keyword (const std::string& s);
 
-extern void prep_lexer_for_script_file (void);
-extern void prep_lexer_for_function_file (void);
-
 class
 stream_reader
 {
@@ -207,6 +204,10 @@
 
   void reset_parser (void);
 
+  void prep_for_script_file (void);
+
+  void prep_for_function_file (void);
+
   int octave_read (char *buf, unsigned int max_size);
 
   void do_comma_insert_check (void);