r164: *** empty log message ***
[ctsim.git] / libctgraphics / ezpol.cpp
index ff079911a90945b69edad080ad9ee15cc745c4b1..d93e0063e1fb86f0ec7b3fb45253b8d0dc68d33d 100644 (file)
@@ -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);
 }
 
 /*--------------------------------------------------------------*/