version 1.166, 2014/10/12 20:32:39 |
version 1.168, 2014/10/28 17:36:19 |
Line 425 main(int argc, char *argv[]) |
|
Line 425 main(int argc, char *argv[]) |
|
} |
} |
|
|
exitcode = (int)MANDOCLEVEL_OK; |
exitcode = (int)MANDOCLEVEL_OK; |
mp = mparse_alloc(mparse_options, MANDOCLEVEL_FATAL, NULL, NULL); |
|
mc = mchars_alloc(); |
mc = mchars_alloc(); |
|
mp = mparse_alloc(mparse_options, MANDOCLEVEL_FATAL, NULL, |
|
mc, NULL); |
ohash_init(&mpages, 6, &mpages_info); |
ohash_init(&mpages, 6, &mpages_info); |
ohash_init(&mlinks, 6, &mlinks_info); |
ohash_init(&mlinks, 6, &mlinks_info); |
|
|
Line 525 main(int argc, char *argv[]) |
|
Line 525 main(int argc, char *argv[]) |
|
} |
} |
out: |
out: |
manpath_free(&dirs); |
manpath_free(&dirs); |
mchars_free(mc); |
|
mparse_free(mp); |
mparse_free(mp); |
|
mchars_free(mc); |
mpages_free(); |
mpages_free(); |
ohash_delete(&mpages); |
ohash_delete(&mpages); |
ohash_delete(&mlinks); |
ohash_delete(&mlinks); |
Line 1903 render_key(struct mchars *mc, struct str *key) |
|
Line 1903 render_key(struct mchars *mc, struct str *key) |
|
*/ |
*/ |
|
|
if (write_utf8) { |
if (write_utf8) { |
if (0 == (u = mchars_spec2cp(mc, seq, len))) |
if ((u = mchars_spec2cp(mc, seq, len)) <= 0) |
continue; |
continue; |
cpp = utfbuf; |
cpp = utfbuf; |
if (0 == (sz = utf8(u, utfbuf))) |
if (0 == (sz = utf8(u, utfbuf))) |