version 1.135, 2011/04/30 22:14:02 |
version 1.137, 2011/04/30 22:24:31 |
Line 122 ml_alloc(char *outopts, enum htmltype type) |
|
Line 122 ml_alloc(char *outopts, enum htmltype type) |
|
|
|
h->type = type; |
h->type = type; |
h->tags.head = NULL; |
h->tags.head = NULL; |
h->symtab = mchars_init(); |
h->symtab = mchars_alloc(); |
|
|
while (outopts && *outopts) |
while (outopts && *outopts) |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
switch (getsubopt(&outopts, UNCONST(toks), &v)) { |
Line 212 print_gen_head(struct html *h) |
|
Line 212 print_gen_head(struct html *h) |
|
static void |
static void |
print_num(struct html *h, const char *p, size_t len) |
print_num(struct html *h, const char *p, size_t len) |
{ |
{ |
const char *rhs; |
char c; |
|
|
rhs = mchars_num2char(p, len); |
if ('\0' != (c = mchars_num2char(p, len))) |
if (rhs) |
putchar((int)c); |
putchar((int)*rhs); |
|
} |
} |
|
|
static void |
static void |