X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctgraphics%2Fezpol.cpp;h=d93e0063e1fb86f0ec7b3fb45253b8d0dc68d33d;hp=ff079911a90945b69edad080ad9ee15cc745c4b1;hb=08a5cd04c3994d5ea24713b9b000791bd2e406fe;hpb=12e2c29153a0f55ac23bdeec06b404638672985b diff --git a/libctgraphics/ezpol.cpp b/libctgraphics/ezpol.cpp index ff07991..d93e006 100644 --- a/libctgraphics/ezpol.cpp +++ b/libctgraphics/ezpol.cpp @@ -6,7 +6,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2000 Kevin Rosenberg ** -** $Id: ezpol.cpp,v 1.2 2000/06/19 19:04:05 kevin Exp $ +** $Id: ezpol.cpp,v 1.3 2000/07/13 07:03:21 kevin Exp $ ** ** 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 @@ -105,8 +105,6 @@ static struct key cmdlist[] = { #define NUMCMD (sizeof(cmdlist) / sizeof (struct key)) -static int ignorecase = TRUE; - static int skiptok(char term[]); static int pol_tok(struct token_st *token); static void dumptok(struct token_st *token); @@ -138,8 +136,6 @@ static void ungets(char *s); void pol_init (void) { - int i; - meta.eoc = SEMICOL; meta.str = DQUOTE; meta.com = SHARP; @@ -157,7 +153,7 @@ void pol_init (void) inittable (usertable); inittable (skiptable); - for (i = 0; i < NUMCMD; i++) + for (unsigned int i = 0; i < NUMCMD; i++) install (cmdtable, cmdlist[i].keyword, cmdlist[i].code); token.ready = FALSE; /* no token read yet */ @@ -1095,16 +1091,16 @@ int pol_lookchar(void) int pol_inchar(void) { - int c; + int c = 0; - if (currentf < 0) - return (EOF); + if (currentf < 0) + return (EOF); - while (currentf >= 0 && (c = pol_getch(filep[currentf])) == EOF && filep[currentf] != NULL) { - pol_closefile (); - } + while (currentf >= 0 && (c = pol_getch(filep[currentf])) == EOF && filep[currentf] != NULL) { + pol_closefile (); + } - return (c); + return (c); } /*--------------------------------------------------------------*/