diff options
| author | Tom Tromey | 2018-07-06 21:56:17 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-07-12 22:12:27 -0600 |
| commit | 42fe787b0f26c2df682b2797407a669ef8522ccb (patch) | |
| tree | e944fe465e2b65703a8361bc82647faf4f7907f1 /src/eval.c | |
| parent | 01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff) | |
| download | emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip | |
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c,
src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c,
src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c,
src/process.c, src/profiler.c, src/search.c, src/sound.c,
src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c,
src/textprop.c, src/undo.c, src/w16select.c, src/w32.c,
src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c,
src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c,
src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c,
src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c,
src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename
INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM,
make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP,
NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/eval.c b/src/eval.c index 256ca8ffdc8..800d7f2afb8 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -303,8 +303,8 @@ call_debugger (Lisp_Object arg) | |||
| 303 | 303 | ||
| 304 | /* Restore limits after leaving the debugger. */ | 304 | /* Restore limits after leaving the debugger. */ |
| 305 | record_unwind_protect (restore_stack_limits, | 305 | record_unwind_protect (restore_stack_limits, |
| 306 | Fcons (make_number (old_max), | 306 | Fcons (make_fixnum (old_max), |
| 307 | make_number (old_depth))); | 307 | make_fixnum (old_depth))); |
| 308 | 308 | ||
| 309 | #ifdef HAVE_WINDOW_SYSTEM | 309 | #ifdef HAVE_WINDOW_SYSTEM |
| 310 | if (display_hourglass_p) | 310 | if (display_hourglass_p) |
| @@ -511,7 +511,7 @@ usage: (setq [SYM VAL]...) */) | |||
| 511 | Lisp_Object sym = XCAR (tail), lex_binding; | 511 | Lisp_Object sym = XCAR (tail), lex_binding; |
| 512 | tail = XCDR (tail); | 512 | tail = XCDR (tail); |
| 513 | if (!CONSP (tail)) | 513 | if (!CONSP (tail)) |
| 514 | xsignal2 (Qwrong_number_of_arguments, Qsetq, make_number (nargs + 1)); | 514 | xsignal2 (Qwrong_number_of_arguments, Qsetq, make_fixnum (nargs + 1)); |
| 515 | Lisp_Object arg = XCAR (tail); | 515 | Lisp_Object arg = XCAR (tail); |
| 516 | tail = XCDR (tail); | 516 | tail = XCDR (tail); |
| 517 | val = eval_sub (arg); | 517 | val = eval_sub (arg); |
| @@ -2007,12 +2007,12 @@ this does nothing and returns nil. */) | |||
| 2007 | && !AUTOLOADP (XSYMBOL (function)->u.s.function)) | 2007 | && !AUTOLOADP (XSYMBOL (function)->u.s.function)) |
| 2008 | return Qnil; | 2008 | return Qnil; |
| 2009 | 2009 | ||
| 2010 | if (!NILP (Vpurify_flag) && EQ (docstring, make_number (0))) | 2010 | if (!NILP (Vpurify_flag) && EQ (docstring, make_fixnum (0))) |
| 2011 | /* `read1' in lread.c has found the docstring starting with "\ | 2011 | /* `read1' in lread.c has found the docstring starting with "\ |
| 2012 | and assumed the docstring will be provided by Snarf-documentation, so it | 2012 | and assumed the docstring will be provided by Snarf-documentation, so it |
| 2013 | passed us 0 instead. But that leads to accidental sharing in purecopy's | 2013 | passed us 0 instead. But that leads to accidental sharing in purecopy's |
| 2014 | hash-consing, so we use a (hopefully) unique integer instead. */ | 2014 | hash-consing, so we use a (hopefully) unique integer instead. */ |
| 2015 | docstring = make_number (XHASH (function)); | 2015 | docstring = make_fixnum (XHASH (function)); |
| 2016 | return Fdefalias (function, | 2016 | return Fdefalias (function, |
| 2017 | list5 (Qautoload, file, docstring, interactive, type), | 2017 | list5 (Qautoload, file, docstring, interactive, type), |
| 2018 | Qnil); | 2018 | Qnil); |
| @@ -2032,7 +2032,7 @@ un_autoload (Lisp_Object oldqueue) | |||
| 2032 | first = XCAR (queue); | 2032 | first = XCAR (queue); |
| 2033 | second = Fcdr (first); | 2033 | second = Fcdr (first); |
| 2034 | first = Fcar (first); | 2034 | first = Fcar (first); |
| 2035 | if (EQ (first, make_number (0))) | 2035 | if (EQ (first, make_fixnum (0))) |
| 2036 | Vfeatures = second; | 2036 | Vfeatures = second; |
| 2037 | else | 2037 | else |
| 2038 | Ffset (first, second); | 2038 | Ffset (first, second); |
| @@ -2057,7 +2057,7 @@ it defines a macro. */) | |||
| 2057 | if (!CONSP (fundef) || !EQ (Qautoload, XCAR (fundef))) | 2057 | if (!CONSP (fundef) || !EQ (Qautoload, XCAR (fundef))) |
| 2058 | return fundef; | 2058 | return fundef; |
| 2059 | 2059 | ||
| 2060 | Lisp_Object kind = Fnth (make_number (4), fundef); | 2060 | Lisp_Object kind = Fnth (make_fixnum (4), fundef); |
| 2061 | if (EQ (macro_only, Qmacro) | 2061 | if (EQ (macro_only, Qmacro) |
| 2062 | && !(EQ (kind, Qt) || EQ (kind, Qmacro))) | 2062 | && !(EQ (kind, Qt) || EQ (kind, Qmacro))) |
| 2063 | return fundef; | 2063 | return fundef; |
| @@ -2879,7 +2879,7 @@ funcall_subr (struct Lisp_Subr *subr, ptrdiff_t numargs, Lisp_Object *args) | |||
| 2879 | { | 2879 | { |
| 2880 | Lisp_Object fun; | 2880 | Lisp_Object fun; |
| 2881 | XSETSUBR (fun, subr); | 2881 | XSETSUBR (fun, subr); |
| 2882 | xsignal2 (Qwrong_number_of_arguments, fun, make_number (numargs)); | 2882 | xsignal2 (Qwrong_number_of_arguments, fun, make_fixnum (numargs)); |
| 2883 | } | 2883 | } |
| 2884 | 2884 | ||
| 2885 | else if (subr->max_args == UNEVALLED) | 2885 | else if (subr->max_args == UNEVALLED) |
| @@ -3022,7 +3022,7 @@ funcall_lambda (Lisp_Object fun, ptrdiff_t nargs, | |||
| 3022 | if (size <= COMPILED_STACK_DEPTH) | 3022 | if (size <= COMPILED_STACK_DEPTH) |
| 3023 | xsignal1 (Qinvalid_function, fun); | 3023 | xsignal1 (Qinvalid_function, fun); |
| 3024 | syms_left = AREF (fun, COMPILED_ARGLIST); | 3024 | syms_left = AREF (fun, COMPILED_ARGLIST); |
| 3025 | if (INTEGERP (syms_left)) | 3025 | if (FIXNUMP (syms_left)) |
| 3026 | /* A byte-code object with an integer args template means we | 3026 | /* A byte-code object with an integer args template means we |
| 3027 | shouldn't bind any arguments, instead just call the byte-code | 3027 | shouldn't bind any arguments, instead just call the byte-code |
| 3028 | interpreter directly; it will push arguments as necessary. | 3028 | interpreter directly; it will push arguments as necessary. |
| @@ -3083,7 +3083,7 @@ funcall_lambda (Lisp_Object fun, ptrdiff_t nargs, | |||
| 3083 | else if (i < nargs) | 3083 | else if (i < nargs) |
| 3084 | arg = arg_vector[i++]; | 3084 | arg = arg_vector[i++]; |
| 3085 | else if (!optional) | 3085 | else if (!optional) |
| 3086 | xsignal2 (Qwrong_number_of_arguments, fun, make_number (nargs)); | 3086 | xsignal2 (Qwrong_number_of_arguments, fun, make_fixnum (nargs)); |
| 3087 | else | 3087 | else |
| 3088 | arg = Qnil; | 3088 | arg = Qnil; |
| 3089 | 3089 | ||
| @@ -3100,7 +3100,7 @@ funcall_lambda (Lisp_Object fun, ptrdiff_t nargs, | |||
| 3100 | if (!NILP (syms_left)) | 3100 | if (!NILP (syms_left)) |
| 3101 | xsignal1 (Qinvalid_function, fun); | 3101 | xsignal1 (Qinvalid_function, fun); |
| 3102 | else if (i < nargs) | 3102 | else if (i < nargs) |
| 3103 | xsignal2 (Qwrong_number_of_arguments, fun, make_number (nargs)); | 3103 | xsignal2 (Qwrong_number_of_arguments, fun, make_fixnum (nargs)); |
| 3104 | 3104 | ||
| 3105 | if (!EQ (lexenv, Vinternal_interpreter_environment)) | 3105 | if (!EQ (lexenv, Vinternal_interpreter_environment)) |
| 3106 | /* Instantiate a new lexical environment. */ | 3106 | /* Instantiate a new lexical environment. */ |
| @@ -3207,7 +3207,7 @@ lambda_arity (Lisp_Object fun) | |||
| 3207 | if (size <= COMPILED_STACK_DEPTH) | 3207 | if (size <= COMPILED_STACK_DEPTH) |
| 3208 | xsignal1 (Qinvalid_function, fun); | 3208 | xsignal1 (Qinvalid_function, fun); |
| 3209 | syms_left = AREF (fun, COMPILED_ARGLIST); | 3209 | syms_left = AREF (fun, COMPILED_ARGLIST); |
| 3210 | if (INTEGERP (syms_left)) | 3210 | if (FIXNUMP (syms_left)) |
| 3211 | return get_byte_code_arity (syms_left); | 3211 | return get_byte_code_arity (syms_left); |
| 3212 | } | 3212 | } |
| 3213 | else | 3213 | else |
| @@ -3222,7 +3222,7 @@ lambda_arity (Lisp_Object fun) | |||
| 3222 | xsignal1 (Qinvalid_function, fun); | 3222 | xsignal1 (Qinvalid_function, fun); |
| 3223 | 3223 | ||
| 3224 | if (EQ (next, Qand_rest)) | 3224 | if (EQ (next, Qand_rest)) |
| 3225 | return Fcons (make_number (minargs), Qmany); | 3225 | return Fcons (make_fixnum (minargs), Qmany); |
| 3226 | else if (EQ (next, Qand_optional)) | 3226 | else if (EQ (next, Qand_optional)) |
| 3227 | optional = true; | 3227 | optional = true; |
| 3228 | else | 3228 | else |
| @@ -3236,7 +3236,7 @@ lambda_arity (Lisp_Object fun) | |||
| 3236 | if (!NILP (syms_left)) | 3236 | if (!NILP (syms_left)) |
| 3237 | xsignal1 (Qinvalid_function, fun); | 3237 | xsignal1 (Qinvalid_function, fun); |
| 3238 | 3238 | ||
| 3239 | return Fcons (make_number (minargs), make_number (maxargs)); | 3239 | return Fcons (make_fixnum (minargs), make_fixnum (maxargs)); |
| 3240 | } | 3240 | } |
| 3241 | 3241 | ||
| 3242 | DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, | 3242 | DEFUN ("fetch-bytecode", Ffetch_bytecode, Sfetch_bytecode, |
| @@ -3663,7 +3663,7 @@ get_backtrace_frame (Lisp_Object nframes, Lisp_Object base) | |||
| 3663 | { | 3663 | { |
| 3664 | register EMACS_INT i; | 3664 | register EMACS_INT i; |
| 3665 | 3665 | ||
| 3666 | CHECK_NATNUM (nframes); | 3666 | CHECK_FIXNAT (nframes); |
| 3667 | union specbinding *pdl = get_backtrace_starting_at (base); | 3667 | union specbinding *pdl = get_backtrace_starting_at (base); |
| 3668 | 3668 | ||
| 3669 | /* Find the frame requested. */ | 3669 | /* Find the frame requested. */ |
| @@ -3697,7 +3697,7 @@ DEFUN ("backtrace-debug", Fbacktrace_debug, Sbacktrace_debug, 2, 2, 0, | |||
| 3697 | The debugger is entered when that frame exits, if the flag is non-nil. */) | 3697 | The debugger is entered when that frame exits, if the flag is non-nil. */) |
| 3698 | (Lisp_Object level, Lisp_Object flag) | 3698 | (Lisp_Object level, Lisp_Object flag) |
| 3699 | { | 3699 | { |
| 3700 | CHECK_NUMBER (level); | 3700 | CHECK_FIXNUM (level); |
| 3701 | union specbinding *pdl = get_backtrace_frame(level, Qnil); | 3701 | union specbinding *pdl = get_backtrace_frame(level, Qnil); |
| 3702 | 3702 | ||
| 3703 | if (backtrace_p (pdl)) | 3703 | if (backtrace_p (pdl)) |
| @@ -3868,7 +3868,7 @@ NFRAMES and BASE specify the activation frame to use, as in `backtrace-frame'. | |||
| 3868 | { | 3868 | { |
| 3869 | union specbinding *frame = get_backtrace_frame (nframes, base); | 3869 | union specbinding *frame = get_backtrace_frame (nframes, base); |
| 3870 | union specbinding *prevframe | 3870 | union specbinding *prevframe |
| 3871 | = get_backtrace_frame (make_number (XFASTINT (nframes) - 1), base); | 3871 | = get_backtrace_frame (make_fixnum (XFASTINT (nframes) - 1), base); |
| 3872 | ptrdiff_t distance = specpdl_ptr - frame; | 3872 | ptrdiff_t distance = specpdl_ptr - frame; |
| 3873 | Lisp_Object result = Qnil; | 3873 | Lisp_Object result = Qnil; |
| 3874 | eassert (distance >= 0); | 3874 | eassert (distance >= 0); |