version 1.10, 2009/10/30 18:43:24 |
version 1.12, 2009/11/01 07:44:32 |
|
|
int type; |
int type; |
#define CHARS_CHAR (1 << 0) |
#define CHARS_CHAR (1 << 0) |
#define CHARS_STRING (1 << 1) |
#define CHARS_STRING (1 << 1) |
#define CHARS_BOTH (0x03) |
#define CHARS_BOTH (CHARS_CHAR | CHARS_STRING) |
}; |
}; |
|
|
#define LINES_MAX 351 |
#define LINES_MAX 351 |
Line 91 chars_init(enum chars type) |
|
Line 91 chars_init(enum chars type) |
|
|
|
tab = malloc(sizeof(struct tbl)); |
tab = malloc(sizeof(struct tbl)); |
if (NULL == tab) { |
if (NULL == tab) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|
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) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|