X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=h%2Ffmt_scan.h;h=ed4e2f0d68fe4d821a057fda3e5dcefe103fda48;hb=b3bc649e0562c9aa68acdf7fb5c8c03335cafb25;hp=fd4c555d10d54370de4eadebfea80e5e3d5cdae3;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/h/fmt_scan.h b/h/fmt_scan.h index fd4c555..ed4e2f0 100644 --- a/h/fmt_scan.h +++ b/h/fmt_scan.h @@ -1,8 +1,6 @@ /* * fmt_scan.h -- definitions for fmt_scan() - * - * $Id$ */ /* @@ -34,8 +32,14 @@ struct comp { */ #define CT_ADDR (1<<0) /* referenced as address */ #define CT_DATE (1<<1) /* referenced as date */ -#define CT_MYMBOX (1<<2) /* "mymbox" test being done */ -#define CT_ADDRPARSE (1<<3) /* address parse being done */ + +/* + * c_flags bits + */ +#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; @@ -88,3 +92,6 @@ struct format { struct format *fmt_scan (struct format *, char *, int, int *); char *new_fs (char *, char *, char *); int fmt_compile (char *, struct format **); +char *formataddr(char *, char *); +char *concataddr(char *, char *); +extern char *format_string;