X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Ffmt_scan.h;h=837780c33bf72f67f053e9d6674dbaa46a01b6d4;hb=91a48735d0471fd70adce1e62d1667f4b0e689a9;hp=dbe955fc562cbacaed271ffc0c566170277c4cc3;hpb=dd16d13e6e96a0ed6e7d7a23d6e45fd628420ae4;p=mmh diff --git a/h/fmt_scan.h b/h/fmt_scan.h index dbe955f..837780c 100644 --- a/h/fmt_scan.h +++ b/h/fmt_scan.h @@ -39,6 +39,7 @@ struct comp { #define CF_TRUE (1<<0) /* usually means component is present */ #define CF_PARSED (1<<1) /* address/date has been parsed */ #define CF_DATEFAB (1<<2) /* datefield fabricated */ +#define CF_TRIMMED (1<<3) /* Component has been trimmed */ extern int fmt_norm; @@ -61,7 +62,8 @@ extern struct comp *wantcomp[128]; #define FINDCOMP(comp,name) \ for (comp = wantcomp[CHASH(name)]; \ comp && strcmp(comp->c_name,name); \ - comp = comp->c_next) ; + comp = comp->c_next) \ + ; /* * This structure defines one formatting instruction. @@ -88,7 +90,7 @@ struct format { /* * prototypes */ -struct format *fmt_scan (struct format *, char *, int, int *); +struct format *fmt_scan (struct format *, char *, size_t, int, int *); char *new_fs (char *, char *, char *); int fmt_compile (char *, struct format **); char *formataddr(char *, char *);