version 1.8, 2015/11/19 23:20:34 |
version 1.9, 2015/11/19 23:34:56 |
|
|
/* cclinstal - save the text of a character class */ |
/* cclinstal - save the text of a character class */ |
|
|
void cclinstal (ccltxt, cclnum) |
void cclinstal (ccltxt, cclnum) |
Char ccltxt[]; |
u_char ccltxt[]; |
int cclnum; |
int cclnum; |
{ |
{ |
/* We don't bother checking the return status because we are not |
/* We don't bother checking the return status because we are not |
|
|
*/ |
*/ |
|
|
int ccllookup (ccltxt) |
int ccllookup (ccltxt) |
Char ccltxt[]; |
u_char ccltxt[]; |
{ |
{ |
return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val; |
return findsym ((char *) ccltxt, ccltab, CCL_HASH_SIZE)->int_val; |
} |
} |
|
|
|
|
void ndinstal (name, definition) |
void ndinstal (name, definition) |
const char *name; |
const char *name; |
Char definition[]; |
u_char definition[]; |
{ |
{ |
|
|
if (addsym (copy_string (name), |
if (addsym (copy_string (name), |
|
|
* Returns a nil pointer if the name definition does not exist. |
* Returns a nil pointer if the name definition does not exist. |
*/ |
*/ |
|
|
Char *ndlookup (nd) |
u_char *ndlookup (nd) |
const char *nd; |
const char *nd; |
{ |
{ |
return (Char *) findsym (nd, ndtbl, NAME_TABLE_HASH_SIZE)->str_val; |
return (u_char *) findsym (nd, ndtbl, NAME_TABLE_HASH_SIZE)->str_val; |
} |
} |
|
|
|
|