diff options
author | 2011-11-13 11:10:27 +0000 | |
---|---|---|
committer | 2011-11-13 11:10:27 +0000 | |
commit | 26a93b19ed081622643e47785d2ba7810a015efc (patch) | |
tree | c41300d6ea4daf7a1ac68e335f9bbe97bd276bf8 /apropos_db.h | |
parent | 58b2b9f4741e56383779973cc412ca087987b114 (diff) | |
download | mandoc-26a93b19ed081622643e47785d2ba7810a015efc.tar.gz mandoc-26a93b19ed081622643e47785d2ba7810a015efc.tar.zst mandoc-26a93b19ed081622643e47785d2ba7810a015efc.zip |
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 'apropos_db.h')
-rw-r--r-- | apropos_db.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apropos_db.h b/apropos_db.h index 7801b126..a30cbedb 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.2 2011/11/13 10:49:57 schwarze Exp $ */ +/* $Id: apropos_db.h,v 1.3 2011/11/13 11:10:27 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 |