version 1.47, 2011/07/07 06:41:50 |
version 1.49, 2011/07/22 14:15:15 |
|
|
int unicode; |
int unicode; |
}; |
}; |
|
|
#define LINES_MAX 325 |
#define LINES_MAX 328 |
|
|
#define CHAR(in, ch, code) \ |
#define CHAR(in, ch, code) \ |
{ NULL, (in), (ch), (code) }, |
{ NULL, (in), (ch), (code) }, |
Line 111 mchars_num2char(const char *p, size_t sz) |
|
Line 111 mchars_num2char(const char *p, size_t sz) |
|
{ |
{ |
int i; |
int i; |
|
|
if ((i = mandoc_strntou(p, sz, 10)) < 0) |
if ((i = mandoc_strntoi(p, sz, 10)) < 0) |
return('\0'); |
return('\0'); |
return(isprint(i) ? i : '\0'); |
return(isprint(i) ? i : '\0'); |
} |
} |
Line 121 mchars_num2uc(const char *p, size_t sz) |
|
Line 121 mchars_num2uc(const char *p, size_t sz) |
|
{ |
{ |
int i; |
int i; |
|
|
if ((i = mandoc_strntou(p, sz, 16)) < 0) |
if ((i = mandoc_strntoi(p, sz, 16)) < 0) |
return('\0'); |
return('\0'); |
/* FIXME: make sure we're not in a bogus range. */ |
/* FIXME: make sure we're not in a bogus range. */ |
return(i > 0x80 && i <= 0x10FFFF ? i : '\0'); |
return(i > 0x80 && i <= 0x10FFFF ? i : '\0'); |