diff -r fc585645ad05 -r aae5facf9fc5 parser.h --- a/parser.h Mon Feb 16 18:09:03 2004 +0100 +++ b/parser.h Mon Feb 16 18:50:28 2004 +0100 @@ -14,29 +14,29 @@ /* * format: - * l = long - * d = double - * i = identifier - * s = string - * c = char + * l = long + * d = double + * i = identifier + * s = string + * c = char * . = 1 times any ("l.d") * * = 0 or more times any (must be the last, "sd*") - * ? = optional ("?c") - * : = conditional (":c:s") + * ? = optional ("?c") + * : = conditional (":c:s") * + = 1 or more times last (most be the last, "l+") * special entries: * - * "#end" call this handler at the end of section. - * "#cancel" call this handler when recovering from error + * "#end" call this handler at the end of section. + * "#cancel" call this handler when recovering from error */ #define END_CONFOPTS {NULL, NULL, NULL, NULL} typedef struct _ConfOpt{ - const char *optname; - const char *argfmt; - bool (*fn)(Tokenizer *tokz, int n, Token *toks); - struct _ConfOpt *opts; + const char *optname; + const char *argfmt; + bool (*fn)(Tokenizer *tokz, int n, Token *toks); + struct _ConfOpt *opts; } ConfOpt; #define CONFOPTS_NOT_SET libtu_dummy_confopts @@ -47,8 +47,8 @@ extern bool parse_config(const char *fname, const ConfOpt *options, int flags); extern bool parse_config_file(FILE *file, const ConfOpt *options, int flags); extern bool check_args(const Tokenizer *tokz, Token *tokens, int ntokens, - const char *fmt); + const char *fmt); extern bool check_args_loose(const Tokenizer *tokz, Token *tokens, int ntokens, - const char *fmt); + const char *fmt); #endif /* LIBTU_PARSER_H */