From: Ian Darwin Date: Fri, 19 Feb 1993 14:22:47 +0000 (+0000) Subject: Part of Guy Harris' Jan-93 rewrite, including: X-Git-Tag: FILE3_27~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=815795ee9fd3154f9fb82ace81dd40d94f5bb4ba;p=file Part of Guy Harris' Jan-93 rewrite, including: 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*. --- diff --git a/src/print.c b/src/print.c index bef5bd21..3952bc69 100644 --- a/src/print.c +++ b/src/print.c @@ -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,