X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Ffmtdump.c;h=26a6e58cd80ba7138cfa3538316e41acf49bc8d9;hb=e7129bf90a1b361e07365002379d8d2874c0f771;hp=fff450224ca104ebcdd66f55b965deb6d215eb0a;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/fmtdump.c b/uip/fmtdump.c index fff4502..26a6e58 100644 --- a/uip/fmtdump.c +++ b/uip/fmtdump.c @@ -45,7 +45,6 @@ static void litputc(char); int main (int argc, char **argv) { - int ncomps; char *cp, *form = NULL, *format = NULL; char buf[BUFSIZ], *nfs, **argp, **arguments; struct format *fmt; @@ -101,7 +100,7 @@ main (int argc, char **argv) * Get new format string. Must be before chdir(). */ nfs = new_fs (form, format, FORMAT); - ncomps = fmt_compile(nfs, &fmt); + (void) fmt_compile(nfs, &fmt); fmt_dump(fmt); done(0); @@ -355,6 +354,7 @@ f_typestr(int t) case FT_STRF: return("STRF"); case FT_STRFW: return("STRFW"); case FT_PUTADDR: return("PUTADDR"); + case FT_STRLIT: return("STRLIT"); case FT_LS_COMP: return("LS_COMP"); case FT_LS_LIT: return("LS_LIT"); case FT_LS_GETENV: return("LS_GETENV"); @@ -409,6 +409,7 @@ f_typestr(int t) case FT_PARSEDATE: return("PARSEDATE"); case FT_PARSEADDR: return("PARSEADDR"); case FT_FORMATADDR: return("FORMATADDR"); + case FT_CONCATADDR: return("CONCATADDR"); case FT_MYMBOX: return("MYMBOX"); #ifdef FT_ADDTOSEQ case FT_ADDTOSEQ: return("ADDTOSEQ"); @@ -469,13 +470,14 @@ c_flagsstr(int t) static char buf[64]; buf[0] = '\0'; - if (t & ~(CF_TRUE|CF_PARSED|CF_DATEFAB)) + if (t & ~(CF_TRUE|CF_PARSED|CF_DATEFAB|CF_TRIMMED)) printf(buf, "0x%x ", t); strcat(buf, "<"); i = 0; FNORD(CF_TRUE, "TRUE"); FNORD(CF_PARSED, "PARSED"); FNORD(CF_DATEFAB, "DATEFAB"); + FNORD(CF_TRIMMED, "TRIMMED"); strcat(buf, ">"); return(buf); }