]> granicus.if.org Git - file/commitdiff
Part of Guy Harris' Jan-93 rewrite, including:
authorIan Darwin <ian@darwinsys.com>
Fri, 19 Feb 1993 14:22:47 +0000 (14:22 +0000)
committerIan Darwin <ian@darwinsys.com>
Fri, 19 Feb 1993 14:22:47 +0000 (14:22 +0000)
Add in support for "beshort", "belong", "bedate", "leshort",
"lelong", and "ledate" types.

NOTE: it doesn't support multi-level ">"; it wasn't clear to me
why it printed things such as "offset" and "indirect-offset" for
old-style continuations, as the offset into the file is an
absolute number *even for continuation lines*.

src/print.c

index bef5bd21957e85bc2c25b7c2f31a2fb204787202..3952bc69f24adb2eb927e33d408fc47b53de85ab 100644 (file)
@@ -39,7 +39,7 @@
 
 #ifndef lint
 static char *moduleid =
-       "@(#)$Id: print.c,v 1.17 1992/09/11 17:42:09 ian Exp $";
+       "@(#)$Id: print.c,v 1.18 1993/02/19 14:22:47 ian Exp $";
 #endif  /* lint */
 
 void
@@ -49,7 +49,9 @@ struct magic *m;
        static char *offs[] = {  "absolute", "offset", 
                                 "indirect", "indirect-offset" };
        static char *typ[] = {   "invalid", "byte", "short", "invalid",
-                                "long", "string", "date" };
+                                "long", "string", "date", "beshort",
+                                "belong", "bedate", "leshort", "lelong",
+                                "ledate" };
        (void) fprintf(stderr, "[%s,%d,%s,%s%c,",
                (m->flag >= 0 && m->flag < 4 ? offs[m->flag]: "*bad*"),
                m->offset,