X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fpol.h;fp=include%2Fpol.h;h=e492e755659277c29e1802a65d3fec858b0bd049;hp=7b75fda8d03caca0f10000753b9074b022bca4b7;hb=88fd1492afba7c103e2bedbaac0d69fb9bf3cf66;hpb=ad846952429412dd9b090cbb4500f179ca460b12 diff --git a/include/pol.h b/include/pol.h index 7b75fda..e492e75 100644 --- a/include/pol.h +++ b/include/pol.h @@ -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; };