-/*
- * Return TRUE if the address passed matches the current program
- * state (linenumber, ps, lastline)
- */
-static int inline
-match(a)
- struct s_addr *a;
-{
- int eval;
-
- switch (a->type) {
- case AT_RE:
- switch (eval = regexec(a->u.r, ps, 0, NULL, 0)) {
- case 0:
- return (1);
- case REG_NOMATCH:
- return (0);
- default:
- err(FATAL, "RE error: %s", strregerror(eval, a->u.r));
- }
- case AT_LINE:
- return (linenum == a->u.l);
- case AT_LAST:
- return (lastline);
- }
- /* NOTREACHED */
-}
-