Mercurial > hg > xemacs-beta
diff src/regex.c @ 4765:1257b938f03a
automatic merge
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Fri, 04 Dec 2009 10:59:45 +0900 |
parents | aa5ed11f473b |
children | 07fa38c30fdf |
line wrap: on
line diff
--- a/src/regex.c Fri Dec 04 10:56:38 2009 +0900 +++ b/src/regex.c Fri Dec 04 10:59:45 2009 +0900 @@ -172,13 +172,6 @@ # define gettext(msgid) (msgid) #endif -/* Under XEmacs, this is needed because we don't define it elsewhere. */ -#ifdef SWITCH_ENUM_BUG -#define SWITCH_ENUM_CAST(x) ((int)(x)) -#else -#define SWITCH_ENUM_CAST(x) (x) -#endif - /* Get the interface, including the syntax bits. */ #include "regex.h" @@ -3764,7 +3757,7 @@ /* We should never be about to go beyond the end of the pattern. */ assert (p < pend); - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) + switch ((re_opcode_t) *p++) { /* I guess the idea here is to simply not bother with a fastmap @@ -5232,7 +5225,7 @@ } /* Otherwise match next pattern command. */ - switch (SWITCH_ENUM_CAST ((re_opcode_t) *p++)) + switch ((re_opcode_t) *p++) { /* Ignore these. Used to ignore the n of succeed_n's which currently have n == 0. */