version 1.72, 2013/10/18 21:10:07 |
version 1.75, 2013/10/27 16:41:31 |
Line 836 ofadd(int dform, const char *file, const char *name, c |
|
Line 836 ofadd(int dform, const char *file, const char *name, c |
|
if (NULL == arch) |
if (NULL == arch) |
arch = ""; |
arch = ""; |
|
|
sform = FORM_NONE; |
if ('0' == *sec) { |
if (NULL != sec && *sec <= '9' && *sec >= '1') |
|
sform = FORM_SRC; |
|
else if (NULL != sec && *sec == '0') { |
|
sec = dsec; |
sec = dsec; |
sform = FORM_CAT; |
sform = FORM_CAT; |
} |
} else if ('1' <= *sec && '9' >= *sec) |
|
sform = FORM_SRC; |
|
else |
|
sform = FORM_NONE; |
|
|
of = mandoc_calloc(1, sizeof(struct of)); |
of = mandoc_calloc(1, sizeof(struct of)); |
strlcpy(of->file, file, PATH_MAX); |
strlcpy(of->file, file, PATH_MAX); |
Line 961 ofmerge(struct mchars *mc, struct mparse *mp, int chec |
|
Line 961 ofmerge(struct mchars *mc, struct mparse *mp, int chec |
|
* source code, unless it is already known to be |
* source code, unless it is already known to be |
* formatted. Fall back to formatted mode. |
* formatted. Fall back to formatted mode. |
*/ |
*/ |
if (FORM_SRC == of->dform || FORM_SRC == of->sform) { |
if (FORM_CAT != of->dform || FORM_CAT != of->sform) { |
lvl = mparse_readfd(mp, -1, of->file); |
lvl = mparse_readfd(mp, -1, of->file); |
if (lvl < MANDOCLEVEL_FATAL) |
if (lvl < MANDOCLEVEL_FATAL) |
mparse_result(mp, &mdoc, &man); |
mparse_result(mp, &mdoc, &man); |
Line 1792 dbindex(struct mchars *mc, int form, const struct of * |
|
Line 1792 dbindex(struct mchars *mc, int form, const struct of * |
|
return; |
return; |
|
|
desc = ""; |
desc = ""; |
if (NULL != of->desc) { |
if (NULL != of->desc && '\0' != *of->desc) { |
key = ohash_find(&strings, |
key = ohash_find(&strings, |
ohash_qlookup(&strings, of->desc)); |
ohash_qlookup(&strings, of->desc)); |
assert(NULL != key); |
assert(NULL != key); |