summaryrefslogtreecommitdiffstats
path: root/apropos.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-09 22:05:56 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-09 22:05:56 +0000
commit52e32329c935cd5b17f86511fb6d80879b597e60 (patch)
treec469cd63d2f1673c38a1ce3bd446239ea5f45354 /apropos.h
parent7ec3bd32ef3cef1e8f8f96474716f3288bbbca5d (diff)
downloadmandoc-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.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/apropos.h b/apropos.h
index 0dc26e5f..a2c90239 100644
--- a/apropos.h
+++ b/apropos.h
@@ -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