X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/cf7a395df76a9bb141114812daedc586265ec242..bdcaee420fe7a05a2069049d14aa31dce93be009:/chars.c diff --git a/chars.c b/chars.c index 034f24ce..461ac067 100644 --- a/chars.c +++ b/chars.c @@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.15 2010/01/05 19:51:10 kristaps Exp $ */ +/* $Id: chars.c,v 1.17 2010/03/23 13:25:01 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -42,7 +42,7 @@ struct ln { #define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) }; -#define LINES_MAX 350 +#define LINES_MAX 369 #define CHAR(w, x, y, z, a, b) \ { NULL, (w), (y), (a), (x), (z), (b), CHARS_CHAR }, @@ -166,18 +166,6 @@ find(struct tbl *tab, const char *p, size_t sz, size_t *rsz, int type) if (NULL == (pp = htab[hash])) return(NULL); - if (NULL == pp->next) { - if ( ! match(pp, p, sz, type)) - return(NULL); - - if (CHARS_HTML == tab->type) { - *rsz = pp->htmlsz; - return(pp->html); - } - *rsz = pp->asciisz; - return(pp->ascii); - } - for (prev = NULL; pp; pp = pp->next) { if ( ! match(pp, p, sz, type)) { prev = pp;