aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorKarl Heuer1995-01-18 20:52:48 +0000
committerKarl Heuer1995-01-18 20:52:48 +0000
commit0220c51857539b3bf812c3c0948efaa3429c3852 (patch)
tree98f18803cb65ab459c3e4e87b367b4a42da74489 /src/data.c
parentc1d4ff308d5e9d24b4c3cc95b5fa9b3ad4af42a8 (diff)
downloademacs-0220c51857539b3bf812c3c0948efaa3429c3852.tar.gz
emacs-0220c51857539b3bf812c3c0948efaa3429c3852.zip
Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c26
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 @@
1/* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter. 1/* Primitive operations on Lisp data types for GNU Emacs Lisp interpreter.
2 Copyright (C) 1985, 1986, 1988, 1993, 1994 Free Software Foundation, Inc. 2 Copyright (C) 1985, 86, 88, 93, 94, 95 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
@@ -656,11 +656,7 @@ store_symval_forwarding (sym, valcontents, newval)
656 Lisp_Object sym; 656 Lisp_Object sym;
657 register Lisp_Object valcontents, newval; 657 register Lisp_Object valcontents, newval;
658{ 658{
659#ifdef SWITCH_ENUM_BUG 659 switch (SWITCH_ENUM_CAST (XTYPE (valcontents)))
660 switch ((int) XTYPE (valcontents))
661#else
662 switch (XTYPE (valcontents))
663#endif
664 { 660 {
665 case Lisp_Misc: 661 case Lisp_Misc:
666 switch (XMISC (valcontents)->type) 662 switch (XMISC (valcontents)->type)
@@ -1630,11 +1626,7 @@ arith_driver (code, nargs, args)
1630 register int accum; 1626 register int accum;
1631 register int next; 1627 register int next;
1632 1628
1633#ifdef SWITCH_ENUM_BUG 1629 switch (SWITCH_ENUM_CAST (code))
1634 switch ((int) code)
1635#else
1636 switch (code)
1637#endif
1638 { 1630 {
1639 case Alogior: 1631 case Alogior:
1640 case Alogxor: 1632 case Alogxor:
@@ -1661,11 +1653,7 @@ arith_driver (code, nargs, args)
1661#endif /* LISP_FLOAT_TYPE */ 1653#endif /* LISP_FLOAT_TYPE */
1662 args[argnum] = val; /* runs into a compiler bug. */ 1654 args[argnum] = val; /* runs into a compiler bug. */
1663 next = XINT (args[argnum]); 1655 next = XINT (args[argnum]);
1664#ifdef SWITCH_ENUM_BUG 1656 switch (SWITCH_ENUM_CAST (code))
1665 switch ((int) code)
1666#else
1667 switch (code)
1668#endif
1669 { 1657 {
1670 case Aadd: accum += next; break; 1658 case Aadd: accum += next; break;
1671 case Asub: 1659 case Asub:
@@ -1725,11 +1713,7 @@ float_arith_driver (accum, argnum, code, nargs, args)
1725 args[argnum] = val; /* runs into a compiler bug. */ 1713 args[argnum] = val; /* runs into a compiler bug. */
1726 next = XINT (args[argnum]); 1714 next = XINT (args[argnum]);
1727 } 1715 }
1728#ifdef SWITCH_ENUM_BUG 1716 switch (SWITCH_ENUM_CAST (code))
1729 switch ((int) code)
1730#else
1731 switch (code)
1732#endif
1733 { 1717 {
1734 case Aadd: 1718 case Aadd:
1735 accum += next; 1719 accum += next;