** 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
*/
bool
-POL::readWord (char *search, int nlet)
+POL::readWord (const char *search, int nlet)
{
tok (&token);
if (m_bTrace)
{
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
*/
void
-POL::usefile (int source, char *fn)
+POL::usefile (int source, const char *fn)
{
FILE *fp;