diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-11 15:13:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-04-11 15:13:12 (GMT) |
commit | 27aba5645ca809827fd1a655677fc1080f8dcb03 (patch) | |
tree | 19925d09bf6d272c21191c7d628499c0cfdefc45 /generic/regc_locale.c | |
parent | 54ee71bc1207b883cec010d1f5acb60b08a8cc7b (diff) | |
download | tcl-27aba5645ca809827fd1a655677fc1080f8dcb03.zip tcl-27aba5645ca809827fd1a655677fc1080f8dcb03.tar.gz tcl-27aba5645ca809827fd1a655677fc1080f8dcb03.tar.bz2 |
CC_NONE -> CC_NULL. Otherwise, there's a conflict with Windows headers
Diffstat (limited to 'generic/regc_locale.c')
-rw-r--r-- | generic/regc_locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/regc_locale.c b/generic/regc_locale.c index 4b1a1e8..d22fd50 100644 --- a/generic/regc_locale.c +++ b/generic/regc_locale.c @@ -1013,7 +1013,7 @@ cclass( }; enum classes { - CC_NONE = -1, + CC_NULL = -1, CC_ALNUM, CC_ALPHA, CC_ASCII, CC_BLANK, CC_CNTRL, CC_DIGIT, CC_GRAPH, CC_LOWER, CC_PRINT, CC_PUNCT, CC_SPACE, CC_UPPER, CC_XDIGIT } index; @@ -1031,7 +1031,7 @@ cclass( * Map the name to the corresponding enumerated value. */ - index = CC_NONE; + index = CC_NULL; for (namePtr=classNames,i=0 ; *namePtr!=NULL ; namePtr++,i++) { if ((strlen(*namePtr) == len) && (strncmp(*namePtr, np, len) == 0)) { index = (enum classes)i; @@ -1053,7 +1053,7 @@ cclass( */ switch(index) { - case CC_NONE: + case CC_NULL: ERR(REG_ECTYPE); return NULL; case CC_ALNUM: |