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/lread.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/lread.c')
| -rw-r--r-- | src/lread.c | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/src/lread.c b/src/lread.c index d4e5be21b4b..49fa51d1a80 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -463,7 +463,7 @@ unreadchar (Lisp_Object readcharfun, int c) | |||
| 463 | unread_char = c; | 463 | unread_char = c; |
| 464 | } | 464 | } |
| 465 | else | 465 | else |
| 466 | call1 (readcharfun, make_number (c)); | 466 | call1 (readcharfun, make_fixnum (c)); |
| 467 | } | 467 | } |
| 468 | 468 | ||
| 469 | static int | 469 | static int |
| @@ -661,7 +661,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 661 | delayed_switch_frame = Qnil; | 661 | delayed_switch_frame = Qnil; |
| 662 | 662 | ||
| 663 | /* Compute timeout. */ | 663 | /* Compute timeout. */ |
| 664 | if (NUMBERP (seconds)) | 664 | if (FIXED_OR_FLOATP (seconds)) |
| 665 | { | 665 | { |
| 666 | double duration = XFLOATINT (seconds); | 666 | double duration = XFLOATINT (seconds); |
| 667 | struct timespec wait_time = dtotimespec (duration); | 667 | struct timespec wait_time = dtotimespec (duration); |
| @@ -672,8 +672,8 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 672 | retry: | 672 | retry: |
| 673 | do | 673 | do |
| 674 | val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0, | 674 | val = read_char (0, Qnil, (input_method ? Qnil : Qt), 0, |
| 675 | NUMBERP (seconds) ? &end_time : NULL); | 675 | FIXED_OR_FLOATP (seconds) ? &end_time : NULL); |
| 676 | while (INTEGERP (val) && XINT (val) == -2); /* wrong_kboard_jmpbuf */ | 676 | while (FIXNUMP (val) && XINT (val) == -2); /* wrong_kboard_jmpbuf */ |
| 677 | 677 | ||
| 678 | if (BUFFERP (val)) | 678 | if (BUFFERP (val)) |
| 679 | goto retry; | 679 | goto retry; |
| @@ -691,7 +691,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 691 | goto retry; | 691 | goto retry; |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | if (ascii_required && !(NUMBERP (seconds) && NILP (val))) | 694 | if (ascii_required && !(FIXED_OR_FLOATP (seconds) && NILP (val))) |
| 695 | { | 695 | { |
| 696 | /* Convert certain symbols to their ASCII equivalents. */ | 696 | /* Convert certain symbols to their ASCII equivalents. */ |
| 697 | if (SYMBOLP (val)) | 697 | if (SYMBOLP (val)) |
| @@ -709,7 +709,7 @@ read_filtered_event (bool no_switch_frame, bool ascii_required, | |||
| 709 | } | 709 | } |
| 710 | 710 | ||
| 711 | /* If we don't have a character now, deal with it appropriately. */ | 711 | /* If we don't have a character now, deal with it appropriately. */ |
| 712 | if (!INTEGERP (val)) | 712 | if (!FIXNUMP (val)) |
| 713 | { | 713 | { |
| 714 | if (error_nonascii) | 714 | if (error_nonascii) |
| 715 | { | 715 | { |
| @@ -766,7 +766,7 @@ floating-point value. */) | |||
| 766 | val = read_filtered_event (1, 1, 1, ! NILP (inherit_input_method), seconds); | 766 | val = read_filtered_event (1, 1, 1, ! NILP (inherit_input_method), seconds); |
| 767 | 767 | ||
| 768 | return (NILP (val) ? Qnil | 768 | return (NILP (val) ? Qnil |
| 769 | : make_number (char_resolve_modifier_mask (XINT (val)))); | 769 | : make_fixnum (char_resolve_modifier_mask (XINT (val)))); |
| 770 | } | 770 | } |
| 771 | 771 | ||
| 772 | DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, | 772 | DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, |
| @@ -810,7 +810,7 @@ floating-point value. */) | |||
| 810 | val = read_filtered_event (1, 1, 0, ! NILP (inherit_input_method), seconds); | 810 | val = read_filtered_event (1, 1, 0, ! NILP (inherit_input_method), seconds); |
| 811 | 811 | ||
| 812 | return (NILP (val) ? Qnil | 812 | return (NILP (val) ? Qnil |
| 813 | : make_number (char_resolve_modifier_mask (XINT (val)))); | 813 | : make_fixnum (char_resolve_modifier_mask (XINT (val)))); |
| 814 | } | 814 | } |
| 815 | 815 | ||
| 816 | DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, | 816 | DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, |
| @@ -819,7 +819,7 @@ DEFUN ("get-file-char", Fget_file_char, Sget_file_char, 0, 0, 0, | |||
| 819 | { | 819 | { |
| 820 | if (!infile) | 820 | if (!infile) |
| 821 | error ("get-file-char misused"); | 821 | error ("get-file-char misused"); |
| 822 | return make_number (readbyte_from_stdio ()); | 822 | return make_fixnum (readbyte_from_stdio ()); |
| 823 | } | 823 | } |
| 824 | 824 | ||
| 825 | 825 | ||
| @@ -1345,7 +1345,7 @@ Return t if the file exists and loads successfully. */) | |||
| 1345 | if (!NILP (nomessage) && !force_load_messages) | 1345 | if (!NILP (nomessage) && !force_load_messages) |
| 1346 | { | 1346 | { |
| 1347 | Lisp_Object msg_file; | 1347 | Lisp_Object msg_file; |
| 1348 | msg_file = Fsubstring (found, make_number (0), make_number (-1)); | 1348 | msg_file = Fsubstring (found, make_fixnum (0), make_fixnum (-1)); |
| 1349 | message_with_string ("Source file `%s' newer than byte-compiled file", | 1349 | message_with_string ("Source file `%s' newer than byte-compiled file", |
| 1350 | msg_file, 1); | 1350 | msg_file, 1); |
| 1351 | } | 1351 | } |
| @@ -1660,7 +1660,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, | |||
| 1660 | string = make_string (fn, fnlen); | 1660 | string = make_string (fn, fnlen); |
| 1661 | handler = Ffind_file_name_handler (string, Qfile_exists_p); | 1661 | handler = Ffind_file_name_handler (string, Qfile_exists_p); |
| 1662 | if ((!NILP (handler) || (!NILP (predicate) && !EQ (predicate, Qt))) | 1662 | if ((!NILP (handler) || (!NILP (predicate) && !EQ (predicate, Qt))) |
| 1663 | && !NATNUMP (predicate)) | 1663 | && !FIXNATP (predicate)) |
| 1664 | { | 1664 | { |
| 1665 | bool exists; | 1665 | bool exists; |
| 1666 | if (NILP (predicate) || EQ (predicate, Qt)) | 1666 | if (NILP (predicate) || EQ (predicate, Qt)) |
| @@ -1699,7 +1699,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, | |||
| 1699 | pfn = SSDATA (encoded_fn); | 1699 | pfn = SSDATA (encoded_fn); |
| 1700 | 1700 | ||
| 1701 | /* Check that we can access or open it. */ | 1701 | /* Check that we can access or open it. */ |
| 1702 | if (NATNUMP (predicate)) | 1702 | if (FIXNATP (predicate)) |
| 1703 | { | 1703 | { |
| 1704 | fd = -1; | 1704 | fd = -1; |
| 1705 | if (INT_MAX < XFASTINT (predicate)) | 1705 | if (INT_MAX < XFASTINT (predicate)) |
| @@ -1737,7 +1737,7 @@ openp (Lisp_Object path, Lisp_Object str, Lisp_Object suffixes, | |||
| 1737 | 1737 | ||
| 1738 | if (fd >= 0) | 1738 | if (fd >= 0) |
| 1739 | { | 1739 | { |
| 1740 | if (newer && !NATNUMP (predicate)) | 1740 | if (newer && !FIXNATP (predicate)) |
| 1741 | { | 1741 | { |
| 1742 | struct timespec mtime = get_stat_mtime (&st); | 1742 | struct timespec mtime = get_stat_mtime (&st); |
| 1743 | 1743 | ||
| @@ -1988,11 +1988,11 @@ readevalloop (Lisp_Object readcharfun, | |||
| 1988 | /* Set point and ZV around stuff to be read. */ | 1988 | /* Set point and ZV around stuff to be read. */ |
| 1989 | Fgoto_char (start); | 1989 | Fgoto_char (start); |
| 1990 | if (!NILP (end)) | 1990 | if (!NILP (end)) |
| 1991 | Fnarrow_to_region (make_number (BEGV), end); | 1991 | Fnarrow_to_region (make_fixnum (BEGV), end); |
| 1992 | 1992 | ||
| 1993 | /* Just for cleanliness, convert END to a marker | 1993 | /* Just for cleanliness, convert END to a marker |
| 1994 | if it is an integer. */ | 1994 | if it is an integer. */ |
| 1995 | if (INTEGERP (end)) | 1995 | if (FIXNUMP (end)) |
| 1996 | end = Fpoint_max_marker (); | 1996 | end = Fpoint_max_marker (); |
| 1997 | } | 1997 | } |
| 1998 | 1998 | ||
| @@ -2222,7 +2222,7 @@ the end of STRING. */) | |||
| 2222 | CHECK_STRING (string); | 2222 | CHECK_STRING (string); |
| 2223 | /* `read_internal_start' sets `read_from_string_index'. */ | 2223 | /* `read_internal_start' sets `read_from_string_index'. */ |
| 2224 | ret = read_internal_start (string, start, end); | 2224 | ret = read_internal_start (string, start, end); |
| 2225 | return Fcons (ret, make_number (read_from_string_index)); | 2225 | return Fcons (ret, make_fixnum (read_from_string_index)); |
| 2226 | } | 2226 | } |
| 2227 | 2227 | ||
| 2228 | /* Function to set up the global context we need in toplevel read | 2228 | /* Function to set up the global context we need in toplevel read |
| @@ -2308,7 +2308,7 @@ read0 (Lisp_Object readcharfun) | |||
| 2308 | return val; | 2308 | return val; |
| 2309 | 2309 | ||
| 2310 | xsignal1 (Qinvalid_read_syntax, | 2310 | xsignal1 (Qinvalid_read_syntax, |
| 2311 | Fmake_string (make_number (1), make_number (c), Qnil)); | 2311 | Fmake_string (make_fixnum (1), make_fixnum (c), Qnil)); |
| 2312 | } | 2312 | } |
| 2313 | 2313 | ||
| 2314 | /* Grow a read buffer BUF that contains OFFSET useful bytes of data, | 2314 | /* Grow a read buffer BUF that contains OFFSET useful bytes of data, |
| @@ -2347,7 +2347,7 @@ character_name_to_code (char const *name, ptrdiff_t name_len) | |||
| 2347 | ? string_to_number (name + 1, 16, 0) | 2347 | ? string_to_number (name + 1, 16, 0) |
| 2348 | : call2 (Qchar_from_name, make_unibyte_string (name, name_len), Qt)); | 2348 | : call2 (Qchar_from_name, make_unibyte_string (name, name_len), Qt)); |
| 2349 | 2349 | ||
| 2350 | if (! RANGED_INTEGERP (0, code, MAX_UNICODE_CHAR) | 2350 | if (! RANGED_FIXNUMP (0, code, MAX_UNICODE_CHAR) |
| 2351 | || char_surrogate_p (XINT (code))) | 2351 | || char_surrogate_p (XINT (code))) |
| 2352 | { | 2352 | { |
| 2353 | AUTO_STRING (format, "\\N{%s}"); | 2353 | AUTO_STRING (format, "\\N{%s}"); |
| @@ -2579,7 +2579,7 @@ read_escape (Lisp_Object readcharfun, bool stringp) | |||
| 2579 | AUTO_STRING (format, | 2579 | AUTO_STRING (format, |
| 2580 | "Invalid character U+%04X in character name"); | 2580 | "Invalid character U+%04X in character name"); |
| 2581 | xsignal1 (Qinvalid_read_syntax, | 2581 | xsignal1 (Qinvalid_read_syntax, |
| 2582 | CALLN (Fformat, format, make_natnum (c))); | 2582 | CALLN (Fformat, format, make_fixed_natnum (c))); |
| 2583 | } | 2583 | } |
| 2584 | /* Treat multiple adjacent whitespace characters as a | 2584 | /* Treat multiple adjacent whitespace characters as a |
| 2585 | single space character. This makes it easier to use | 2585 | single space character. This makes it easier to use |
| @@ -2766,7 +2766,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2766 | { | 2766 | { |
| 2767 | ptrdiff_t size = XINT (Flength (tmp)); | 2767 | ptrdiff_t size = XINT (Flength (tmp)); |
| 2768 | Lisp_Object record = Fmake_record (CAR_SAFE (tmp), | 2768 | Lisp_Object record = Fmake_record (CAR_SAFE (tmp), |
| 2769 | make_number (size - 1), | 2769 | make_fixnum (size - 1), |
| 2770 | Qnil); | 2770 | Qnil); |
| 2771 | for (int i = 1; i < size; i++) | 2771 | for (int i = 1; i < size; i++) |
| 2772 | { | 2772 | { |
| @@ -2858,7 +2858,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2858 | if (size == 0) | 2858 | if (size == 0) |
| 2859 | error ("Zero-sized sub char-table"); | 2859 | error ("Zero-sized sub char-table"); |
| 2860 | 2860 | ||
| 2861 | if (! RANGED_INTEGERP (1, XCAR (tmp), 3)) | 2861 | if (! RANGED_FIXNUMP (1, XCAR (tmp), 3)) |
| 2862 | error ("Invalid depth in sub char-table"); | 2862 | error ("Invalid depth in sub char-table"); |
| 2863 | depth = XINT (XCAR (tmp)); | 2863 | depth = XINT (XCAR (tmp)); |
| 2864 | if (chartab_size[depth] != size - 2) | 2864 | if (chartab_size[depth] != size - 2) |
| @@ -2866,7 +2866,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 2866 | cell = XCONS (tmp), tmp = XCDR (tmp), size--; | 2866 | cell = XCONS (tmp), tmp = XCDR (tmp), size--; |
| 2867 | free_cons (cell); | 2867 | free_cons (cell); |
| 2868 | 2868 | ||
| 2869 | if (! RANGED_INTEGERP (0, XCAR (tmp), MAX_CHAR)) | 2869 | if (! RANGED_FIXNUMP (0, XCAR (tmp), MAX_CHAR)) |
| 2870 | error ("Invalid minimum character in sub-char-table"); | 2870 | error ("Invalid minimum character in sub-char-table"); |
| 2871 | min_char = XINT (XCAR (tmp)); | 2871 | min_char = XINT (XCAR (tmp)); |
| 2872 | cell = XCONS (tmp), tmp = XCDR (tmp), size--; | 2872 | cell = XCONS (tmp), tmp = XCDR (tmp), size--; |
| @@ -3127,7 +3127,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3127 | struct Lisp_Hash_Table *h | 3127 | struct Lisp_Hash_Table *h |
| 3128 | = XHASH_TABLE (read_objects_map); | 3128 | = XHASH_TABLE (read_objects_map); |
| 3129 | EMACS_UINT hash; | 3129 | EMACS_UINT hash; |
| 3130 | Lisp_Object number = make_number (n); | 3130 | Lisp_Object number = make_fixnum (n); |
| 3131 | 3131 | ||
| 3132 | ptrdiff_t i = hash_lookup (h, number, &hash); | 3132 | ptrdiff_t i = hash_lookup (h, number, &hash); |
| 3133 | if (i >= 0) | 3133 | if (i >= 0) |
| @@ -3142,7 +3142,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3142 | /* If it can be recursive, remember it for | 3142 | /* If it can be recursive, remember it for |
| 3143 | future substitutions. */ | 3143 | future substitutions. */ |
| 3144 | if (! SYMBOLP (tem) | 3144 | if (! SYMBOLP (tem) |
| 3145 | && ! NUMBERP (tem) | 3145 | && ! FIXED_OR_FLOATP (tem) |
| 3146 | && ! (STRINGP (tem) && !string_intervals (tem))) | 3146 | && ! (STRINGP (tem) && !string_intervals (tem))) |
| 3147 | { | 3147 | { |
| 3148 | struct Lisp_Hash_Table *h2 | 3148 | struct Lisp_Hash_Table *h2 |
| @@ -3178,7 +3178,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3178 | { | 3178 | { |
| 3179 | struct Lisp_Hash_Table *h | 3179 | struct Lisp_Hash_Table *h |
| 3180 | = XHASH_TABLE (read_objects_map); | 3180 | = XHASH_TABLE (read_objects_map); |
| 3181 | ptrdiff_t i = hash_lookup (h, make_number (n), NULL); | 3181 | ptrdiff_t i = hash_lookup (h, make_fixnum (n), NULL); |
| 3182 | if (i >= 0) | 3182 | if (i >= 0) |
| 3183 | return HASH_VALUE (h, i); | 3183 | return HASH_VALUE (h, i); |
| 3184 | } | 3184 | } |
| @@ -3286,13 +3286,13 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3286 | Other literal whitespace like NL, CR, and FF are not accepted, | 3286 | Other literal whitespace like NL, CR, and FF are not accepted, |
| 3287 | as there are well-established escape sequences for these. */ | 3287 | as there are well-established escape sequences for these. */ |
| 3288 | if (c == ' ' || c == '\t') | 3288 | if (c == ' ' || c == '\t') |
| 3289 | return make_number (c); | 3289 | return make_fixnum (c); |
| 3290 | 3290 | ||
| 3291 | if (c == '(' || c == ')' || c == '[' || c == ']' | 3291 | if (c == '(' || c == ')' || c == '[' || c == ']' |
| 3292 | || c == '"' || c == ';') | 3292 | || c == '"' || c == ';') |
| 3293 | { | 3293 | { |
| 3294 | CHECK_LIST (Vlread_unescaped_character_literals); | 3294 | CHECK_LIST (Vlread_unescaped_character_literals); |
| 3295 | Lisp_Object char_obj = make_natnum (c); | 3295 | Lisp_Object char_obj = make_fixed_natnum (c); |
| 3296 | if (NILP (Fmemq (char_obj, Vlread_unescaped_character_literals))) | 3296 | if (NILP (Fmemq (char_obj, Vlread_unescaped_character_literals))) |
| 3297 | Vlread_unescaped_character_literals = | 3297 | Vlread_unescaped_character_literals = |
| 3298 | Fcons (char_obj, Vlread_unescaped_character_literals); | 3298 | Fcons (char_obj, Vlread_unescaped_character_literals); |
| @@ -3312,7 +3312,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3312 | && strchr ("\"';()[]#?`,.", next_char) != NULL)); | 3312 | && strchr ("\"';()[]#?`,.", next_char) != NULL)); |
| 3313 | UNREAD (next_char); | 3313 | UNREAD (next_char); |
| 3314 | if (ok) | 3314 | if (ok) |
| 3315 | return make_number (c); | 3315 | return make_fixnum (c); |
| 3316 | 3316 | ||
| 3317 | invalid_syntax ("?"); | 3317 | invalid_syntax ("?"); |
| 3318 | } | 3318 | } |
| @@ -3421,7 +3421,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3421 | return zero instead. This is for doc strings | 3421 | return zero instead. This is for doc strings |
| 3422 | that we are really going to find in etc/DOC.nn.nn. */ | 3422 | that we are really going to find in etc/DOC.nn.nn. */ |
| 3423 | if (!NILP (Vpurify_flag) && NILP (Vdoc_file_name) && cancel) | 3423 | if (!NILP (Vpurify_flag) && NILP (Vdoc_file_name) && cancel) |
| 3424 | return unbind_to (count, make_number (0)); | 3424 | return unbind_to (count, make_fixnum (0)); |
| 3425 | 3425 | ||
| 3426 | if (! force_multibyte && force_singlebyte) | 3426 | if (! force_multibyte && force_singlebyte) |
| 3427 | { | 3427 | { |
| @@ -3519,7 +3519,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3519 | int ch = STRING_CHAR ((unsigned char *) read_buffer); | 3519 | int ch = STRING_CHAR ((unsigned char *) read_buffer); |
| 3520 | if (confusable_symbol_character_p (ch)) | 3520 | if (confusable_symbol_character_p (ch)) |
| 3521 | xsignal2 (Qinvalid_read_syntax, build_string ("strange quote"), | 3521 | xsignal2 (Qinvalid_read_syntax, build_string ("strange quote"), |
| 3522 | CALLN (Fstring, make_number (ch))); | 3522 | CALLN (Fstring, make_fixnum (ch))); |
| 3523 | } | 3523 | } |
| 3524 | { | 3524 | { |
| 3525 | Lisp_Object result; | 3525 | Lisp_Object result; |
| @@ -3562,7 +3562,7 @@ read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) | |||
| 3562 | if (EQ (Vread_with_symbol_positions, Qt) | 3562 | if (EQ (Vread_with_symbol_positions, Qt) |
| 3563 | || EQ (Vread_with_symbol_positions, readcharfun)) | 3563 | || EQ (Vread_with_symbol_positions, readcharfun)) |
| 3564 | Vread_symbol_positions_list | 3564 | Vread_symbol_positions_list |
| 3565 | = Fcons (Fcons (result, make_number (start_position)), | 3565 | = Fcons (Fcons (result, make_fixnum (start_position)), |
| 3566 | Vread_symbol_positions_list); | 3566 | Vread_symbol_positions_list); |
| 3567 | return unbind_to (count, result); | 3567 | return unbind_to (count, result); |
| 3568 | } | 3568 | } |
| @@ -3599,7 +3599,7 @@ substitute_object_recurse (struct subst *subst, Lisp_Object subtree) | |||
| 3599 | bother looking them up; we're done. */ | 3599 | bother looking them up; we're done. */ |
| 3600 | if (SYMBOLP (subtree) | 3600 | if (SYMBOLP (subtree) |
| 3601 | || (STRINGP (subtree) && !string_intervals (subtree)) | 3601 | || (STRINGP (subtree) && !string_intervals (subtree)) |
| 3602 | || NUMBERP (subtree)) | 3602 | || FIXED_OR_FLOATP (subtree)) |
| 3603 | return subtree; | 3603 | return subtree; |
| 3604 | 3604 | ||
| 3605 | /* If we've been to this node before, don't explore it again. */ | 3605 | /* If we've been to this node before, don't explore it again. */ |
| @@ -3791,7 +3791,7 @@ string_to_number (char const *string, int base, int flags) | |||
| 3791 | else if (n <= (negative ? -MOST_NEGATIVE_FIXNUM : MOST_POSITIVE_FIXNUM)) | 3791 | else if (n <= (negative ? -MOST_NEGATIVE_FIXNUM : MOST_POSITIVE_FIXNUM)) |
| 3792 | { | 3792 | { |
| 3793 | EMACS_INT signed_n = n; | 3793 | EMACS_INT signed_n = n; |
| 3794 | return make_number (negative ? -signed_n : signed_n); | 3794 | return make_fixnum (negative ? -signed_n : signed_n); |
| 3795 | } | 3795 | } |
| 3796 | else | 3796 | else |
| 3797 | value = n; | 3797 | value = n; |
| @@ -3969,8 +3969,8 @@ read_list (bool flag, Lisp_Object readcharfun) | |||
| 3969 | if (ch == ')') | 3969 | if (ch == ')') |
| 3970 | { | 3970 | { |
| 3971 | if (doc_reference == 1) | 3971 | if (doc_reference == 1) |
| 3972 | return make_number (0); | 3972 | return make_fixnum (0); |
| 3973 | if (doc_reference == 2 && INTEGERP (XCDR (val))) | 3973 | if (doc_reference == 2 && FIXNUMP (XCDR (val))) |
| 3974 | { | 3974 | { |
| 3975 | char *saved = NULL; | 3975 | char *saved = NULL; |
| 3976 | file_offset saved_position; | 3976 | file_offset saved_position; |
| @@ -4148,7 +4148,7 @@ define_symbol (Lisp_Object sym, char const *str) | |||
| 4148 | if (! EQ (sym, Qunbound)) | 4148 | if (! EQ (sym, Qunbound)) |
| 4149 | { | 4149 | { |
| 4150 | Lisp_Object bucket = oblookup (initial_obarray, str, len, len); | 4150 | Lisp_Object bucket = oblookup (initial_obarray, str, len, len); |
| 4151 | eassert (INTEGERP (bucket)); | 4151 | eassert (FIXNUMP (bucket)); |
| 4152 | intern_sym (sym, initial_obarray, bucket); | 4152 | intern_sym (sym, initial_obarray, bucket); |
| 4153 | } | 4153 | } |
| 4154 | } | 4154 | } |
| @@ -4194,7 +4194,7 @@ it defaults to the value of `obarray'. */) | |||
| 4194 | string = SYMBOL_NAME (name); | 4194 | string = SYMBOL_NAME (name); |
| 4195 | 4195 | ||
| 4196 | tem = oblookup (obarray, SSDATA (string), SCHARS (string), SBYTES (string)); | 4196 | tem = oblookup (obarray, SSDATA (string), SCHARS (string), SBYTES (string)); |
| 4197 | if (INTEGERP (tem) || (SYMBOLP (name) && !EQ (name, tem))) | 4197 | if (FIXNUMP (tem) || (SYMBOLP (name) && !EQ (name, tem))) |
| 4198 | return Qnil; | 4198 | return Qnil; |
| 4199 | else | 4199 | else |
| 4200 | return tem; | 4200 | return tem; |
| @@ -4226,7 +4226,7 @@ usage: (unintern NAME OBARRAY) */) | |||
| 4226 | tem = oblookup (obarray, SSDATA (string), | 4226 | tem = oblookup (obarray, SSDATA (string), |
| 4227 | SCHARS (string), | 4227 | SCHARS (string), |
| 4228 | SBYTES (string)); | 4228 | SBYTES (string)); |
| 4229 | if (INTEGERP (tem)) | 4229 | if (FIXNUMP (tem)) |
| 4230 | return Qnil; | 4230 | return Qnil; |
| 4231 | /* If arg was a symbol, don't delete anything but that symbol itself. */ | 4231 | /* If arg was a symbol, don't delete anything but that symbol itself. */ |
| 4232 | if (SYMBOLP (name) && !EQ (name, tem)) | 4232 | if (SYMBOLP (name) && !EQ (name, tem)) |
| @@ -4252,7 +4252,7 @@ usage: (unintern NAME OBARRAY) */) | |||
| 4252 | ASET (obarray, hash, sym); | 4252 | ASET (obarray, hash, sym); |
| 4253 | } | 4253 | } |
| 4254 | else | 4254 | else |
| 4255 | ASET (obarray, hash, make_number (0)); | 4255 | ASET (obarray, hash, make_fixnum (0)); |
| 4256 | } | 4256 | } |
| 4257 | else | 4257 | else |
| 4258 | { | 4258 | { |
| @@ -4295,7 +4295,7 @@ oblookup (Lisp_Object obarray, register const char *ptr, ptrdiff_t size, ptrdiff | |||
| 4295 | hash = hash_string (ptr, size_byte) % obsize; | 4295 | hash = hash_string (ptr, size_byte) % obsize; |
| 4296 | bucket = AREF (obarray, hash); | 4296 | bucket = AREF (obarray, hash); |
| 4297 | oblookup_last_bucket_number = hash; | 4297 | oblookup_last_bucket_number = hash; |
| 4298 | if (EQ (bucket, make_number (0))) | 4298 | if (EQ (bucket, make_fixnum (0))) |
| 4299 | ; | 4299 | ; |
| 4300 | else if (!SYMBOLP (bucket)) | 4300 | else if (!SYMBOLP (bucket)) |
| 4301 | error ("Bad data in guts of obarray"); /* Like CADR error message. */ | 4301 | error ("Bad data in guts of obarray"); /* Like CADR error message. */ |
| @@ -4356,7 +4356,7 @@ OBARRAY defaults to the value of `obarray'. */) | |||
| 4356 | void | 4356 | void |
| 4357 | init_obarray (void) | 4357 | init_obarray (void) |
| 4358 | { | 4358 | { |
| 4359 | Vobarray = Fmake_vector (make_number (OBARRAY_SIZE), make_number (0)); | 4359 | Vobarray = Fmake_vector (make_fixnum (OBARRAY_SIZE), make_fixnum (0)); |
| 4360 | initial_obarray = Vobarray; | 4360 | initial_obarray = Vobarray; |
| 4361 | staticpro (&initial_obarray); | 4361 | staticpro (&initial_obarray); |
| 4362 | 4362 | ||