X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d83a6d58a4b43c863cd31445faaab780577c2cb3..0b95ed5dc93d34749b819aa398725ff81f524b89:/chars.c?ds=inline diff --git a/chars.c b/chars.c index a0731e99..43fedd6a 100644 --- a/chars.c +++ b/chars.c @@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.25 2010/07/31 23:52:58 schwarze Exp $ */ +/* $Id: chars.c,v 1.30 2010/09/15 13:10:30 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -40,7 +40,7 @@ struct ln { #define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) }; -#define LINES_MAX 370 +#define LINES_MAX 351 #define CHAR(in, ch, code) \ { NULL, (in), (ch), (code), CHARS_CHAR }, @@ -94,13 +94,13 @@ chars_init(enum chars type) tab = malloc(sizeof(struct tbl)); if (NULL == tab) { perror(NULL); - exit(EXIT_FAILURE); + exit((int)MANDOCLEVEL_SYSERR); } htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); if (NULL == htab) { perror(NULL); - exit(EXIT_FAILURE); + exit((int)MANDOCLEVEL_SYSERR); } for (i = 0; i < LINES_MAX; i++) {