From: Ryan Norton Date: Sun, 14 Dec 2003 23:05:04 +0000 (+0000) Subject: Various fixes and warnings X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f5386212fe03480a33e395a7fd5aad3b3d0ef64e Various fixes and warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/regex/regcustom.h b/src/regex/regcustom.h index 4d897ca879..02db688850 100644 --- a/src/regex/regcustom.h +++ b/src/regex/regcustom.h @@ -70,14 +70,19 @@ typedef long celt; /* type to hold chr, MCCE number, or * literal */ #define DIGITVAL(c) ((c)-'0') /* turn chr digit into its value */ -/* RN - the "not use sizeof() thing is really asanine!" */ +/* RN - the "not use sizeof() thing is really annoying!" */ #if wxUSE_UNICODE # define CHRBITS 32 #else # define CHRBITS 8 /* bits in a chr; must not use sizeof */ #endif #define CHR_MIN 0x00000000 /* smallest and largest chr; the value */ -#define CHR_MAX (1 << CHRBITS) /*0xfffffffe*/ /* CHR_MAX-CHR_MIN+1 should fit in uchr */ +/* + PUTTING PARENTHASES AROUND THIS, I.E. (1 << CHRBITS) WILL + CAUSE ALL CHARACTERS TO BE MATCHED!!! +*/ +#define CHR_MAX 1 << CHRBITS /*0xfffffffe*/ /* CHR_MAX-CHR_MIN+1 should fit in uchr */ + /* functions operating on chr */ #define iscalnum(x) wx_isalnum(x)