summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lisp.h b/src/lisp.h
index ee5a8481ae8..d803f160006 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -2640,13 +2640,6 @@ make_uint (uintmax_t n)
#define INT_TO_INTEGER(expr) \
(EXPR_SIGNED (expr) ? make_int (expr) : make_uint (expr))
-/* Return the integral value of NUM. If NUM is too big for TYPE,
- signal an error. */
-#define INTEGER_TO_INT(num, type) \
- (TYPE_SIGNED (type) \
- ? ranged_integer_to_int ((num), TYPE_MINIMUM (type), TYPE_MAXIMUM (type)) \
- : ranged_integer_to_uint ((num), TYPE_MAXIMUM (type)))
-
/* Forwarding pointer to an int variable.
This is allowed only in the value cell of a symbol,
@@ -5023,26 +5016,6 @@ maybe_gc (void)
garbage_collect ();
}
-INLINE intmax_t
-ranged_integer_to_int (Lisp_Object num, intmax_t min, intmax_t max)
-{
- CHECK_INTEGER (num);
- intmax_t result;
- if (!(integer_to_intmax (num, &result) && min <= result && result <= max))
- args_out_of_range_3 (num, make_int (min), make_int (max));
- return result;
-}
-
-INLINE uintmax_t
-ranged_integer_to_uint (Lisp_Object num, uintmax_t max)
-{
- CHECK_INTEGER (num);
- uintmax_t result;
- if (!(integer_to_uintmax (num, &result) && result <= max))
- args_out_of_range_3 (num, make_fixed_natnum (0), make_uint (max));
- return result;
-}
-
INLINE_HEADER_END
#endif /* EMACS_LISP_H */