version 1.70, 2017/04/17 20:05:08 |
version 1.72, 2017/04/18 15:06:49 |
Line 516 buildoutput(size_t im, struct dbm_page *page) |
|
Line 516 buildoutput(size_t im, struct dbm_page *page) |
|
output = mandoc_malloc(sz); |
output = mandoc_malloc(sz); |
i = 0; |
i = 0; |
lstcat(output, &i, input, " # "); |
lstcat(output, &i, input, " # "); |
|
output[i++] = '\0'; |
|
assert(i == sz); |
return output; |
return output; |
} |
} |
|
|
Line 670 exprterm(const struct mansearch *search, int argc, cha |
|
Line 672 exprterm(const struct mansearch *search, int argc, cha |
|
return e; |
return e; |
} |
} |
|
|
|
if (strcmp("-i", argv[*argi]) == 0 && *argi + 1 < argc) { |
|
cs = 0; |
|
++*argi; |
|
} else |
|
cs = 1; |
|
|
e = mandoc_calloc(1, sizeof(*e)); |
e = mandoc_calloc(1, sizeof(*e)); |
e->type = EXPR_TERM; |
e->type = EXPR_TERM; |
e->bits = 0; |
e->bits = 0; |
Line 688 exprterm(const struct mansearch *search, int argc, cha |
|
Line 696 exprterm(const struct mansearch *search, int argc, cha |
|
* If needed, request regular expression handling. |
* If needed, request regular expression handling. |
*/ |
*/ |
|
|
cs = 1; |
|
if (search->argmode == ARG_WORD) { |
if (search->argmode == ARG_WORD) { |
e->bits = TYPE_Nm; |
e->bits = TYPE_Nm; |
e->match.type = DBM_REGEX; |
e->match.type = DBM_REGEX; |