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

Diff for /src/usr.bin/file/Attic/print.c between version 1.2 and 1.3

version 1.2, 1996/06/26 05:33:00 version 1.3, 1997/02/09 23:58:32
Line 1 
Line 1 
 /*      $OpenBSD$       */  /*      $OpenBSD$       */
   
 /*  /*
  * print.c - debugging printout routines   * print.c - debugging printout routines
  *   *
Line 58 
Line 59 
                        m->offset);                         m->offset);
   
         if (m->flag & INDIR)          if (m->flag & INDIR)
                 (void) fprintf(stderr, "(%s,%ld),",                  (void) fprintf(stderr, "(%s,%d),",
                                (m->in.type >= 0 && m->in.type < SZOF(typ)) ?                                 (m->in.type >= 0 && m->in.type < SZOF(typ)) ?
                                         typ[(unsigned char) m->in.type] :                                          typ[(unsigned char) m->in.type] :
                                         "*bad*",                                          "*bad*",
Line 69 
Line 70 
                                 typ[(unsigned char) m->type] :                                  typ[(unsigned char) m->type] :
                                 "*bad*");                                  "*bad*");
         if (m->mask != ~0L)          if (m->mask != ~0L)
                 (void) fprintf(stderr, " & %.8lx", m->mask);                  (void) fprintf(stderr, " & %.8x", m->mask);
   
         (void) fprintf(stderr, ",%c", m->reln);          (void) fprintf(stderr, ",%c", m->reln);
   
Line 82 
Line 83 
             case LELONG:              case LELONG:
             case BESHORT:              case BESHORT:
             case BELONG:              case BELONG:
                     (void) fprintf(stderr, "%ld", m->value.l);                      (void) fprintf(stderr, "%d", m->value.l);
                     break;                      break;
             case STRING:              case STRING:
                     showstr(stderr, m->value.s, -1);                      showstr(stderr, m->value.s, -1);

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