Changeset View
Changeset View
Standalone View
Standalone View
contrib/mandoc/mansearch.c
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | struct expr { | ||||
struct expr *next; /* Next child in the parent group. */ | struct expr *next; /* Next child in the parent group. */ | ||||
struct expr *child; /* First child in this group. */ | struct expr *child; /* First child in this group. */ | ||||
enum { EXPR_TERM, EXPR_OR, EXPR_AND } type; | enum { EXPR_TERM, EXPR_OR, EXPR_AND } type; | ||||
}; | }; | ||||
const char *const mansearch_keynames[KEY_MAX] = { | const char *const mansearch_keynames[KEY_MAX] = { | ||||
"arch", "sec", "Xr", "Ar", "Fa", "Fl", "Dv", "Fn", | "arch", "sec", "Xr", "Ar", "Fa", "Fl", "Dv", "Fn", | ||||
"Ic", "Pa", "Cm", "Li", "Em", "Cd", "Va", "Ft", | "Ic", "Pa", "Cm", "Li", "Em", "Cd", "Va", "Ft", | ||||
"Tn", "Er", "Ev", "Sy", "Sh", "In", "Ss", "Ox", | "_tun", "Er", "Ev", "Sy", "Sh", "In", "Ss", "Ox", | ||||
"An", "Mt", "St", "Bx", "At", "Nx", "Fx", "Lk", | "An", "Mt", "St", "Bx", "At", "Nx", "Fx", "Lk", | ||||
"Ms", "Bsx", "Dx", "Rs", "Vt", "Lb", "Nm", "Nd" | "Ms", "Bsx", "Dx", "Rs", "Vt", "Lb", "Nm", "Nd" | ||||
}; | }; | ||||
static struct ohash *manmerge(struct expr *, struct ohash *); | static struct ohash *manmerge(struct expr *, struct ohash *); | ||||
static struct ohash *manmerge_term(struct expr *, struct ohash *); | static struct ohash *manmerge_term(struct expr *, struct ohash *); | ||||
static struct ohash *manmerge_or(struct expr *, struct ohash *); | static struct ohash *manmerge_or(struct expr *, struct ohash *); | ||||
▲ Show 20 Lines • Show All 785 Lines • Show Last 20 Lines |