diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-09 22:05:56 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-11-09 22:05:56 +0000 |
commit | 52e32329c935cd5b17f86511fb6d80879b597e60 (patch) | |
tree | c469cd63d2f1673c38a1ce3bd446239ea5f45354 /apropos.h | |
parent | 7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d (diff) | |
download | mandoc-52e32329c935cd5b17f86511fb6d80879b597e60.tar.gz |
Make apropos's lookup use a find(1)-like expression. I'll write more on
this when it completes; this is to keep it in-tree.
Right now this uses prefix notation. Ignore it. I'll make this into
infix notation real soon.
The goal of this (exprcomp and exprexec) is to have arbitrary logical
expressions.
Diffstat (limited to 'apropos.h')
-rw-r--r-- | apropos.h | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -53,15 +53,18 @@ struct rec { struct opts { const char *arch; /* restrict to architecture */ const char *cat; /* restrict to manual section */ - int types; /* only types in bitmask */ - int flags; -#define OPTS_INSENS (0x01) /* case-insensitive match */ }; __BEGIN_DECLS -void apropos_search(const struct opts *, const char *, - void *, void (*)(struct rec *, size_t, void *)); +struct expr; + +void apropos_search(const struct opts *, + const struct expr *, void *, + void (*)(struct rec *, size_t, void *)); + +struct expr *exprcomp(int, char *[], int); +void exprfree(struct expr *); __END_DECLS |