Fix C++ warnings, better cleaning in makefiles
[ctsim.git] / include / pol.h
index 7b75fda8d03caca0f10000753b9074b022bca4b7..e492e755659277c29e1802a65d3fec858b0bd049 100644 (file)
@@ -46,7 +46,7 @@ class POL {
     void addSkipWord (const char* const w);
     void addSkipChar (int c);
     void addKeyword (const char* const str, int code);
-    bool readWord (char *search, int nlet);
+    bool readWord (const char *search, int nlet);
     bool readUserToken (char *str, int *code);
     bool readString (char *str);
     bool readInteger (int *n, int typecode, bool boundcode, int bb1, int bb2);
@@ -54,7 +54,7 @@ class POL {
     bool skipTokens ();
     void reader ();
     bool readText (char *str, int lim);
-    void usefile (int source, char *fn);
+    void usefile (int source, const char *fn);
     void closefile ();
     int lookchar ();
     int inchar ();
@@ -146,7 +146,7 @@ private:
   bool m_bNewlineIsEOC;
 
   struct KeywordCodeList {
-    char *keyword;
+    const char *keyword;
     int  code;
   };