X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/cf7a395df76a9bb141114812daedc586265ec242..3234ace1ba2fef84ad009e6822dd76699a34e344:/chars.c diff --git a/chars.c b/chars.c index 034f24ce..126274c0 100644 --- a/chars.c +++ b/chars.c @@ -1,6 +1,6 @@ -/* $Id: chars.c,v 1.15 2010/01/05 19:51:10 kristaps Exp $ */ +/* $Id: chars.c,v 1.20 2010/06/19 20:46:27 kristaps Exp $ */ /* - * Copyright (c) 2009 Kristaps Dzonsons + * Copyright (c) 2009 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -23,6 +23,7 @@ #include #include +#include "mandoc.h" #include "chars.h" #define PRINT_HI 126 @@ -42,7 +43,7 @@ struct ln { #define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) }; -#define LINES_MAX 350 +#define LINES_MAX 370 #define CHAR(w, x, y, z, a, b) \ { NULL, (w), (y), (a), (x), (z), (b), CHARS_CHAR }, @@ -166,18 +167,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;