]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex.h
Some more fixes to compiler warnings.
[lyx.git] / src / lyxlex.h
index f02ad544747a60e924c2b551300a89e0f8c978dc..f884ccd8ebcb622797022b1fcc6b84daebf6d4a9 100644 (file)
@@ -21,7 +21,7 @@ struct keyword_item {
        ///
        char const * tag;
        ///
-       short code;
+       int code;
 };
 
 /** Generalized simple lexical analizer.
@@ -49,7 +49,7 @@ public:
        };
 
        /// file is open and end of file is not reached
-       bool IsOK() const;
+       bool isOK() const;
        /// return true if able to open file, else false
        bool setFile(string const & filename);
        ///
@@ -78,16 +78,16 @@ public:
        void pushToken(string const &);
        
        /// 
-       int GetLineNo() const;
+       int getLineNo() const;
        
        ///
-       int GetInteger() const;
+       int getInteger() const;
        ///
-       bool GetBool() const;
+       bool getBool() const;
        ///
-       float GetFloat() const;
+       float getFloat() const;
        ///
-       string const GetString() const;
+       string const getString() const;
        
        /** Get a long string, ended by the tag `endtag'.
            This string can span several lines. The first line
@@ -99,11 +99,9 @@ public:
        string const getLongString(string const & endtag);
        
        ///
-       bool EatLine();
+       bool eatLine();
        ///
-       int FindToken(char const * str[]);
-       ///
-       int CheckToken(char const * str[], int print_error);
+       int findToken(char const * str[]);
 
        ///
        string const text() const;