Mercurial > emacs
diff src/data.c @ 10457:2ab3bd0288a9
Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead.
| author | Karl Heuer <kwzh@gnu.org> |
|---|---|
| date | Wed, 18 Jan 1995 20:52:48 +0000 |
| parents | 1bcc91a4b210 |
| children | bc37b55fcbb9 |
line wrap: on
line diff
--- a/src/data.c Wed Jan 18 20:47:36 1995 +0000 +++ b/src/data.c Wed Jan 18 20:52:48 1995 +0000 @@ -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 @@ 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 @@ 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 @@ #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 @@ 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;
