Shortened names and adjusted style.
This commit is contained in:
@@ -14,15 +14,15 @@
|
||||
|
||||
; Define bitmapped constants for the table entries
|
||||
|
||||
CT_NONE = $00 ; Nothing special
|
||||
CT_LOWER = $01 ; 0 - Lower case char
|
||||
CT_UPPER = $02 ; 1 - Upper case char
|
||||
CT_DIGIT = $04 ; 2 - Numeric digit
|
||||
CT_XDIGIT = $08 ; 3 - Hex digit (both, lower and upper)
|
||||
CT_CTRL = $10 ; 4 - Control character
|
||||
CT_SPACE = $20 ; 5 - The space character itself
|
||||
CT_OTHER_WS = $40 ; 6 - Other whitespace ('\f', '\n', '\r', '\t' and '\v')
|
||||
CT_SPACE_TAB = $80 ; 7 - Space or tab character
|
||||
CT_NONE = %00000000 ; Nothing special
|
||||
CT_LOWER = %00000001 ; 0 - Lower case char
|
||||
CT_UPPER = %00000010 ; 1 - Upper case char
|
||||
CT_DIGIT = %00000100 ; 2 - Numeric digit
|
||||
CT_XDIGIT = %00001000 ; 3 - Hex digit (both, lower and upper)
|
||||
CT_CTRL = %00010000 ; 4 - Control character
|
||||
CT_SPACE = %00100000 ; 5 - The space character itself
|
||||
CT_OTHER_WS = %01000000 ; 6 - Other whitespace ('\f', '\n', '\r', '\t' and '\v')
|
||||
CT_SPACE_TAB = %10000000 ; 7 - Space or tab character
|
||||
|
||||
; Combined stuff
|
||||
CT_ALNUM = (CT_LOWER | CT_UPPER | CT_DIGIT)
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
;
|
||||
|
||||
.include "ctypetable.inc"
|
||||
.export __ctypeIdx
|
||||
.export __ctypeidx
|
||||
|
||||
; The tables are readonly, put them into the rodata segment
|
||||
|
||||
.rodata
|
||||
|
||||
__ctypeIdx:
|
||||
__ctypeidx:
|
||||
ct_mix CT_CTRL_IDX, CT_CTRL_IDX ; 0/00 ___ctrl_@___, 1/01 ___ctrl_A___
|
||||
ct_mix CT_CTRL_IDX, CT_CTRL_IDX ; 2/02 ___ctrl_B___, 3/03 ___ctrl_C___
|
||||
ct_mix CT_CTRL_IDX, CT_CTRL_IDX ; 4/04 ___ctrl_D___, 5/05 ___ctrl_E___
|
||||
|
||||
Reference in New Issue
Block a user