… | |
… | |
615 | /* |
615 | /* |
616 | ***************************************************************************** |
616 | ***************************************************************************** |
617 | * MACRO DEFINES |
617 | * MACRO DEFINES |
618 | ***************************************************************************** |
618 | ***************************************************************************** |
619 | */ |
619 | */ |
|
|
620 | |
|
|
621 | // speed hack, copy some member variable into a local variable of the same name |
620 | #define dLocal(type,name) type const name = this->name |
622 | #define dLocal(type,name) type const name = this->name |
621 | |
623 | |
622 | // for speed reasons, we assume that all codepoints 32 to 126 are |
624 | // for speed reasons, we assume that all codepoints 32 to 126 are |
623 | // single-width. |
625 | // single-width. |
624 | #define WCWIDTH(c) (IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : wcwidth (c)) |
626 | #define WCWIDTH(c) (IN_RANGE_INC (c, 0x20, 0x7e) ? 1 : wcwidth (c)) |