X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=include%2Fpol.h;h=ede84f95a0d692d01b5b7523354af04df64a16e7;hb=dca8d386ab6a4e33050b456cff4547d6adfdf249;hp=7b75fda8d03caca0f10000753b9074b022bca4b7;hpb=1a050c98763fbbc0662731b0b76953acede6f5d7;p=ctsim.git diff --git a/include/pol.h b/include/pol.h index 7b75fda..ede84f9 100644 --- a/include/pol.h +++ b/include/pol.h @@ -5,9 +5,7 @@ ** Date Started: 1984 ** ** This is part of the CTSim program -** Copyright (c) 1983-2001 Kevin Rosenberg -** -** $Id$ +** Copyright (c) 1983-2009 Kevin Rosenberg ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -46,7 +44,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 +52,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 +144,7 @@ private: bool m_bNewlineIsEOC; struct KeywordCodeList { - char *keyword; + const char *keyword; int code; };