aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorStefan Kangas2025-01-20 01:55:19 +0100
committerStefan Kangas2025-01-20 02:14:08 +0100
commit278d1994af4c52a5590c793d27d8fd2867fe7a66 (patch)
tree4eda9f47937295c5e4c422776f49934c7ca3bc5d /src/data.c
parentdcccb9256262f8e992b75602dd4e861371b97361 (diff)
downloademacs-278d1994af4c52a5590c793d27d8fd2867fe7a66.tar.gz
emacs-278d1994af4c52a5590c793d27d8fd2867fe7a66.zip
Remove redundant case_Lisp_Int macro
The case_Lisp_Int macro was originally introduced with different definitions depending on USE_2_TAGS_FOR_INTS. However, since commit 2b5701247845, we have assumed that USE_2_TAGS_FOR_INTS is always defined, and the macro has only a single definition. As a result, the macro is now unnecessary, and replacing it with standard C case labels improves readability and understanding. * src/lisp.h (case_Lisp_Int): Delete macro. * src/alloc.c (process_mark_stack, survives_gc_p): * src/data.c (Fcl_type_of): * src/fns.c (value_cmp, sxhash_obj): * src/pdumper.c (dump_object): * src/print.c (print_object): * src/xfaces.c (face_attr_equal_p): Remove uses of above macro.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index 8236721961f..077719c4062 100644
--- a/src/data.c
+++ b/src/data.c
@@ -209,7 +209,8 @@ a fixed set of types. */)
209{ 209{
210 switch (XTYPE (object)) 210 switch (XTYPE (object))
211 { 211 {
212 case_Lisp_Int: 212 case Lisp_Int0:
213 case Lisp_Int1:
213 return Qfixnum; 214 return Qfixnum;
214 215
215 case Lisp_Symbol: 216 case Lisp_Symbol: