diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-01-18 20:52:48 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-01-18 20:52:48 +0000 |
commit | a535a99dba67317f2fc91cdc987327551af931ab (patch) | |
tree | 1cafed87083b37c595cab34dd8c413abe99f86fe /src/data.c | |
parent | 089ee837e9a769c9888160363a8b108c2c4b3dd0 (diff) | |
download | emacs-a535a99dba67317f2fc91cdc987327551af931ab.tar.gz |
Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead.
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/data.c b/src/data.c index 482be25e1cb..93e3811be4b 100644 --- a/src/data.c +++ b/src/data.c @@ -1,5 +1,5 @@ /* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter. - Copyright (C) 1985, 1986, 1988, 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1985, 86, 88, 93, 94, 95 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -656,11 +656,7 @@ store_symval_forwarding (sym, valcontents, newval) Lisp_Object sym; register Lisp_Object valcontents, newval; { -#ifdef SWITCH_ENUM_BUG - switch ((int) XTYPE (valcontents)) -#else - switch (XTYPE (valcontents)) -#endif + switch (SWITCH_ENUM_CAST (XTYPE (valcontents))) { case Lisp_Misc: switch (XMISC (valcontents)->type) @@ -1630,11 +1626,7 @@ arith_driver (code, nargs, args) register int accum; register int next; -#ifdef SWITCH_ENUM_BUG - switch ((int) code) -#else - switch (code) -#endif + switch (SWITCH_ENUM_CAST (code)) { case Alogior: case Alogxor: @@ -1661,11 +1653,7 @@ arith_driver (code, nargs, args) #endif /* LISP_FLOAT_TYPE */ args[argnum] = val; /* runs into a compiler bug. */ next = XINT (args[argnum]); -#ifdef SWITCH_ENUM_BUG - switch ((int) code) -#else - switch (code) -#endif + switch (SWITCH_ENUM_CAST (code)) { case Aadd: accum += next; break; case Asub: @@ -1725,11 +1713,7 @@ float_arith_driver (accum, argnum, code, nargs, args) args[argnum] = val; /* runs into a compiler bug. */ next = XINT (args[argnum]); } -#ifdef SWITCH_ENUM_BUG - switch ((int) code) -#else - switch (code) -#endif + switch (SWITCH_ENUM_CAST (code)) { case Aadd: accum += next; |