X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=h%2Ffmt_scan.h;h=eec967edccfc5978a6a8a32da5e7f2c055eee454;hp=f65dab1c87f3d5628b0c8856525bbdc5f0b53025;hb=ee8d01d64e8832304256de53db07228e2be67f6a;hpb=ced6090a330d3d83d0bce709f756aa3d7d65fea4 diff --git a/h/fmt_scan.h b/h/fmt_scan.h index f65dab1..eec967e 100644 --- a/h/fmt_scan.h +++ b/h/fmt_scan.h @@ -5,7 +5,7 @@ /* ** This structure describes an "interesting" component. It holds ** the name & text from the component (if found) and one piece of -** auxilary info. The structure for a particular component is located +** auxiliary info. The structure for a particular component is located ** by (open) hashing the name and using it as an index into the ptr array ** "wantcomp". All format entries that reference a particular component ** point to its comp struct (so we only have to do component specific @@ -16,7 +16,7 @@ struct comp { char *c_text; /* component text (if found) */ struct comp *c_next; /* hash chain linkage */ short c_flags; /* misc. flags (from fmt_scan) */ - short c_type; /* type info (from fmt_compile) */ + short c_type; /* type info (from fmt_compile) */ union { struct tws *c_u_tws; struct mailname *c_u_mn; @@ -59,7 +59,7 @@ extern struct comp *wantcomp[128]; */ #define FINDCOMP(comp,name) \ for (comp = wantcomp[CHASH(name)]; \ - comp && strcmp(comp->c_name,name); \ + comp && strcmp(comp->c_name,name)!=0; \ comp = comp->c_next) ; /* @@ -87,6 +87,6 @@ struct format { /* ** prototypes */ -struct format *fmt_scan (struct format *, char *, int, int *); -char *new_fs (char *, char *, char *); -int fmt_compile (char *, struct format **); +struct format *fmt_scan(struct format *, char *, int, int *); +int fmt_compile(char *, struct format **); +char *formataddr(char *, char *);