X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=libctgraphics%2Fpol.cpp;h=da43586cf38ca26aadfb285e969c6e77d0be3a11;hb=64de9c0b821ceae63e8979815039ff97ba3a5edd;hp=f433e5fd10b6ddcefc8c787dea46cd2a634bd5e8;hpb=1a050c98763fbbc0662731b0b76953acede6f5d7;p=ctsim.git diff --git a/libctgraphics/pol.cpp b/libctgraphics/pol.cpp index f433e5f..da43586 100644 --- a/libctgraphics/pol.cpp +++ b/libctgraphics/pol.cpp @@ -4,9 +4,7 @@ ** POL - Problem Oriented Language ** ** 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 @@ -135,7 +133,7 @@ POL::addKeyword (const char* const str, int code) */ bool -POL::readWord (char *search, int nlet) +POL::readWord (const char *search, int nlet) { tok (&token); if (m_bTrace) @@ -311,10 +309,11 @@ POL::tok (struct token_st *token) { if (token->ready == false) getpol_tok(token); - else + else { if (token->type == TT_EOF && lookchar() != EOF) getpol_tok(token); - return (token->type); + } + return (token->type); } void @@ -821,7 +820,7 @@ POL::type (int c) */ void -POL::usefile (int source, char *fn) +POL::usefile (int source, const char *fn) { FILE *fp;