version 1.74, 2009/10/30 18:53:08 |
version 1.75, 2009/10/31 06:10:57 |
Line 101 html_alloc(char *outopts) |
|
Line 101 html_alloc(char *outopts) |
|
|
|
h = calloc(1, sizeof(struct html)); |
h = calloc(1, sizeof(struct html)); |
if (NULL == h) { |
if (NULL == h) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
|
|
Line 354 print_otag(struct html *h, enum htmltag tag, |
|
Line 354 print_otag(struct html *h, enum htmltag tag, |
|
if ( ! (HTML_NOSTACK & htmltags[tag].flags)) { |
if ( ! (HTML_NOSTACK & htmltags[tag].flags)) { |
t = malloc(sizeof(struct tag)); |
t = malloc(sizeof(struct tag)); |
if (NULL == t) { |
if (NULL == t) { |
fprintf(stderr, "memory exhausted\n"); |
perror(NULL); |
exit(EXIT_FAILURE); |
exit(EXIT_FAILURE); |
} |
} |
t->tag = tag; |
t->tag = tag; |