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

Diff for /src/usr.bin/m4/main.c between version 1.12 and 1.13

version 1.12, 1999/09/06 13:20:40 version 1.13, 1999/09/06 13:24:59
Line 64 
Line 64 
 #include <stdio.h>  #include <stdio.h>
 #include <ctype.h>  #include <ctype.h>
 #include <string.h>  #include <string.h>
   #include <stddef.h>
 #include <err.h>  #include <err.h>
 #include "mdef.h"  #include "mdef.h"
 #include "stdd.h"  #include "stdd.h"
Line 196 
Line 197 
         } else          } else
                 for (; argc--; ++argv) {                  for (; argc--; ++argv) {
                         p = *argv;                          p = *argv;
                         if (p[0] == '-' && p[1] == '\0')                          if (p[0] == '-' && p[1] == EOS)
                                 ifp = stdin;                                  ifp = stdin;
                         else if ((ifp = fopen(p, "r")) == NULL)                          else if ((ifp = fopen(p, "r")) == NULL)
                                 err(1, "%s", p);                                  err(1, "%s", p);
Line 338 
Line 339 
                                         errx(1, "missing right quote");                                          errx(1, "missing right quote");
                                 else {                                  else {
                                         chars[0] = l;                                          chars[0] = l;
                                         chars[1] = '\0';                                          chars[1] = EOS;
                                         s = chars;                                          s = chars;
                                 }                                  }
                                 if (nlpar > 0) {                                  if (nlpar > 0) {

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13