aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert2018-12-09 17:07:16 -0800
committerPaul Eggert2018-12-09 17:11:37 -0800
commit48d7720993283a3387807fa5582bb10b1636bba5 (patch)
tree74c7b2935470fcb39383390caec8485172243d84 /src/lisp.h
parent87bc518afcc3adc23762944ef49f89d375f90260 (diff)
downloademacs-48d7720993283a3387807fa5582bb10b1636bba5.tar.gz
emacs-48d7720993283a3387807fa5582bb10b1636bba5.zip
Remove CHECK_FIXNUM_CAR etc.
* src/coding.c (CHECK_FIXNAT_CAR, CHECK_FIXNAT_CDR): * src/lisp.h (CHECK_FIXNUM_CAR, CHECK_FIXNUM_CDR): Remove. All uses removed. These seem to have been based on the assumption that the argument cons needs to be modified, an assumption that is incorrect for fixnums. (Fdefine_coding_system_internal): Use CHECK_RANGED_INTEGER instead of a special diagnostic for graphic register numbers.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 3943bf63ee7..bda848430a2 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2906,24 +2906,6 @@ CHECK_INTEGER (Lisp_Object x)
2906 else \ 2906 else \
2907 CHECK_TYPE (INTEGERP (x), Qnumber_or_marker_p, x); \ 2907 CHECK_TYPE (INTEGERP (x), Qnumber_or_marker_p, x); \
2908 } while (false) 2908 } while (false)
2909
2910/* Since we can't assign directly to the CAR or CDR fields of a cons
2911 cell, use these when checking that those fields contain numbers. */
2912INLINE void
2913CHECK_FIXNUM_CAR (Lisp_Object x)
2914{
2915 Lisp_Object tmp = XCAR (x);
2916 CHECK_FIXNUM (tmp);
2917 XSETCAR (x, tmp);
2918}
2919
2920INLINE void
2921CHECK_FIXNUM_CDR (Lisp_Object x)
2922{
2923 Lisp_Object tmp = XCDR (x);
2924 CHECK_FIXNUM (tmp);
2925 XSETCDR (x, tmp);
2926}
2927 2909
2928/* Define a built-in function for calling from Lisp. 2910/* Define a built-in function for calling from Lisp.
2929 `lname' should be the name to give the function in Lisp, 2911 `lname' should be the name to give the function in Lisp,