Rewrite of tinygettext's POFileReader to look more like a combination of lisp/lexer...
[supertux.git] / src / lisp / lexer.hpp
index 1cd062b..f85c86e 100644 (file)
@@ -53,13 +53,15 @@ private:
   };
 
   inline void nextChar();
+  inline void addChar();
 
   std::istream& stream;
   bool eof;
   int linenumber;
   char buffer[BUFFER_SIZE+1];
   char* bufend;
-  char* c;
+  char* bufpos;
+  int  c;
   char token_string[MAX_TOKEN_LENGTH + 1];
   int token_length;
 };