summaryrefslogtreecommitdiff
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-11-11 07:34:37 +0000
committerKarl Heuer <kwzh@gnu.org>1994-11-11 07:34:37 +0000
commit49c7cdf309ecf021dd9b07700dc1562240ce20ce (patch)
tree577b67fcd11cefdb382691476703f52d3774ac15 /src/bytecode.c
parent2b440327969fa16289511342a13017136fcca3e9 (diff)
downloademacs-49c7cdf309ecf021dd9b07700dc1562240ce20ce.tar.gz
(Fbyte_code): Special case for buffer-local objects is now handled by the more
general test. Simplify.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 4e458ebe79c..f201adebfc6 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -341,20 +341,8 @@ If the third argument is incorrect, Emacs may crash.")
else
{
v2 = XSYMBOL (v1)->value;
-#ifdef SWITCH_ENUM_BUG
- switch ((int) XTYPE (v2))
-#else
- switch (XTYPE (v2))
-#endif
- {
- case Lisp_Symbol:
- if (!EQ (v2, Qunbound))
- break;
- case Lisp_Misc:
- case Lisp_Buffer_Local_Value:
- case Lisp_Some_Buffer_Local_Value:
- v2 = Fsymbol_value (v1);
- }
+ if (MISCP (v2) || EQ (v2, Qunbound))
+ v2 = Fsymbol_value (v1);
}
PUSH (v2);
break;