[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.86 and 1.87

version 1.86, 2015/11/03 16:21:47 version 1.87, 2017/06/15 13:48:42
Line 77 
Line 77 
 char ecommt[MAXCCHARS+1] = {ECOMMT};    /* end character for comment   */  char ecommt[MAXCCHARS+1] = {ECOMMT};    /* end character for comment   */
 int  synch_lines = 0;           /* line synchronisation for C preprocessor */  int  synch_lines = 0;           /* line synchronisation for C preprocessor */
 int  prefix_builtins = 0;       /* -P option to prefix builtin keywords */  int  prefix_builtins = 0;       /* -P option to prefix builtin keywords */
   int  error_warns = 0;           /* -E option to make warnings exit_code = 1 */
   int  fatal_warns = 0;           /* -E -E option to make warnings fatal */
   
 struct keyblk {  struct keyblk {
         char    *knam;          /* keyword name */          char    *knam;          /* keyword name */
Line 185 
Line 187 
         outfile = NULL;          outfile = NULL;
         resizedivs(MAXOUT);          resizedivs(MAXOUT);
   
         while ((c = getopt(argc, argv, "gst:d:D:U:o:I:P")) != -1)          while ((c = getopt(argc, argv, "gst:d:D:EU:o:I:P")) != -1)
                 switch(c) {                  switch(c) {
   
                 case 'D':               /* define something..*/                  case 'D':               /* define something..*/
Line 195 
Line 197 
                         if (*p)                          if (*p)
                                 *p++ = EOS;                                  *p++ = EOS;
                         dodefine(optarg, p);                          dodefine(optarg, p);
                           break;
                   case 'E':               /* like GNU m4 1.4.9+ */
                           if (error_warns == 0)
                                   error_warns = 1;
                           else
                                   fatal_warns = 1;
                         break;                          break;
                 case 'I':                  case 'I':
                         addtoincludepath(optarg);                          addtoincludepath(optarg);

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87