aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-10-06 23:25:26 +0000
committerGerd Moellmann2001-10-06 23:25:26 +0000
commite6190b111d69b998fe7a2d3224616ab6eb7d392b (patch)
treee02bd71273bf6294df9b3263f8689c60a7daed45 /src/data.c
parentdc8e8b07bdf1baa52dc5c1bd1ea4dd839aa6cb55 (diff)
downloademacs-e6190b111d69b998fe7a2d3224616ab6eb7d392b.tar.gz
emacs-e6190b111d69b998fe7a2d3224616ab6eb7d392b.zip
(most_positive_fixnum, most_negative_fixnum): New
variables. (syms_of_data): DEFVAR_INT most-positive-fixnum and most-negative-fixnum.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index 85a5980d1c1..527edc4ec35 100644
--- a/src/data.c
+++ b/src/data.c
@@ -96,6 +96,8 @@ static Lisp_Object Qsubrp, Qmany, Qunevalled;
96 96
97static Lisp_Object swap_in_symval_forwarding P_ ((Lisp_Object, Lisp_Object)); 97static Lisp_Object swap_in_symval_forwarding P_ ((Lisp_Object, Lisp_Object));
98 98
99int most_positive_fixnum, most_negative_fixnum;
100
99Lisp_Object 101Lisp_Object
100wrong_type_argument (predicate, value) 102wrong_type_argument (predicate, value)
101 register Lisp_Object predicate, value; 103 register Lisp_Object predicate, value;
@@ -3166,6 +3168,14 @@ syms_of_data ()
3166 defsubr (&Ssubr_arity); 3168 defsubr (&Ssubr_arity);
3167 3169
3168 XSYMBOL (Qwholenump)->function = XSYMBOL (Qnatnump)->function; 3170 XSYMBOL (Qwholenump)->function = XSYMBOL (Qnatnump)->function;
3171
3172 DEFVAR_INT ("most-positive-fixnum", &most_positive_fixnum,
3173 "The largest value that is representable in a Lisp integer.");
3174 most_positive_fixnum = MOST_POSITIVE_FIXNUM;
3175
3176 DEFVAR_INT ("most-negative-fixnum", &most_negative_fixnum,
3177 "The smallest value that is representable in a Lisp integer.");
3178 most_negative_fixnum = MOST_NEGATIVE_FIXNUM;
3169} 3179}
3170 3180
3171SIGTYPE 3181SIGTYPE