version 1.24, 2010/07/26 13:59:00 |
version 1.29, 2010/09/04 20:18:53 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
|
|
#define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) |
#define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) |
}; |
}; |
|
|
#define LINES_MAX 370 |
#define LINES_MAX 362 |
|
|
#define CHAR(in, ch, code) \ |
#define CHAR(in, ch, code) \ |
{ NULL, (in), (ch), (code), CHARS_CHAR }, |
{ NULL, (in), (ch), (code), CHARS_CHAR }, |
Line 94 chars_init(enum chars type) |
|
Line 94 chars_init(enum chars type) |
|
tab = malloc(sizeof(struct tbl)); |
tab = malloc(sizeof(struct tbl)); |
if (NULL == tab) { |
if (NULL == tab) { |
perror(NULL); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |
|
|
htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
if (NULL == htab) { |
if (NULL == htab) { |
perror(NULL); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit((int)MANDOCLEVEL_SYSERR); |
} |
} |
|
|
for (i = 0; i < LINES_MAX; i++) { |
for (i = 0; i < LINES_MAX; i++) { |