[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / awk

Diff for /src/usr.bin/awk/main.c between version 1.6 and 1.7

version 1.6, 1999/04/18 17:06:30 version 1.7, 1999/04/20 17:31:30
Line 23 
Line 23 
 THIS SOFTWARE.  THIS SOFTWARE.
 ****************************************************************/  ****************************************************************/
   
 char    *version = "version 990305";  char    *version = "version 19990416";
   
 #define DEBUG  #define DEBUG
 #include <stdio.h>  #include <stdio.h>
Line 182 
Line 182 
                                 yyin = stdin;                                  yyin = stdin;
                         else if ((yyin = fopen(pfile[curpfile], "r")) == NULL)                          else if ((yyin = fopen(pfile[curpfile], "r")) == NULL)
                                 ERROR "can't open file %s", pfile[curpfile] FATAL;                                  ERROR "can't open file %s", pfile[curpfile] FATAL;
                           lineno = 1;
                 }                  }
                 if ((c = getc(yyin)) != EOF)                  if ((c = getc(yyin)) != EOF)
                         return c;                          return c;
Line 190 
Line 191 
                 yyin = NULL;                  yyin = NULL;
                 curpfile++;                  curpfile++;
         }          }
   }
   
   char *cursource(void)   /* current source file name */
   {
           if (npfile > 0)
                   return pfile[curpfile];
           else
                   return NULL;
 }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7