match: allow the CharAttrs table to be modified at runtime
This commit is contained in:
parent
e47c4be18c
commit
f3b84221d0
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ extern const unsigned char irctolower_tab[];
|
||||||
extern const unsigned char irctoupper_tab[];
|
extern const unsigned char irctoupper_tab[];
|
||||||
#define irctoupper(c) (irctoupper_tab[(unsigned char)(c)])
|
#define irctoupper(c) (irctoupper_tab[(unsigned char)(c)])
|
||||||
|
|
||||||
extern const unsigned int CharAttrs[];
|
extern unsigned int CharAttrs[];
|
||||||
|
|
||||||
#define PRINT_C 0x001
|
#define PRINT_C 0x001
|
||||||
#define CNTRL_C 0x002
|
#define CNTRL_C 0x002
|
||||||
|
|
|
@ -670,7 +670,7 @@ const unsigned char irctoupper_tab[] = {
|
||||||
* NOTE: RFC 1459 sez: anything but a ^G, comma, or space is allowed
|
* NOTE: RFC 1459 sez: anything but a ^G, comma, or space is allowed
|
||||||
* for channel names
|
* for channel names
|
||||||
*/
|
*/
|
||||||
const unsigned int CharAttrs[] = {
|
unsigned int CharAttrs[] = {
|
||||||
/* 0 */ CNTRL_C,
|
/* 0 */ CNTRL_C,
|
||||||
/* 1 */ CNTRL_C | CHAN_C | NONEOS_C,
|
/* 1 */ CNTRL_C | CHAN_C | NONEOS_C,
|
||||||
/* 2 */ CNTRL_C | CHAN_C | FCHAN_C | NONEOS_C,
|
/* 2 */ CNTRL_C | CHAN_C | FCHAN_C | NONEOS_C,
|
||||||
|
|
Loading…
Reference in a new issue