version 1.32, 2011/01/30 16:05:37 |
version 1.33, 2011/03/17 08:49:34 |
Line 92 chars_init(enum chars type) |
|
Line 92 chars_init(enum chars type) |
|
* (they're in-line re-ordered during lookup). |
* (they're in-line re-ordered during lookup). |
*/ |
*/ |
|
|
tab = malloc(sizeof(struct ctab)); |
tab = mandoc_malloc(sizeof(struct ctab)); |
if (NULL == tab) { |
htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
perror(NULL); |
|
exit((int)MANDOCLEVEL_SYSERR); |
|
} |
|
|
|
htab = calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln **)); |
|
if (NULL == htab) { |
|
perror(NULL); |
|
exit((int)MANDOCLEVEL_SYSERR); |
|
} |
|
|
|
for (i = 0; i < LINES_MAX; i++) { |
for (i = 0; i < LINES_MAX; i++) { |
hash = (int)lines[i].code[0] - PRINT_LO; |
hash = (int)lines[i].code[0] - PRINT_LO; |