version 1.4, 2009/03/20 21:58:38 |
version 1.6, 2009/04/12 19:19:57 |
|
|
#define ASCII_PRINT_HI 126 |
#define ASCII_PRINT_HI 126 |
#define ASCII_PRINT_LO 32 |
#define ASCII_PRINT_LO 32 |
|
|
/* |
|
* Lookup and hashing routines for constructing the ASCII symbol table, |
|
* which should contain a significant portion of mdoc(7)'s special |
|
* symbols. |
|
*/ |
|
|
|
struct line { |
struct line { |
const char *code; |
const char *code; |
const char *out; |
const char *out; |
Line 143 term_a2ascii(void *arg, const char *p, size_t sz, size |
|
Line 137 term_a2ascii(void *arg, const char *p, size_t sz, size |
|
|
|
assert(p); |
assert(p); |
assert(sz > 0); |
assert(sz > 0); |
assert(p[0] >= ASCII_PRINT_LO && p[0] <= ASCII_PRINT_HI); |
|
|
if (p[0] < ASCII_PRINT_LO || p[0] > ASCII_PRINT_HI) |
|
return(NULL); |
|
|
|
|
/* |
/* |
* Lookup the symbol in the symbol hash. See ascii2htab for the |
* Lookup the symbol in the symbol hash. See ascii2htab for the |