Removed `-format string' switches but made -form accept `=formatstring'.
[mmh] / h / fmt_scan.h
index f65dab1..a205868 100644 (file)
@@ -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,5 @@ 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 **);