diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-11-13 11:07:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-11-13 11:07:11 +0000 |
commit | 5931bb3181044855446d4bb5f513a160ec55f1b3 (patch) | |
tree | f920fe7cec4ed89744c708e3da57f1b802c381af /usr.bin/mandoc/apropos_db.h | |
parent | a8cf81082537b1b37a4ee51b5147db17b6f794e9 (diff) |
Rewrite the expression parser for a more concise syntax:
apropos [search_type[,...]=]substring
apropos search_type[,...][,i]~regex
... and expression evaluation must take the search type into account.
This allows to:
* drop the global -I option and
* drop the enum match, just using a boolean int.
"go ahead" kristaps@
Diffstat (limited to 'usr.bin/mandoc/apropos_db.h')
-rw-r--r-- | usr.bin/mandoc/apropos_db.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/apropos_db.h b/usr.bin/mandoc/apropos_db.h index c64136318b1..ad17de95611 100644 --- a/usr.bin/mandoc/apropos_db.h +++ b/usr.bin/mandoc/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.2 2011/11/13 10:40:52 schwarze Exp $ */ +/* $Id: apropos_db.h,v 1.3 2011/11/13 11:07:10 schwarze Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -49,7 +49,7 @@ void apropos_search(const struct opts *, const struct expr *, void *, void (*)(struct rec *, size_t, void *)); -struct expr *exprcomp(int, char *[], int); +struct expr *exprcomp(int, char *[]); void exprfree(struct expr *); __END_DECLS |