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

Diff for /src/usr.bin/deroff/deroff.c between version 1.3 and 1.4

version 1.3, 2002/02/28 08:57:37 version 1.4, 2002/02/28 22:12:15
Line 110 
Line 110 
 #ifdef DEBUG  #ifdef DEBUG
 #  define C     _C()  #  define C     _C()
 #  define C1    _C1()  #  define C1    _C1()
 #else not DEBUG  #else /* not DEBUG */
 #  define C     Cget  #  define C     Cget
 #  define C1    C1get  #  define C1    C1get
 #endif not DEBUG  #endif /* not DEBUG */
   
 #define SKIP while (C != '\n')  #define SKIP while (C != '\n')
 #define SKIP_TO_COM SKIP; SKIP; pc=c; while (C != '.' || pc != '\n' || C > 'Z')pc=c  #define SKIP_TO_COM SKIP; SKIP; pc=c; while (C != '.' || pc != '\n' || C > 'Z')pc=c
Line 127 
Line 127 
   
 #ifdef DEBUG  #ifdef DEBUG
 char *mactab[] = { "-ms", "-mm", "-me", "-ma" };  char *mactab[] = { "-ms", "-mm", "-me", "-ma" };
 #endif DEBUG  #endif /* DEBUG */
   
 #define ONE 1  #define ONE 1
 #define TWO 2  #define TWO 2
Line 346 
Line 346 
 #ifdef DEBUG  #ifdef DEBUG
         printf("msflag = %d, mac = %s, keepblock = %d, disp = %d\n",          printf("msflag = %d, mac = %s, keepblock = %d, disp = %d\n",
                 msflag, mactab[mac], keepblock, disp);                  msflag, mactab[mac], keepblock, disp);
 #endif DEBUG  #endif /* DEBUG */
         if (argc == 0) {          if (argc == 0) {
                 infile = stdin;                  infile = stdin;
         } else {          } else {
Line 479 
Line 479 
                 C;                  C;
 #ifdef FULLDEBUG  #ifdef FULLDEBUG
                 printf("Starting work with `%c'\n", c);                  printf("Starting work with `%c'\n", c);
 #endif FULLDEBUG  #endif /* FULLDEBUG */
                 if (c == '.' || c == '\'')                  if (c == '.' || c == '\'')
                         comline();                          comline();
                 else                  else
Line 831 
Line 831 
   
         return(Cget);          return(Cget);
 }  }
 #endif DEBUG  #endif /* DEBUG */
   
 /*  /*
  *      Put out a macro line, using ms and mm conventions.   *      Put out a macro line, using ms and mm conventions.
Line 986 
Line 986 
                         }                          }
                         printf("]");                          printf("]");
                 }                  }
 #endif FULLDEBUG  #endif /* FULLDEBUG */
                 /*                  /*
                  *      Determine if the argument merits being printed                   *      Determine if the argument merits being printed
                  *                   *
Line 1482 
Line 1482 
                         hit = 1;                          hit = 1;
 #ifdef FULLDEBUG  #ifdef FULLDEBUG
                         printf("preliminary hit macro %c%c ", c1, c2);                          printf("preliminary hit macro %c%c ", c1, c2);
 #endif FULLDEBUG  #endif /* FULLDEBUG */
                         switch (mp->condition) {                          switch (mp->condition) {
                         case NONE:                          case NONE:
                                 hit = YES;                                  hit = YES;
Line 1509 
Line 1509 
                         if (hit) {                          if (hit) {
 #ifdef FULLDEBUG  #ifdef FULLDEBUG
                                 printf("MATCH\n");                                  printf("MATCH\n");
 #endif FULLDEBUG  #endif /* FULLDEBUG */
                                 switch ((*(mp->func))(c12)) {                                  switch ((*(mp->func))(c12)) {
                                 default:                                  default:
                                         return;                                          return;
Line 1521 
Line 1521 
                         }                          }
 #ifdef FULLDEBUG  #ifdef FULLDEBUG
                         printf("FAIL\n");                          printf("FAIL\n");
 #endif FULLDEBUG  #endif /* FULLDEBUG */
                         break;                          break;
                 }                  }
         }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4