diff options
| author | Tom Tromey | 2018-08-11 13:34:17 -0600 |
|---|---|---|
| committer | Tom Tromey | 2018-08-11 13:34:17 -0600 |
| commit | 78ec68e18f07a90a9ad400683b973ff51baa80e1 (patch) | |
| tree | 638c986bf753e3ddab9992ba1ef0a10a3d4891f0 /src/coding.c | |
| parent | ba1c4f63e3d2adbe9b590a3c51c2a0808c84723f (diff) | |
| parent | 79f59d41a3d2ef3b4a9a87265bf517206a5837ad (diff) | |
| download | emacs-78ec68e18f07a90a9ad400683b973ff51baa80e1.tar.gz emacs-78ec68e18f07a90a9ad400683b973ff51baa80e1.zip | |
Merge branch 'feature/bignum'
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 418 |
1 files changed, 209 insertions, 209 deletions
diff --git a/src/coding.c b/src/coding.c index 8ce902b06d5..53e98f89811 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -324,7 +324,7 @@ static Lisp_Object Vbig5_coding_system; | |||
| 324 | /* ISO2022 section */ | 324 | /* ISO2022 section */ |
| 325 | 325 | ||
| 326 | #define CODING_ISO_INITIAL(coding, reg) \ | 326 | #define CODING_ISO_INITIAL(coding, reg) \ |
| 327 | (XINT (AREF (AREF (CODING_ID_ATTRS ((coding)->id), \ | 327 | (XFIXNUM (AREF (AREF (CODING_ID_ATTRS ((coding)->id), \ |
| 328 | coding_attr_iso_initial), \ | 328 | coding_attr_iso_initial), \ |
| 329 | reg))) | 329 | reg))) |
| 330 | 330 | ||
| @@ -620,18 +620,18 @@ inhibit_flag (int encoded_flag, bool var) | |||
| 620 | } while (0) | 620 | } while (0) |
| 621 | 621 | ||
| 622 | static void | 622 | static void |
| 623 | CHECK_NATNUM_CAR (Lisp_Object x) | 623 | CHECK_FIXNAT_CAR (Lisp_Object x) |
| 624 | { | 624 | { |
| 625 | Lisp_Object tmp = XCAR (x); | 625 | Lisp_Object tmp = XCAR (x); |
| 626 | CHECK_NATNUM (tmp); | 626 | CHECK_FIXNAT (tmp); |
| 627 | XSETCAR (x, tmp); | 627 | XSETCAR (x, tmp); |
| 628 | } | 628 | } |
| 629 | 629 | ||
| 630 | static void | 630 | static void |
| 631 | CHECK_NATNUM_CDR (Lisp_Object x) | 631 | CHECK_FIXNAT_CDR (Lisp_Object x) |
| 632 | { | 632 | { |
| 633 | Lisp_Object tmp = XCDR (x); | 633 | Lisp_Object tmp = XCDR (x); |
| 634 | CHECK_NATNUM (tmp); | 634 | CHECK_FIXNAT (tmp); |
| 635 | XSETCDR (x, tmp); | 635 | XSETCDR (x, tmp); |
| 636 | } | 636 | } |
| 637 | 637 | ||
| @@ -2622,7 +2622,7 @@ encode_coding_emacs_mule (struct coding_system *coding) | |||
| 2622 | case CODING_ANNOTATE_CHARSET_MASK: | 2622 | case CODING_ANNOTATE_CHARSET_MASK: |
| 2623 | preferred_charset_id = charbuf[3]; | 2623 | preferred_charset_id = charbuf[3]; |
| 2624 | if (preferred_charset_id >= 0 | 2624 | if (preferred_charset_id >= 0 |
| 2625 | && NILP (Fmemq (make_number (preferred_charset_id), | 2625 | && NILP (Fmemq (make_fixnum (preferred_charset_id), |
| 2626 | charset_list))) | 2626 | charset_list))) |
| 2627 | preferred_charset_id = -1; | 2627 | preferred_charset_id = -1; |
| 2628 | break; | 2628 | break; |
| @@ -2888,7 +2888,7 @@ setup_iso_safe_charsets (Lisp_Object attrs) | |||
| 2888 | Lisp_Object reg_usage; | 2888 | Lisp_Object reg_usage; |
| 2889 | Lisp_Object tail; | 2889 | Lisp_Object tail; |
| 2890 | EMACS_INT reg94, reg96; | 2890 | EMACS_INT reg94, reg96; |
| 2891 | int flags = XINT (AREF (attrs, coding_attr_iso_flags)); | 2891 | int flags = XFIXNUM (AREF (attrs, coding_attr_iso_flags)); |
| 2892 | int max_charset_id; | 2892 | int max_charset_id; |
| 2893 | 2893 | ||
| 2894 | charset_list = CODING_ATTR_CHARSET_LIST (attrs); | 2894 | charset_list = CODING_ATTR_CHARSET_LIST (attrs); |
| @@ -2906,7 +2906,7 @@ setup_iso_safe_charsets (Lisp_Object attrs) | |||
| 2906 | max_charset_id = 0; | 2906 | max_charset_id = 0; |
| 2907 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) | 2907 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 2908 | { | 2908 | { |
| 2909 | int id = XINT (XCAR (tail)); | 2909 | int id = XFIXNUM (XCAR (tail)); |
| 2910 | if (max_charset_id < id) | 2910 | if (max_charset_id < id) |
| 2911 | max_charset_id = id; | 2911 | max_charset_id = id; |
| 2912 | } | 2912 | } |
| @@ -2915,8 +2915,8 @@ setup_iso_safe_charsets (Lisp_Object attrs) | |||
| 2915 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); | 2915 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); |
| 2916 | request = AREF (attrs, coding_attr_iso_request); | 2916 | request = AREF (attrs, coding_attr_iso_request); |
| 2917 | reg_usage = AREF (attrs, coding_attr_iso_usage); | 2917 | reg_usage = AREF (attrs, coding_attr_iso_usage); |
| 2918 | reg94 = XINT (XCAR (reg_usage)); | 2918 | reg94 = XFIXNUM (XCAR (reg_usage)); |
| 2919 | reg96 = XINT (XCDR (reg_usage)); | 2919 | reg96 = XFIXNUM (XCDR (reg_usage)); |
| 2920 | 2920 | ||
| 2921 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) | 2921 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 2922 | { | 2922 | { |
| @@ -2925,19 +2925,19 @@ setup_iso_safe_charsets (Lisp_Object attrs) | |||
| 2925 | struct charset *charset; | 2925 | struct charset *charset; |
| 2926 | 2926 | ||
| 2927 | id = XCAR (tail); | 2927 | id = XCAR (tail); |
| 2928 | charset = CHARSET_FROM_ID (XINT (id)); | 2928 | charset = CHARSET_FROM_ID (XFIXNUM (id)); |
| 2929 | reg = Fcdr (Fassq (id, request)); | 2929 | reg = Fcdr (Fassq (id, request)); |
| 2930 | if (! NILP (reg)) | 2930 | if (! NILP (reg)) |
| 2931 | SSET (safe_charsets, XINT (id), XINT (reg)); | 2931 | SSET (safe_charsets, XFIXNUM (id), XFIXNUM (reg)); |
| 2932 | else if (charset->iso_chars_96) | 2932 | else if (charset->iso_chars_96) |
| 2933 | { | 2933 | { |
| 2934 | if (reg96 < 4) | 2934 | if (reg96 < 4) |
| 2935 | SSET (safe_charsets, XINT (id), reg96); | 2935 | SSET (safe_charsets, XFIXNUM (id), reg96); |
| 2936 | } | 2936 | } |
| 2937 | else | 2937 | else |
| 2938 | { | 2938 | { |
| 2939 | if (reg94 < 4) | 2939 | if (reg94 < 4) |
| 2940 | SSET (safe_charsets, XINT (id), reg94); | 2940 | SSET (safe_charsets, XFIXNUM (id), reg94); |
| 2941 | } | 2941 | } |
| 2942 | } | 2942 | } |
| 2943 | ASET (attrs, coding_attr_safe_charsets, safe_charsets); | 2943 | ASET (attrs, coding_attr_safe_charsets, safe_charsets); |
| @@ -4459,7 +4459,7 @@ encode_coding_iso_2022 (struct coding_system *coding) | |||
| 4459 | case CODING_ANNOTATE_CHARSET_MASK: | 4459 | case CODING_ANNOTATE_CHARSET_MASK: |
| 4460 | preferred_charset_id = charbuf[2]; | 4460 | preferred_charset_id = charbuf[2]; |
| 4461 | if (preferred_charset_id >= 0 | 4461 | if (preferred_charset_id >= 0 |
| 4462 | && NILP (Fmemq (make_number (preferred_charset_id), | 4462 | && NILP (Fmemq (make_fixnum (preferred_charset_id), |
| 4463 | charset_list))) | 4463 | charset_list))) |
| 4464 | preferred_charset_id = -1; | 4464 | preferred_charset_id = -1; |
| 4465 | break; | 4465 | break; |
| @@ -4612,7 +4612,7 @@ detect_coding_sjis (struct coding_system *coding, | |||
| 4612 | 4612 | ||
| 4613 | CODING_GET_INFO (coding, attrs, charset_list); | 4613 | CODING_GET_INFO (coding, attrs, charset_list); |
| 4614 | max_first_byte_of_2_byte_code | 4614 | max_first_byte_of_2_byte_code |
| 4615 | = (XINT (Flength (charset_list)) > 3 ? 0xFC : 0xEF); | 4615 | = (XFIXNUM (Flength (charset_list)) > 3 ? 0xFC : 0xEF); |
| 4616 | 4616 | ||
| 4617 | detect_info->checked |= CATEGORY_MASK_SJIS; | 4617 | detect_info->checked |= CATEGORY_MASK_SJIS; |
| 4618 | /* A coding system of this category is always ASCII compatible. */ | 4618 | /* A coding system of this category is always ASCII compatible. */ |
| @@ -4725,10 +4725,10 @@ decode_coding_sjis (struct coding_system *coding) | |||
| 4725 | CODING_GET_INFO (coding, attrs, charset_list); | 4725 | CODING_GET_INFO (coding, attrs, charset_list); |
| 4726 | 4726 | ||
| 4727 | val = charset_list; | 4727 | val = charset_list; |
| 4728 | charset_roman = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4728 | charset_roman = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4729 | charset_kana = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4729 | charset_kana = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4730 | charset_kanji = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4730 | charset_kanji = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4731 | charset_kanji2 = NILP (val) ? NULL : CHARSET_FROM_ID (XINT (XCAR (val))); | 4731 | charset_kanji2 = NILP (val) ? NULL : CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 4732 | 4732 | ||
| 4733 | while (1) | 4733 | while (1) |
| 4734 | { | 4734 | { |
| @@ -4840,8 +4840,8 @@ decode_coding_big5 (struct coding_system *coding) | |||
| 4840 | 4840 | ||
| 4841 | CODING_GET_INFO (coding, attrs, charset_list); | 4841 | CODING_GET_INFO (coding, attrs, charset_list); |
| 4842 | val = charset_list; | 4842 | val = charset_list; |
| 4843 | charset_roman = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4843 | charset_roman = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4844 | charset_big5 = CHARSET_FROM_ID (XINT (XCAR (val))); | 4844 | charset_big5 = CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 4845 | 4845 | ||
| 4846 | while (1) | 4846 | while (1) |
| 4847 | { | 4847 | { |
| @@ -4936,9 +4936,9 @@ encode_coding_sjis (struct coding_system *coding) | |||
| 4936 | 4936 | ||
| 4937 | CODING_GET_INFO (coding, attrs, charset_list); | 4937 | CODING_GET_INFO (coding, attrs, charset_list); |
| 4938 | val = XCDR (charset_list); | 4938 | val = XCDR (charset_list); |
| 4939 | charset_kana = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4939 | charset_kana = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4940 | charset_kanji = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 4940 | charset_kanji = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 4941 | charset_kanji2 = NILP (val) ? NULL : CHARSET_FROM_ID (XINT (XCAR (val))); | 4941 | charset_kanji2 = NILP (val) ? NULL : CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 4942 | 4942 | ||
| 4943 | ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); | 4943 | ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); |
| 4944 | 4944 | ||
| @@ -5029,7 +5029,7 @@ encode_coding_big5 (struct coding_system *coding) | |||
| 5029 | 5029 | ||
| 5030 | CODING_GET_INFO (coding, attrs, charset_list); | 5030 | CODING_GET_INFO (coding, attrs, charset_list); |
| 5031 | val = XCDR (charset_list); | 5031 | val = XCDR (charset_list); |
| 5032 | charset_big5 = CHARSET_FROM_ID (XINT (XCAR (val))); | 5032 | charset_big5 = CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 5033 | ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); | 5033 | ascii_compatible = ! NILP (CODING_ATTR_ASCII_COMPAT (attrs)); |
| 5034 | 5034 | ||
| 5035 | while (charbuf < charbuf_end) | 5035 | while (charbuf < charbuf_end) |
| @@ -5440,9 +5440,9 @@ detect_coding_charset (struct coding_system *coding, | |||
| 5440 | break; | 5440 | break; |
| 5441 | found = CATEGORY_MASK_CHARSET; | 5441 | found = CATEGORY_MASK_CHARSET; |
| 5442 | } | 5442 | } |
| 5443 | if (INTEGERP (val)) | 5443 | if (FIXNUMP (val)) |
| 5444 | { | 5444 | { |
| 5445 | charset = CHARSET_FROM_ID (XFASTINT (val)); | 5445 | charset = CHARSET_FROM_ID (XFIXNAT (val)); |
| 5446 | dim = CHARSET_DIMENSION (charset); | 5446 | dim = CHARSET_DIMENSION (charset); |
| 5447 | for (idx = 1; idx < dim; idx++) | 5447 | for (idx = 1; idx < dim; idx++) |
| 5448 | { | 5448 | { |
| @@ -5461,7 +5461,7 @@ detect_coding_charset (struct coding_system *coding, | |||
| 5461 | idx = 1; | 5461 | idx = 1; |
| 5462 | for (; CONSP (val); val = XCDR (val)) | 5462 | for (; CONSP (val); val = XCDR (val)) |
| 5463 | { | 5463 | { |
| 5464 | charset = CHARSET_FROM_ID (XFASTINT (XCAR (val))); | 5464 | charset = CHARSET_FROM_ID (XFIXNAT (XCAR (val))); |
| 5465 | dim = CHARSET_DIMENSION (charset); | 5465 | dim = CHARSET_DIMENSION (charset); |
| 5466 | while (idx < dim) | 5466 | while (idx < dim) |
| 5467 | { | 5467 | { |
| @@ -5551,11 +5551,11 @@ decode_coding_charset (struct coding_system *coding) | |||
| 5551 | code = c; | 5551 | code = c; |
| 5552 | 5552 | ||
| 5553 | val = AREF (valids, c); | 5553 | val = AREF (valids, c); |
| 5554 | if (! INTEGERP (val) && ! CONSP (val)) | 5554 | if (! FIXNUMP (val) && ! CONSP (val)) |
| 5555 | goto invalid_code; | 5555 | goto invalid_code; |
| 5556 | if (INTEGERP (val)) | 5556 | if (FIXNUMP (val)) |
| 5557 | { | 5557 | { |
| 5558 | charset = CHARSET_FROM_ID (XFASTINT (val)); | 5558 | charset = CHARSET_FROM_ID (XFIXNAT (val)); |
| 5559 | dim = CHARSET_DIMENSION (charset); | 5559 | dim = CHARSET_DIMENSION (charset); |
| 5560 | while (len < dim) | 5560 | while (len < dim) |
| 5561 | { | 5561 | { |
| @@ -5573,7 +5573,7 @@ decode_coding_charset (struct coding_system *coding) | |||
| 5573 | comes first). */ | 5573 | comes first). */ |
| 5574 | while (CONSP (val)) | 5574 | while (CONSP (val)) |
| 5575 | { | 5575 | { |
| 5576 | charset = CHARSET_FROM_ID (XFASTINT (XCAR (val))); | 5576 | charset = CHARSET_FROM_ID (XFIXNAT (XCAR (val))); |
| 5577 | dim = CHARSET_DIMENSION (charset); | 5577 | dim = CHARSET_DIMENSION (charset); |
| 5578 | while (len < dim) | 5578 | while (len < dim) |
| 5579 | { | 5579 | { |
| @@ -5726,7 +5726,7 @@ setup_coding_system (Lisp_Object coding_system, struct coding_system *coding) | |||
| 5726 | val = CODING_ATTR_SAFE_CHARSETS (attrs); | 5726 | val = CODING_ATTR_SAFE_CHARSETS (attrs); |
| 5727 | coding->max_charset_id = SCHARS (val) - 1; | 5727 | coding->max_charset_id = SCHARS (val) - 1; |
| 5728 | coding->safe_charsets = SDATA (val); | 5728 | coding->safe_charsets = SDATA (val); |
| 5729 | coding->default_char = XINT (CODING_ATTR_DEFAULT_CHAR (attrs)); | 5729 | coding->default_char = XFIXNUM (CODING_ATTR_DEFAULT_CHAR (attrs)); |
| 5730 | coding->carryover_bytes = 0; | 5730 | coding->carryover_bytes = 0; |
| 5731 | coding->raw_destination = 0; | 5731 | coding->raw_destination = 0; |
| 5732 | 5732 | ||
| @@ -5749,7 +5749,7 @@ setup_coding_system (Lisp_Object coding_system, struct coding_system *coding) | |||
| 5749 | else if (EQ (coding_type, Qiso_2022)) | 5749 | else if (EQ (coding_type, Qiso_2022)) |
| 5750 | { | 5750 | { |
| 5751 | int i; | 5751 | int i; |
| 5752 | int flags = XINT (AREF (attrs, coding_attr_iso_flags)); | 5752 | int flags = XFIXNUM (AREF (attrs, coding_attr_iso_flags)); |
| 5753 | 5753 | ||
| 5754 | /* Invoke graphic register 0 to plane 0. */ | 5754 | /* Invoke graphic register 0 to plane 0. */ |
| 5755 | CODING_ISO_INVOCATION (coding, 0) = 0; | 5755 | CODING_ISO_INVOCATION (coding, 0) = 0; |
| @@ -5852,13 +5852,13 @@ setup_coding_system (Lisp_Object coding_system, struct coding_system *coding) | |||
| 5852 | 5852 | ||
| 5853 | for (tail = Vemacs_mule_charset_list; CONSP (tail); | 5853 | for (tail = Vemacs_mule_charset_list; CONSP (tail); |
| 5854 | tail = XCDR (tail)) | 5854 | tail = XCDR (tail)) |
| 5855 | if (max_charset_id < XFASTINT (XCAR (tail))) | 5855 | if (max_charset_id < XFIXNAT (XCAR (tail))) |
| 5856 | max_charset_id = XFASTINT (XCAR (tail)); | 5856 | max_charset_id = XFIXNAT (XCAR (tail)); |
| 5857 | safe_charsets = make_uninit_string (max_charset_id + 1); | 5857 | safe_charsets = make_uninit_string (max_charset_id + 1); |
| 5858 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); | 5858 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); |
| 5859 | for (tail = Vemacs_mule_charset_list; CONSP (tail); | 5859 | for (tail = Vemacs_mule_charset_list; CONSP (tail); |
| 5860 | tail = XCDR (tail)) | 5860 | tail = XCDR (tail)) |
| 5861 | SSET (safe_charsets, XFASTINT (XCAR (tail)), 0); | 5861 | SSET (safe_charsets, XFIXNAT (XCAR (tail)), 0); |
| 5862 | coding->max_charset_id = max_charset_id; | 5862 | coding->max_charset_id = max_charset_id; |
| 5863 | coding->safe_charsets = SDATA (safe_charsets); | 5863 | coding->safe_charsets = SDATA (safe_charsets); |
| 5864 | } | 5864 | } |
| @@ -5908,7 +5908,7 @@ coding_charset_list (struct coding_system *coding) | |||
| 5908 | CODING_GET_INFO (coding, attrs, charset_list); | 5908 | CODING_GET_INFO (coding, attrs, charset_list); |
| 5909 | if (EQ (CODING_ATTR_TYPE (attrs), Qiso_2022)) | 5909 | if (EQ (CODING_ATTR_TYPE (attrs), Qiso_2022)) |
| 5910 | { | 5910 | { |
| 5911 | int flags = XINT (AREF (attrs, coding_attr_iso_flags)); | 5911 | int flags = XFIXNUM (AREF (attrs, coding_attr_iso_flags)); |
| 5912 | 5912 | ||
| 5913 | if (flags & CODING_ISO_FLAG_FULL_SUPPORT) | 5913 | if (flags & CODING_ISO_FLAG_FULL_SUPPORT) |
| 5914 | charset_list = Viso_2022_charset_list; | 5914 | charset_list = Viso_2022_charset_list; |
| @@ -5934,7 +5934,7 @@ coding_system_charset_list (Lisp_Object coding_system) | |||
| 5934 | 5934 | ||
| 5935 | if (EQ (CODING_ATTR_TYPE (attrs), Qiso_2022)) | 5935 | if (EQ (CODING_ATTR_TYPE (attrs), Qiso_2022)) |
| 5936 | { | 5936 | { |
| 5937 | int flags = XINT (AREF (attrs, coding_attr_iso_flags)); | 5937 | int flags = XFIXNUM (AREF (attrs, coding_attr_iso_flags)); |
| 5938 | 5938 | ||
| 5939 | if (flags & CODING_ISO_FLAG_FULL_SUPPORT) | 5939 | if (flags & CODING_ISO_FLAG_FULL_SUPPORT) |
| 5940 | charset_list = Viso_2022_charset_list; | 5940 | charset_list = Viso_2022_charset_list; |
| @@ -6714,7 +6714,7 @@ detect_coding (struct coding_system *coding) | |||
| 6714 | } | 6714 | } |
| 6715 | } | 6715 | } |
| 6716 | } | 6716 | } |
| 6717 | else if (XINT (CODING_ATTR_CATEGORY (CODING_ID_ATTRS (coding->id))) | 6717 | else if (XFIXNUM (CODING_ATTR_CATEGORY (CODING_ID_ATTRS (coding->id))) |
| 6718 | == coding_category_utf_8_auto) | 6718 | == coding_category_utf_8_auto) |
| 6719 | { | 6719 | { |
| 6720 | Lisp_Object coding_systems; | 6720 | Lisp_Object coding_systems; |
| @@ -6740,7 +6740,7 @@ detect_coding (struct coding_system *coding) | |||
| 6740 | } | 6740 | } |
| 6741 | } | 6741 | } |
| 6742 | } | 6742 | } |
| 6743 | else if (XINT (CODING_ATTR_CATEGORY (CODING_ID_ATTRS (coding->id))) | 6743 | else if (XFIXNUM (CODING_ATTR_CATEGORY (CODING_ID_ATTRS (coding->id))) |
| 6744 | == coding_category_utf_16_auto) | 6744 | == coding_category_utf_16_auto) |
| 6745 | { | 6745 | { |
| 6746 | Lisp_Object coding_systems; | 6746 | Lisp_Object coding_systems; |
| @@ -6924,8 +6924,8 @@ get_translation_table (Lisp_Object attrs, bool encodep, int *max_lookup) | |||
| 6924 | && CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (translation_table)) > 1) | 6924 | && CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (translation_table)) > 1) |
| 6925 | { | 6925 | { |
| 6926 | val = XCHAR_TABLE (translation_table)->extras[1]; | 6926 | val = XCHAR_TABLE (translation_table)->extras[1]; |
| 6927 | if (NATNUMP (val) && *max_lookup < XFASTINT (val)) | 6927 | if (FIXNATP (val) && *max_lookup < XFIXNAT (val)) |
| 6928 | *max_lookup = min (XFASTINT (val), MAX_LOOKUP_MAX); | 6928 | *max_lookup = min (XFIXNAT (val), MAX_LOOKUP_MAX); |
| 6929 | } | 6929 | } |
| 6930 | else if (CONSP (translation_table)) | 6930 | else if (CONSP (translation_table)) |
| 6931 | { | 6931 | { |
| @@ -6936,8 +6936,8 @@ get_translation_table (Lisp_Object attrs, bool encodep, int *max_lookup) | |||
| 6936 | && CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (XCAR (tail))) > 1) | 6936 | && CHAR_TABLE_EXTRA_SLOTS (XCHAR_TABLE (XCAR (tail))) > 1) |
| 6937 | { | 6937 | { |
| 6938 | Lisp_Object tailval = XCHAR_TABLE (XCAR (tail))->extras[1]; | 6938 | Lisp_Object tailval = XCHAR_TABLE (XCAR (tail))->extras[1]; |
| 6939 | if (NATNUMP (tailval) && *max_lookup < XFASTINT (tailval)) | 6939 | if (FIXNATP (tailval) && *max_lookup < XFIXNAT (tailval)) |
| 6940 | *max_lookup = min (XFASTINT (tailval), MAX_LOOKUP_MAX); | 6940 | *max_lookup = min (XFIXNAT (tailval), MAX_LOOKUP_MAX); |
| 6941 | } | 6941 | } |
| 6942 | } | 6942 | } |
| 6943 | } | 6943 | } |
| @@ -6951,7 +6951,7 @@ get_translation_table (Lisp_Object attrs, bool encodep, int *max_lookup) | |||
| 6951 | { \ | 6951 | { \ |
| 6952 | trans = CHAR_TABLE_REF (table, c); \ | 6952 | trans = CHAR_TABLE_REF (table, c); \ |
| 6953 | if (CHARACTERP (trans)) \ | 6953 | if (CHARACTERP (trans)) \ |
| 6954 | c = XFASTINT (trans), trans = Qnil; \ | 6954 | c = XFIXNAT (trans), trans = Qnil; \ |
| 6955 | } \ | 6955 | } \ |
| 6956 | else if (CONSP (table)) \ | 6956 | else if (CONSP (table)) \ |
| 6957 | { \ | 6957 | { \ |
| @@ -6962,7 +6962,7 @@ get_translation_table (Lisp_Object attrs, bool encodep, int *max_lookup) | |||
| 6962 | { \ | 6962 | { \ |
| 6963 | trans = CHAR_TABLE_REF (XCAR (tail), c); \ | 6963 | trans = CHAR_TABLE_REF (XCAR (tail), c); \ |
| 6964 | if (CHARACTERP (trans)) \ | 6964 | if (CHARACTERP (trans)) \ |
| 6965 | c = XFASTINT (trans), trans = Qnil; \ | 6965 | c = XFIXNAT (trans), trans = Qnil; \ |
| 6966 | else if (! NILP (trans)) \ | 6966 | else if (! NILP (trans)) \ |
| 6967 | break; \ | 6967 | break; \ |
| 6968 | } \ | 6968 | } \ |
| @@ -6981,7 +6981,7 @@ get_translation_table (Lisp_Object attrs, bool encodep, int *max_lookup) | |||
| 6981 | static Lisp_Object | 6981 | static Lisp_Object |
| 6982 | get_translation (Lisp_Object trans, int *buf, int *buf_end, ptrdiff_t *nchars) | 6982 | get_translation (Lisp_Object trans, int *buf, int *buf_end, ptrdiff_t *nchars) |
| 6983 | { | 6983 | { |
| 6984 | if (INTEGERP (trans) || VECTORP (trans)) | 6984 | if (FIXNUMP (trans) || VECTORP (trans)) |
| 6985 | { | 6985 | { |
| 6986 | *nchars = 1; | 6986 | *nchars = 1; |
| 6987 | return trans; | 6987 | return trans; |
| @@ -6997,7 +6997,7 @@ get_translation (Lisp_Object trans, int *buf, int *buf_end, ptrdiff_t *nchars) | |||
| 6997 | { | 6997 | { |
| 6998 | if (buf + i == buf_end) | 6998 | if (buf + i == buf_end) |
| 6999 | return Qt; | 6999 | return Qt; |
| 7000 | if (XINT (AREF (from, i)) != buf[i]) | 7000 | if (XFIXNUM (AREF (from, i)) != buf[i]) |
| 7001 | break; | 7001 | break; |
| 7002 | } | 7002 | } |
| 7003 | if (i == len) | 7003 | if (i == len) |
| @@ -7048,12 +7048,12 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table, | |||
| 7048 | if (! NILP (trans)) | 7048 | if (! NILP (trans)) |
| 7049 | { | 7049 | { |
| 7050 | trans = get_translation (trans, buf, buf_end, &from_nchars); | 7050 | trans = get_translation (trans, buf, buf_end, &from_nchars); |
| 7051 | if (INTEGERP (trans)) | 7051 | if (FIXNUMP (trans)) |
| 7052 | c = XINT (trans); | 7052 | c = XFIXNUM (trans); |
| 7053 | else if (VECTORP (trans)) | 7053 | else if (VECTORP (trans)) |
| 7054 | { | 7054 | { |
| 7055 | to_nchars = ASIZE (trans); | 7055 | to_nchars = ASIZE (trans); |
| 7056 | c = XINT (AREF (trans, 0)); | 7056 | c = XFIXNUM (AREF (trans, 0)); |
| 7057 | } | 7057 | } |
| 7058 | else if (EQ (trans, Qt) && ! last_block) | 7058 | else if (EQ (trans, Qt) && ! last_block) |
| 7059 | break; | 7059 | break; |
| @@ -7081,7 +7081,7 @@ produce_chars (struct coding_system *coding, Lisp_Object translation_table, | |||
| 7081 | for (i = 0; i < to_nchars; i++) | 7081 | for (i = 0; i < to_nchars; i++) |
| 7082 | { | 7082 | { |
| 7083 | if (i > 0) | 7083 | if (i > 0) |
| 7084 | c = XINT (AREF (trans, i)); | 7084 | c = XFIXNUM (AREF (trans, i)); |
| 7085 | if (coding->dst_multibyte | 7085 | if (coding->dst_multibyte |
| 7086 | || ! CHAR_BYTE8_P (c)) | 7086 | || ! CHAR_BYTE8_P (c)) |
| 7087 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); | 7087 | CHAR_STRING_ADVANCE_NO_UNIFY (c, dst); |
| @@ -7239,11 +7239,11 @@ produce_composition (struct coding_system *coding, int *charbuf, ptrdiff_t pos) | |||
| 7239 | for (i = j = 0; i < len && charbuf[i] != -1; i++, j++) | 7239 | for (i = j = 0; i < len && charbuf[i] != -1; i++, j++) |
| 7240 | { | 7240 | { |
| 7241 | if (charbuf[i] >= 0) | 7241 | if (charbuf[i] >= 0) |
| 7242 | args[j] = make_number (charbuf[i]); | 7242 | args[j] = make_fixnum (charbuf[i]); |
| 7243 | else | 7243 | else |
| 7244 | { | 7244 | { |
| 7245 | i++; | 7245 | i++; |
| 7246 | args[j] = make_number (charbuf[i] % 0x100); | 7246 | args[j] = make_fixnum (charbuf[i] % 0x100); |
| 7247 | } | 7247 | } |
| 7248 | } | 7248 | } |
| 7249 | components = (i == j ? Fstring (j, args) : Fvector (j, args)); | 7249 | components = (i == j ? Fstring (j, args) : Fvector (j, args)); |
| @@ -7263,7 +7263,7 @@ produce_charset (struct coding_system *coding, int *charbuf, ptrdiff_t pos) | |||
| 7263 | ptrdiff_t from = pos - charbuf[2]; | 7263 | ptrdiff_t from = pos - charbuf[2]; |
| 7264 | struct charset *charset = CHARSET_FROM_ID (charbuf[3]); | 7264 | struct charset *charset = CHARSET_FROM_ID (charbuf[3]); |
| 7265 | 7265 | ||
| 7266 | Fput_text_property (make_number (from), make_number (pos), | 7266 | Fput_text_property (make_fixnum (from), make_fixnum (pos), |
| 7267 | Qcharset, CHARSET_NAME (charset), | 7267 | Qcharset, CHARSET_NAME (charset), |
| 7268 | coding->dst_object); | 7268 | coding->dst_object); |
| 7269 | } | 7269 | } |
| @@ -7534,7 +7534,7 @@ handle_composition_annotation (ptrdiff_t pos, ptrdiff_t limit, | |||
| 7534 | { | 7534 | { |
| 7535 | len = ASIZE (components); | 7535 | len = ASIZE (components); |
| 7536 | for (i = 0; i < len; i++) | 7536 | for (i = 0; i < len; i++) |
| 7537 | *buf++ = XINT (AREF (components, i)); | 7537 | *buf++ = XFIXNUM (AREF (components, i)); |
| 7538 | } | 7538 | } |
| 7539 | else if (STRINGP (components)) | 7539 | else if (STRINGP (components)) |
| 7540 | { | 7540 | { |
| @@ -7546,16 +7546,16 @@ handle_composition_annotation (ptrdiff_t pos, ptrdiff_t limit, | |||
| 7546 | buf++; | 7546 | buf++; |
| 7547 | } | 7547 | } |
| 7548 | } | 7548 | } |
| 7549 | else if (INTEGERP (components)) | 7549 | else if (FIXNUMP (components)) |
| 7550 | { | 7550 | { |
| 7551 | len = 1; | 7551 | len = 1; |
| 7552 | *buf++ = XINT (components); | 7552 | *buf++ = XFIXNUM (components); |
| 7553 | } | 7553 | } |
| 7554 | else if (CONSP (components)) | 7554 | else if (CONSP (components)) |
| 7555 | { | 7555 | { |
| 7556 | for (len = 0; CONSP (components); | 7556 | for (len = 0; CONSP (components); |
| 7557 | len++, components = XCDR (components)) | 7557 | len++, components = XCDR (components)) |
| 7558 | *buf++ = XINT (XCAR (components)); | 7558 | *buf++ = XFIXNUM (XCAR (components)); |
| 7559 | } | 7559 | } |
| 7560 | else | 7560 | else |
| 7561 | emacs_abort (); | 7561 | emacs_abort (); |
| @@ -7591,16 +7591,16 @@ handle_charset_annotation (ptrdiff_t pos, ptrdiff_t limit, | |||
| 7591 | Lisp_Object val, next; | 7591 | Lisp_Object val, next; |
| 7592 | int id; | 7592 | int id; |
| 7593 | 7593 | ||
| 7594 | val = Fget_text_property (make_number (pos), Qcharset, coding->src_object); | 7594 | val = Fget_text_property (make_fixnum (pos), Qcharset, coding->src_object); |
| 7595 | if (! NILP (val) && CHARSETP (val)) | 7595 | if (! NILP (val) && CHARSETP (val)) |
| 7596 | id = XINT (CHARSET_SYMBOL_ID (val)); | 7596 | id = XFIXNUM (CHARSET_SYMBOL_ID (val)); |
| 7597 | else | 7597 | else |
| 7598 | id = -1; | 7598 | id = -1; |
| 7599 | ADD_CHARSET_DATA (buf, 0, id); | 7599 | ADD_CHARSET_DATA (buf, 0, id); |
| 7600 | next = Fnext_single_property_change (make_number (pos), Qcharset, | 7600 | next = Fnext_single_property_change (make_fixnum (pos), Qcharset, |
| 7601 | coding->src_object, | 7601 | coding->src_object, |
| 7602 | make_number (limit)); | 7602 | make_fixnum (limit)); |
| 7603 | *stop = XINT (next); | 7603 | *stop = XFIXNUM (next); |
| 7604 | return buf; | 7604 | return buf; |
| 7605 | } | 7605 | } |
| 7606 | 7606 | ||
| @@ -7709,20 +7709,20 @@ consume_chars (struct coding_system *coding, Lisp_Object translation_table, | |||
| 7709 | lookup_buf_end = lookup_buf + i; | 7709 | lookup_buf_end = lookup_buf + i; |
| 7710 | trans = get_translation (trans, lookup_buf, lookup_buf_end, | 7710 | trans = get_translation (trans, lookup_buf, lookup_buf_end, |
| 7711 | &from_nchars); | 7711 | &from_nchars); |
| 7712 | if (INTEGERP (trans)) | 7712 | if (FIXNUMP (trans)) |
| 7713 | c = XINT (trans); | 7713 | c = XFIXNUM (trans); |
| 7714 | else if (VECTORP (trans)) | 7714 | else if (VECTORP (trans)) |
| 7715 | { | 7715 | { |
| 7716 | to_nchars = ASIZE (trans); | 7716 | to_nchars = ASIZE (trans); |
| 7717 | if (buf_end - buf < to_nchars) | 7717 | if (buf_end - buf < to_nchars) |
| 7718 | break; | 7718 | break; |
| 7719 | c = XINT (AREF (trans, 0)); | 7719 | c = XFIXNUM (AREF (trans, 0)); |
| 7720 | } | 7720 | } |
| 7721 | else | 7721 | else |
| 7722 | break; | 7722 | break; |
| 7723 | *buf++ = c; | 7723 | *buf++ = c; |
| 7724 | for (i = 1; i < to_nchars; i++) | 7724 | for (i = 1; i < to_nchars; i++) |
| 7725 | *buf++ = XINT (AREF (trans, i)); | 7725 | *buf++ = XFIXNUM (AREF (trans, i)); |
| 7726 | for (i = 1; i < from_nchars; i++, pos++) | 7726 | for (i = 1; i < from_nchars; i++, pos++) |
| 7727 | src += MULTIBYTE_LENGTH_NO_CHECK (src); | 7727 | src += MULTIBYTE_LENGTH_NO_CHECK (src); |
| 7728 | } | 7728 | } |
| @@ -8011,8 +8011,8 @@ decode_coding_gap (struct coding_system *coding, | |||
| 8011 | bset_undo_list (current_buffer, Qt); | 8011 | bset_undo_list (current_buffer, Qt); |
| 8012 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); | 8012 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); |
| 8013 | val = call1 (CODING_ATTR_POST_READ (attrs), | 8013 | val = call1 (CODING_ATTR_POST_READ (attrs), |
| 8014 | make_number (coding->produced_char)); | 8014 | make_fixnum (coding->produced_char)); |
| 8015 | CHECK_NATNUM (val); | 8015 | CHECK_FIXNAT (val); |
| 8016 | coding->produced_char += Z - prev_Z; | 8016 | coding->produced_char += Z - prev_Z; |
| 8017 | coding->produced += Z_BYTE - prev_Z_BYTE; | 8017 | coding->produced += Z_BYTE - prev_Z_BYTE; |
| 8018 | } | 8018 | } |
| @@ -8163,8 +8163,8 @@ decode_coding_object (struct coding_system *coding, | |||
| 8163 | bset_undo_list (current_buffer, Qt); | 8163 | bset_undo_list (current_buffer, Qt); |
| 8164 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); | 8164 | TEMP_SET_PT_BOTH (coding->dst_pos, coding->dst_pos_byte); |
| 8165 | val = safe_call1 (CODING_ATTR_POST_READ (attrs), | 8165 | val = safe_call1 (CODING_ATTR_POST_READ (attrs), |
| 8166 | make_number (coding->produced_char)); | 8166 | make_fixnum (coding->produced_char)); |
| 8167 | CHECK_NATNUM (val); | 8167 | CHECK_FIXNAT (val); |
| 8168 | coding->produced_char += Z - prev_Z; | 8168 | coding->produced_char += Z - prev_Z; |
| 8169 | coding->produced += Z_BYTE - prev_Z_BYTE; | 8169 | coding->produced += Z_BYTE - prev_Z_BYTE; |
| 8170 | unbind_to (count1, Qnil); | 8170 | unbind_to (count1, Qnil); |
| @@ -8293,7 +8293,7 @@ encode_coding_object (struct coding_system *coding, | |||
| 8293 | } | 8293 | } |
| 8294 | 8294 | ||
| 8295 | safe_call2 (CODING_ATTR_PRE_WRITE (attrs), | 8295 | safe_call2 (CODING_ATTR_PRE_WRITE (attrs), |
| 8296 | make_number (BEG), make_number (Z)); | 8296 | make_fixnum (BEG), make_fixnum (Z)); |
| 8297 | if (XBUFFER (coding->src_object) != current_buffer) | 8297 | if (XBUFFER (coding->src_object) != current_buffer) |
| 8298 | kill_src_buffer = 1; | 8298 | kill_src_buffer = 1; |
| 8299 | coding->src_object = Fcurrent_buffer (); | 8299 | coding->src_object = Fcurrent_buffer (); |
| @@ -8459,7 +8459,7 @@ from_unicode (Lisp_Object str) | |||
| 8459 | if (!STRING_MULTIBYTE (str) && | 8459 | if (!STRING_MULTIBYTE (str) && |
| 8460 | SBYTES (str) & 1) | 8460 | SBYTES (str) & 1) |
| 8461 | { | 8461 | { |
| 8462 | str = Fsubstring (str, make_number (0), make_number (-1)); | 8462 | str = Fsubstring (str, make_fixnum (0), make_fixnum (-1)); |
| 8463 | } | 8463 | } |
| 8464 | 8464 | ||
| 8465 | return code_convert_string_norecord (str, Qutf_16le, 0); | 8465 | return code_convert_string_norecord (str, Qutf_16le, 0); |
| @@ -8618,7 +8618,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8618 | detect_info.checked = detect_info.found = detect_info.rejected = 0; | 8618 | detect_info.checked = detect_info.found = detect_info.rejected = 0; |
| 8619 | 8619 | ||
| 8620 | /* At first, detect text-format if necessary. */ | 8620 | /* At first, detect text-format if necessary. */ |
| 8621 | base_category = XINT (CODING_ATTR_CATEGORY (attrs)); | 8621 | base_category = XFIXNUM (CODING_ATTR_CATEGORY (attrs)); |
| 8622 | if (base_category == coding_category_undecided) | 8622 | if (base_category == coding_category_undecided) |
| 8623 | { | 8623 | { |
| 8624 | enum coding_category category UNINIT; | 8624 | enum coding_category category UNINIT; |
| @@ -8741,20 +8741,20 @@ detect_coding_system (const unsigned char *src, | |||
| 8741 | { | 8741 | { |
| 8742 | detect_info.found = CATEGORY_MASK_RAW_TEXT; | 8742 | detect_info.found = CATEGORY_MASK_RAW_TEXT; |
| 8743 | id = CODING_SYSTEM_ID (Qno_conversion); | 8743 | id = CODING_SYSTEM_ID (Qno_conversion); |
| 8744 | val = list1 (make_number (id)); | 8744 | val = list1 (make_fixnum (id)); |
| 8745 | } | 8745 | } |
| 8746 | else if (! detect_info.rejected && ! detect_info.found) | 8746 | else if (! detect_info.rejected && ! detect_info.found) |
| 8747 | { | 8747 | { |
| 8748 | detect_info.found = CATEGORY_MASK_ANY; | 8748 | detect_info.found = CATEGORY_MASK_ANY; |
| 8749 | id = coding_categories[coding_category_undecided].id; | 8749 | id = coding_categories[coding_category_undecided].id; |
| 8750 | val = list1 (make_number (id)); | 8750 | val = list1 (make_fixnum (id)); |
| 8751 | } | 8751 | } |
| 8752 | else if (highest) | 8752 | else if (highest) |
| 8753 | { | 8753 | { |
| 8754 | if (detect_info.found) | 8754 | if (detect_info.found) |
| 8755 | { | 8755 | { |
| 8756 | detect_info.found = 1 << category; | 8756 | detect_info.found = 1 << category; |
| 8757 | val = list1 (make_number (this->id)); | 8757 | val = list1 (make_fixnum (this->id)); |
| 8758 | } | 8758 | } |
| 8759 | else | 8759 | else |
| 8760 | for (i = 0; i < coding_category_raw_text; i++) | 8760 | for (i = 0; i < coding_category_raw_text; i++) |
| @@ -8762,7 +8762,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8762 | { | 8762 | { |
| 8763 | detect_info.found = 1 << coding_priorities[i]; | 8763 | detect_info.found = 1 << coding_priorities[i]; |
| 8764 | id = coding_categories[coding_priorities[i]].id; | 8764 | id = coding_categories[coding_priorities[i]].id; |
| 8765 | val = list1 (make_number (id)); | 8765 | val = list1 (make_fixnum (id)); |
| 8766 | break; | 8766 | break; |
| 8767 | } | 8767 | } |
| 8768 | } | 8768 | } |
| @@ -8779,7 +8779,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8779 | found |= 1 << category; | 8779 | found |= 1 << category; |
| 8780 | id = coding_categories[category].id; | 8780 | id = coding_categories[category].id; |
| 8781 | if (id >= 0) | 8781 | if (id >= 0) |
| 8782 | val = list1 (make_number (id)); | 8782 | val = list1 (make_fixnum (id)); |
| 8783 | } | 8783 | } |
| 8784 | } | 8784 | } |
| 8785 | for (i = coding_category_raw_text - 1; i >= 0; i--) | 8785 | for (i = coding_category_raw_text - 1; i >= 0; i--) |
| @@ -8788,7 +8788,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8788 | if (detect_info.found & (1 << category)) | 8788 | if (detect_info.found & (1 << category)) |
| 8789 | { | 8789 | { |
| 8790 | id = coding_categories[category].id; | 8790 | id = coding_categories[category].id; |
| 8791 | val = Fcons (make_number (id), val); | 8791 | val = Fcons (make_fixnum (id), val); |
| 8792 | } | 8792 | } |
| 8793 | } | 8793 | } |
| 8794 | detect_info.found |= found; | 8794 | detect_info.found |= found; |
| @@ -8804,7 +8804,7 @@ detect_coding_system (const unsigned char *src, | |||
| 8804 | this = coding_categories + coding_category_utf_8_sig; | 8804 | this = coding_categories + coding_category_utf_8_sig; |
| 8805 | else | 8805 | else |
| 8806 | this = coding_categories + coding_category_utf_8_nosig; | 8806 | this = coding_categories + coding_category_utf_8_nosig; |
| 8807 | val = list1 (make_number (this->id)); | 8807 | val = list1 (make_fixnum (this->id)); |
| 8808 | } | 8808 | } |
| 8809 | } | 8809 | } |
| 8810 | else if (base_category == coding_category_utf_16_auto) | 8810 | else if (base_category == coding_category_utf_16_auto) |
| @@ -8821,13 +8821,13 @@ detect_coding_system (const unsigned char *src, | |||
| 8821 | this = coding_categories + coding_category_utf_16_be_nosig; | 8821 | this = coding_categories + coding_category_utf_16_be_nosig; |
| 8822 | else | 8822 | else |
| 8823 | this = coding_categories + coding_category_utf_16_le_nosig; | 8823 | this = coding_categories + coding_category_utf_16_le_nosig; |
| 8824 | val = list1 (make_number (this->id)); | 8824 | val = list1 (make_fixnum (this->id)); |
| 8825 | } | 8825 | } |
| 8826 | } | 8826 | } |
| 8827 | else | 8827 | else |
| 8828 | { | 8828 | { |
| 8829 | detect_info.found = 1 << XINT (CODING_ATTR_CATEGORY (attrs)); | 8829 | detect_info.found = 1 << XFIXNUM (CODING_ATTR_CATEGORY (attrs)); |
| 8830 | val = list1 (make_number (coding.id)); | 8830 | val = list1 (make_fixnum (coding.id)); |
| 8831 | } | 8831 | } |
| 8832 | 8832 | ||
| 8833 | /* Then, detect eol-format if necessary. */ | 8833 | /* Then, detect eol-format if necessary. */ |
| @@ -8869,9 +8869,9 @@ detect_coding_system (const unsigned char *src, | |||
| 8869 | enum coding_category category; | 8869 | enum coding_category category; |
| 8870 | int this_eol; | 8870 | int this_eol; |
| 8871 | 8871 | ||
| 8872 | id = XINT (XCAR (tail)); | 8872 | id = XFIXNUM (XCAR (tail)); |
| 8873 | attrs = CODING_ID_ATTRS (id); | 8873 | attrs = CODING_ID_ATTRS (id); |
| 8874 | category = XINT (CODING_ATTR_CATEGORY (attrs)); | 8874 | category = XFIXNUM (CODING_ATTR_CATEGORY (attrs)); |
| 8875 | eol_type = CODING_ID_EOL_TYPE (id); | 8875 | eol_type = CODING_ID_EOL_TYPE (id); |
| 8876 | if (VECTORP (eol_type)) | 8876 | if (VECTORP (eol_type)) |
| 8877 | { | 8877 | { |
| @@ -8922,7 +8922,7 @@ highest priority. */) | |||
| 8922 | ptrdiff_t from_byte, to_byte; | 8922 | ptrdiff_t from_byte, to_byte; |
| 8923 | 8923 | ||
| 8924 | validate_region (&start, &end); | 8924 | validate_region (&start, &end); |
| 8925 | from = XINT (start), to = XINT (end); | 8925 | from = XFIXNUM (start), to = XFIXNUM (end); |
| 8926 | from_byte = CHAR_TO_BYTE (from); | 8926 | from_byte = CHAR_TO_BYTE (from); |
| 8927 | to_byte = CHAR_TO_BYTE (to); | 8927 | to_byte = CHAR_TO_BYTE (to); |
| 8928 | 8928 | ||
| @@ -8975,7 +8975,7 @@ char_encodable_p (int c, Lisp_Object attrs) | |||
| 8975 | for (tail = CODING_ATTR_CHARSET_LIST (attrs); | 8975 | for (tail = CODING_ATTR_CHARSET_LIST (attrs); |
| 8976 | CONSP (tail); tail = XCDR (tail)) | 8976 | CONSP (tail); tail = XCDR (tail)) |
| 8977 | { | 8977 | { |
| 8978 | charset = CHARSET_FROM_ID (XINT (XCAR (tail))); | 8978 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (tail))); |
| 8979 | if (CHAR_CHARSET_P (c, charset)) | 8979 | if (CHAR_CHARSET_P (c, charset)) |
| 8980 | break; | 8980 | break; |
| 8981 | } | 8981 | } |
| @@ -9011,23 +9011,23 @@ DEFUN ("find-coding-systems-region-internal", | |||
| 9011 | } | 9011 | } |
| 9012 | else | 9012 | else |
| 9013 | { | 9013 | { |
| 9014 | CHECK_NUMBER_COERCE_MARKER (start); | 9014 | CHECK_FIXNUM_COERCE_MARKER (start); |
| 9015 | CHECK_NUMBER_COERCE_MARKER (end); | 9015 | CHECK_FIXNUM_COERCE_MARKER (end); |
| 9016 | if (XINT (start) < BEG || XINT (end) > Z || XINT (start) > XINT (end)) | 9016 | if (XFIXNUM (start) < BEG || XFIXNUM (end) > Z || XFIXNUM (start) > XFIXNUM (end)) |
| 9017 | args_out_of_range (start, end); | 9017 | args_out_of_range (start, end); |
| 9018 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) | 9018 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) |
| 9019 | return Qt; | 9019 | return Qt; |
| 9020 | start_byte = CHAR_TO_BYTE (XINT (start)); | 9020 | start_byte = CHAR_TO_BYTE (XFIXNUM (start)); |
| 9021 | end_byte = CHAR_TO_BYTE (XINT (end)); | 9021 | end_byte = CHAR_TO_BYTE (XFIXNUM (end)); |
| 9022 | if (XINT (end) - XINT (start) == end_byte - start_byte) | 9022 | if (XFIXNUM (end) - XFIXNUM (start) == end_byte - start_byte) |
| 9023 | return Qt; | 9023 | return Qt; |
| 9024 | 9024 | ||
| 9025 | if (XINT (start) < GPT && XINT (end) > GPT) | 9025 | if (XFIXNUM (start) < GPT && XFIXNUM (end) > GPT) |
| 9026 | { | 9026 | { |
| 9027 | if ((GPT - XINT (start)) < (XINT (end) - GPT)) | 9027 | if ((GPT - XFIXNUM (start)) < (XFIXNUM (end) - GPT)) |
| 9028 | move_gap_both (XINT (start), start_byte); | 9028 | move_gap_both (XFIXNUM (start), start_byte); |
| 9029 | else | 9029 | else |
| 9030 | move_gap_both (XINT (end), end_byte); | 9030 | move_gap_both (XFIXNUM (end), end_byte); |
| 9031 | } | 9031 | } |
| 9032 | } | 9032 | } |
| 9033 | 9033 | ||
| @@ -9146,8 +9146,8 @@ to the string and treated as in `substring'. */) | |||
| 9146 | if (NILP (string)) | 9146 | if (NILP (string)) |
| 9147 | { | 9147 | { |
| 9148 | validate_region (&start, &end); | 9148 | validate_region (&start, &end); |
| 9149 | from = XINT (start); | 9149 | from = XFIXNUM (start); |
| 9150 | to = XINT (end); | 9150 | to = XFIXNUM (end); |
| 9151 | if (NILP (BVAR (current_buffer, enable_multibyte_characters)) | 9151 | if (NILP (BVAR (current_buffer, enable_multibyte_characters)) |
| 9152 | || (ascii_compatible | 9152 | || (ascii_compatible |
| 9153 | && (to - from) == (CHAR_TO_BYTE (to) - (CHAR_TO_BYTE (from))))) | 9153 | && (to - from) == (CHAR_TO_BYTE (to) - (CHAR_TO_BYTE (from))))) |
| @@ -9175,8 +9175,8 @@ to the string and treated as in `substring'. */) | |||
| 9175 | n = 1; | 9175 | n = 1; |
| 9176 | else | 9176 | else |
| 9177 | { | 9177 | { |
| 9178 | CHECK_NATNUM (count); | 9178 | CHECK_FIXNAT (count); |
| 9179 | n = XINT (count); | 9179 | n = XFIXNUM (count); |
| 9180 | } | 9180 | } |
| 9181 | 9181 | ||
| 9182 | positions = Qnil; | 9182 | positions = Qnil; |
| @@ -9201,7 +9201,7 @@ to the string and treated as in `substring'. */) | |||
| 9201 | && ! char_charset (translate_char (translation_table, c), | 9201 | && ! char_charset (translate_char (translation_table, c), |
| 9202 | charset_list, NULL)) | 9202 | charset_list, NULL)) |
| 9203 | { | 9203 | { |
| 9204 | positions = Fcons (make_number (from), positions); | 9204 | positions = Fcons (make_fixnum (from), positions); |
| 9205 | n--; | 9205 | n--; |
| 9206 | if (n == 0) | 9206 | if (n == 0) |
| 9207 | break; | 9207 | break; |
| @@ -9265,25 +9265,25 @@ is nil. */) | |||
| 9265 | } | 9265 | } |
| 9266 | else | 9266 | else |
| 9267 | { | 9267 | { |
| 9268 | CHECK_NUMBER_COERCE_MARKER (start); | 9268 | CHECK_FIXNUM_COERCE_MARKER (start); |
| 9269 | CHECK_NUMBER_COERCE_MARKER (end); | 9269 | CHECK_FIXNUM_COERCE_MARKER (end); |
| 9270 | if (XINT (start) < BEG || XINT (end) > Z || XINT (start) > XINT (end)) | 9270 | if (XFIXNUM (start) < BEG || XFIXNUM (end) > Z || XFIXNUM (start) > XFIXNUM (end)) |
| 9271 | args_out_of_range (start, end); | 9271 | args_out_of_range (start, end); |
| 9272 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) | 9272 | if (NILP (BVAR (current_buffer, enable_multibyte_characters))) |
| 9273 | return Qnil; | 9273 | return Qnil; |
| 9274 | start_byte = CHAR_TO_BYTE (XINT (start)); | 9274 | start_byte = CHAR_TO_BYTE (XFIXNUM (start)); |
| 9275 | end_byte = CHAR_TO_BYTE (XINT (end)); | 9275 | end_byte = CHAR_TO_BYTE (XFIXNUM (end)); |
| 9276 | if (XINT (end) - XINT (start) == end_byte - start_byte) | 9276 | if (XFIXNUM (end) - XFIXNUM (start) == end_byte - start_byte) |
| 9277 | return Qnil; | 9277 | return Qnil; |
| 9278 | 9278 | ||
| 9279 | if (XINT (start) < GPT && XINT (end) > GPT) | 9279 | if (XFIXNUM (start) < GPT && XFIXNUM (end) > GPT) |
| 9280 | { | 9280 | { |
| 9281 | if ((GPT - XINT (start)) < (XINT (end) - GPT)) | 9281 | if ((GPT - XFIXNUM (start)) < (XFIXNUM (end) - GPT)) |
| 9282 | move_gap_both (XINT (start), start_byte); | 9282 | move_gap_both (XFIXNUM (start), start_byte); |
| 9283 | else | 9283 | else |
| 9284 | move_gap_both (XINT (end), end_byte); | 9284 | move_gap_both (XFIXNUM (end), end_byte); |
| 9285 | } | 9285 | } |
| 9286 | pos = XINT (start); | 9286 | pos = XFIXNUM (start); |
| 9287 | } | 9287 | } |
| 9288 | 9288 | ||
| 9289 | list = Qnil; | 9289 | list = Qnil; |
| @@ -9318,7 +9318,7 @@ is nil. */) | |||
| 9318 | { | 9318 | { |
| 9319 | elt = XCDR (XCAR (tail)); | 9319 | elt = XCDR (XCAR (tail)); |
| 9320 | if (! char_encodable_p (c, XCAR (elt))) | 9320 | if (! char_encodable_p (c, XCAR (elt))) |
| 9321 | XSETCDR (elt, Fcons (make_number (pos), XCDR (elt))); | 9321 | XSETCDR (elt, Fcons (make_fixnum (pos), XCDR (elt))); |
| 9322 | } | 9322 | } |
| 9323 | if (charset_map_loaded) | 9323 | if (charset_map_loaded) |
| 9324 | { | 9324 | { |
| @@ -9369,9 +9369,9 @@ code_convert_region (Lisp_Object start, Lisp_Object end, | |||
| 9369 | CHECK_BUFFER (dst_object); | 9369 | CHECK_BUFFER (dst_object); |
| 9370 | 9370 | ||
| 9371 | validate_region (&start, &end); | 9371 | validate_region (&start, &end); |
| 9372 | from = XFASTINT (start); | 9372 | from = XFIXNAT (start); |
| 9373 | from_byte = CHAR_TO_BYTE (from); | 9373 | from_byte = CHAR_TO_BYTE (from); |
| 9374 | to = XFASTINT (end); | 9374 | to = XFIXNAT (end); |
| 9375 | to_byte = CHAR_TO_BYTE (to); | 9375 | to_byte = CHAR_TO_BYTE (to); |
| 9376 | 9376 | ||
| 9377 | setup_coding_system (coding_system, &coding); | 9377 | setup_coding_system (coding_system, &coding); |
| @@ -9395,7 +9395,7 @@ code_convert_region (Lisp_Object start, Lisp_Object end, | |||
| 9395 | Vlast_coding_system_used = CODING_ID_NAME (coding.id); | 9395 | Vlast_coding_system_used = CODING_ID_NAME (coding.id); |
| 9396 | 9396 | ||
| 9397 | return (BUFFERP (dst_object) | 9397 | return (BUFFERP (dst_object) |
| 9398 | ? make_number (coding.produced_char) | 9398 | ? make_fixnum (coding.produced_char) |
| 9399 | : coding.dst_object); | 9399 | : coding.dst_object); |
| 9400 | } | 9400 | } |
| 9401 | 9401 | ||
| @@ -9491,7 +9491,7 @@ code_convert_string (Lisp_Object string, Lisp_Object coding_system, | |||
| 9491 | Vlast_coding_system_used = CODING_ID_NAME (coding.id); | 9491 | Vlast_coding_system_used = CODING_ID_NAME (coding.id); |
| 9492 | 9492 | ||
| 9493 | return (BUFFERP (dst_object) | 9493 | return (BUFFERP (dst_object) |
| 9494 | ? make_number (coding.produced_char) | 9494 | ? make_fixnum (coding.produced_char) |
| 9495 | : coding.dst_object); | 9495 | : coding.dst_object); |
| 9496 | } | 9496 | } |
| 9497 | 9497 | ||
| @@ -9610,8 +9610,8 @@ Return the corresponding character. */) | |||
| 9610 | EMACS_INT ch; | 9610 | EMACS_INT ch; |
| 9611 | int c; | 9611 | int c; |
| 9612 | 9612 | ||
| 9613 | CHECK_NATNUM (code); | 9613 | CHECK_FIXNAT (code); |
| 9614 | ch = XFASTINT (code); | 9614 | ch = XFIXNAT (code); |
| 9615 | CHECK_CODING_SYSTEM_GET_SPEC (Vsjis_coding_system, spec); | 9615 | CHECK_CODING_SYSTEM_GET_SPEC (Vsjis_coding_system, spec); |
| 9616 | attrs = AREF (spec, 0); | 9616 | attrs = AREF (spec, 0); |
| 9617 | 9617 | ||
| @@ -9620,9 +9620,9 @@ Return the corresponding character. */) | |||
| 9620 | return code; | 9620 | return code; |
| 9621 | 9621 | ||
| 9622 | val = CODING_ATTR_CHARSET_LIST (attrs); | 9622 | val = CODING_ATTR_CHARSET_LIST (attrs); |
| 9623 | charset_roman = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 9623 | charset_roman = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 9624 | charset_kana = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 9624 | charset_kana = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 9625 | charset_kanji = CHARSET_FROM_ID (XINT (XCAR (val))); | 9625 | charset_kanji = CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 9626 | 9626 | ||
| 9627 | if (ch <= 0x7F) | 9627 | if (ch <= 0x7F) |
| 9628 | { | 9628 | { |
| @@ -9649,7 +9649,7 @@ Return the corresponding character. */) | |||
| 9649 | c = DECODE_CHAR (charset, c); | 9649 | c = DECODE_CHAR (charset, c); |
| 9650 | if (c < 0) | 9650 | if (c < 0) |
| 9651 | error ("Invalid code: %"pI"d", ch); | 9651 | error ("Invalid code: %"pI"d", ch); |
| 9652 | return make_number (c); | 9652 | return make_fixnum (c); |
| 9653 | } | 9653 | } |
| 9654 | 9654 | ||
| 9655 | 9655 | ||
| @@ -9664,7 +9664,7 @@ Return the corresponding code in SJIS. */) | |||
| 9664 | unsigned code; | 9664 | unsigned code; |
| 9665 | 9665 | ||
| 9666 | CHECK_CHARACTER (ch); | 9666 | CHECK_CHARACTER (ch); |
| 9667 | c = XFASTINT (ch); | 9667 | c = XFIXNAT (ch); |
| 9668 | CHECK_CODING_SYSTEM_GET_SPEC (Vsjis_coding_system, spec); | 9668 | CHECK_CODING_SYSTEM_GET_SPEC (Vsjis_coding_system, spec); |
| 9669 | attrs = AREF (spec, 0); | 9669 | attrs = AREF (spec, 0); |
| 9670 | 9670 | ||
| @@ -9678,7 +9678,7 @@ Return the corresponding code in SJIS. */) | |||
| 9678 | error ("Can't encode by shift_jis encoding: %c", c); | 9678 | error ("Can't encode by shift_jis encoding: %c", c); |
| 9679 | JIS_TO_SJIS (code); | 9679 | JIS_TO_SJIS (code); |
| 9680 | 9680 | ||
| 9681 | return make_number (code); | 9681 | return make_fixnum (code); |
| 9682 | } | 9682 | } |
| 9683 | 9683 | ||
| 9684 | DEFUN ("decode-big5-char", Fdecode_big5_char, Sdecode_big5_char, 1, 1, 0, | 9684 | DEFUN ("decode-big5-char", Fdecode_big5_char, Sdecode_big5_char, 1, 1, 0, |
| @@ -9691,8 +9691,8 @@ Return the corresponding character. */) | |||
| 9691 | EMACS_INT ch; | 9691 | EMACS_INT ch; |
| 9692 | int c; | 9692 | int c; |
| 9693 | 9693 | ||
| 9694 | CHECK_NATNUM (code); | 9694 | CHECK_FIXNAT (code); |
| 9695 | ch = XFASTINT (code); | 9695 | ch = XFIXNAT (code); |
| 9696 | CHECK_CODING_SYSTEM_GET_SPEC (Vbig5_coding_system, spec); | 9696 | CHECK_CODING_SYSTEM_GET_SPEC (Vbig5_coding_system, spec); |
| 9697 | attrs = AREF (spec, 0); | 9697 | attrs = AREF (spec, 0); |
| 9698 | 9698 | ||
| @@ -9701,8 +9701,8 @@ Return the corresponding character. */) | |||
| 9701 | return code; | 9701 | return code; |
| 9702 | 9702 | ||
| 9703 | val = CODING_ATTR_CHARSET_LIST (attrs); | 9703 | val = CODING_ATTR_CHARSET_LIST (attrs); |
| 9704 | charset_roman = CHARSET_FROM_ID (XINT (XCAR (val))), val = XCDR (val); | 9704 | charset_roman = CHARSET_FROM_ID (XFIXNUM (XCAR (val))), val = XCDR (val); |
| 9705 | charset_big5 = CHARSET_FROM_ID (XINT (XCAR (val))); | 9705 | charset_big5 = CHARSET_FROM_ID (XFIXNUM (XCAR (val))); |
| 9706 | 9706 | ||
| 9707 | if (ch <= 0x7F) | 9707 | if (ch <= 0x7F) |
| 9708 | { | 9708 | { |
| @@ -9722,7 +9722,7 @@ Return the corresponding character. */) | |||
| 9722 | c = DECODE_CHAR (charset, c); | 9722 | c = DECODE_CHAR (charset, c); |
| 9723 | if (c < 0) | 9723 | if (c < 0) |
| 9724 | error ("Invalid code: %"pI"d", ch); | 9724 | error ("Invalid code: %"pI"d", ch); |
| 9725 | return make_number (c); | 9725 | return make_fixnum (c); |
| 9726 | } | 9726 | } |
| 9727 | 9727 | ||
| 9728 | DEFUN ("encode-big5-char", Fencode_big5_char, Sencode_big5_char, 1, 1, 0, | 9728 | DEFUN ("encode-big5-char", Fencode_big5_char, Sencode_big5_char, 1, 1, 0, |
| @@ -9736,7 +9736,7 @@ Return the corresponding character code in Big5. */) | |||
| 9736 | unsigned code; | 9736 | unsigned code; |
| 9737 | 9737 | ||
| 9738 | CHECK_CHARACTER (ch); | 9738 | CHECK_CHARACTER (ch); |
| 9739 | c = XFASTINT (ch); | 9739 | c = XFIXNAT (ch); |
| 9740 | CHECK_CODING_SYSTEM_GET_SPEC (Vbig5_coding_system, spec); | 9740 | CHECK_CODING_SYSTEM_GET_SPEC (Vbig5_coding_system, spec); |
| 9741 | attrs = AREF (spec, 0); | 9741 | attrs = AREF (spec, 0); |
| 9742 | if (ASCII_CHAR_P (c) | 9742 | if (ASCII_CHAR_P (c) |
| @@ -9748,7 +9748,7 @@ Return the corresponding character code in Big5. */) | |||
| 9748 | if (code == CHARSET_INVALID_CODE (charset)) | 9748 | if (code == CHARSET_INVALID_CODE (charset)) |
| 9749 | error ("Can't encode by Big5 encoding: %c", c); | 9749 | error ("Can't encode by Big5 encoding: %c", c); |
| 9750 | 9750 | ||
| 9751 | return make_number (code); | 9751 | return make_fixnum (code); |
| 9752 | } | 9752 | } |
| 9753 | 9753 | ||
| 9754 | 9754 | ||
| @@ -9770,7 +9770,7 @@ DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_intern | |||
| 9770 | tset_charset_list | 9770 | tset_charset_list |
| 9771 | (term, (terminal_coding->common_flags & CODING_REQUIRE_ENCODING_MASK | 9771 | (term, (terminal_coding->common_flags & CODING_REQUIRE_ENCODING_MASK |
| 9772 | ? coding_charset_list (terminal_coding) | 9772 | ? coding_charset_list (terminal_coding) |
| 9773 | : list1 (make_number (charset_ascii)))); | 9773 | : list1 (make_fixnum (charset_ascii)))); |
| 9774 | return Qnil; | 9774 | return Qnil; |
| 9775 | } | 9775 | } |
| 9776 | 9776 | ||
| @@ -9883,19 +9883,19 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS...) */) | |||
| 9883 | error ("Too few arguments"); | 9883 | error ("Too few arguments"); |
| 9884 | operation = args[0]; | 9884 | operation = args[0]; |
| 9885 | if (!SYMBOLP (operation) | 9885 | if (!SYMBOLP (operation) |
| 9886 | || (target_idx = Fget (operation, Qtarget_idx), !NATNUMP (target_idx))) | 9886 | || (target_idx = Fget (operation, Qtarget_idx), !FIXNATP (target_idx))) |
| 9887 | error ("Invalid first argument"); | 9887 | error ("Invalid first argument"); |
| 9888 | if (nargs <= 1 + XFASTINT (target_idx)) | 9888 | if (nargs <= 1 + XFIXNAT (target_idx)) |
| 9889 | error ("Too few arguments for operation `%s'", | 9889 | error ("Too few arguments for operation `%s'", |
| 9890 | SDATA (SYMBOL_NAME (operation))); | 9890 | SDATA (SYMBOL_NAME (operation))); |
| 9891 | target = args[XFASTINT (target_idx) + 1]; | 9891 | target = args[XFIXNAT (target_idx) + 1]; |
| 9892 | if (!(STRINGP (target) | 9892 | if (!(STRINGP (target) |
| 9893 | || (EQ (operation, Qinsert_file_contents) && CONSP (target) | 9893 | || (EQ (operation, Qinsert_file_contents) && CONSP (target) |
| 9894 | && STRINGP (XCAR (target)) && BUFFERP (XCDR (target))) | 9894 | && STRINGP (XCAR (target)) && BUFFERP (XCDR (target))) |
| 9895 | || (EQ (operation, Qopen_network_stream) | 9895 | || (EQ (operation, Qopen_network_stream) |
| 9896 | && (INTEGERP (target) || EQ (target, Qt))))) | 9896 | && (FIXNUMP (target) || EQ (target, Qt))))) |
| 9897 | error ("Invalid argument %"pI"d of operation `%s'", | 9897 | error ("Invalid argument %"pI"d of operation `%s'", |
| 9898 | XFASTINT (target_idx) + 1, SDATA (SYMBOL_NAME (operation))); | 9898 | XFIXNAT (target_idx) + 1, SDATA (SYMBOL_NAME (operation))); |
| 9899 | if (CONSP (target)) | 9899 | if (CONSP (target)) |
| 9900 | target = XCAR (target); | 9900 | target = XCAR (target); |
| 9901 | 9901 | ||
| @@ -9917,7 +9917,7 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS...) */) | |||
| 9917 | && ((STRINGP (target) | 9917 | && ((STRINGP (target) |
| 9918 | && STRINGP (XCAR (elt)) | 9918 | && STRINGP (XCAR (elt)) |
| 9919 | && fast_string_match (XCAR (elt), target) >= 0) | 9919 | && fast_string_match (XCAR (elt), target) >= 0) |
| 9920 | || (INTEGERP (target) && EQ (target, XCAR (elt))))) | 9920 | || (FIXNUMP (target) && EQ (target, XCAR (elt))))) |
| 9921 | { | 9921 | { |
| 9922 | val = XCDR (elt); | 9922 | val = XCDR (elt); |
| 9923 | /* Here, if VAL is both a valid coding system and a valid | 9923 | /* Here, if VAL is both a valid coding system and a valid |
| @@ -9967,7 +9967,7 @@ usage: (set-coding-system-priority &rest coding-systems) */) | |||
| 9967 | 9967 | ||
| 9968 | CHECK_CODING_SYSTEM_GET_SPEC (args[i], spec); | 9968 | CHECK_CODING_SYSTEM_GET_SPEC (args[i], spec); |
| 9969 | attrs = AREF (spec, 0); | 9969 | attrs = AREF (spec, 0); |
| 9970 | category = XINT (CODING_ATTR_CATEGORY (attrs)); | 9970 | category = XFIXNUM (CODING_ATTR_CATEGORY (attrs)); |
| 9971 | if (changed[category]) | 9971 | if (changed[category]) |
| 9972 | /* Ignore this coding system because a coding system of the | 9972 | /* Ignore this coding system because a coding system of the |
| 9973 | same category already had a higher priority. */ | 9973 | same category already had a higher priority. */ |
| @@ -10076,7 +10076,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10076 | if (nargs < coding_arg_max) | 10076 | if (nargs < coding_arg_max) |
| 10077 | goto short_args; | 10077 | goto short_args; |
| 10078 | 10078 | ||
| 10079 | attrs = Fmake_vector (make_number (coding_attr_last_index), Qnil); | 10079 | attrs = Fmake_vector (make_fixnum (coding_attr_last_index), Qnil); |
| 10080 | 10080 | ||
| 10081 | name = args[coding_arg_name]; | 10081 | name = args[coding_arg_name]; |
| 10082 | CHECK_SYMBOL (name); | 10082 | CHECK_SYMBOL (name); |
| @@ -10108,10 +10108,10 @@ usage: (define-coding-system-internal ...) */) | |||
| 10108 | } | 10108 | } |
| 10109 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) | 10109 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 10110 | { | 10110 | { |
| 10111 | if (! RANGED_INTEGERP (0, XCAR (tail), INT_MAX - 1)) | 10111 | if (! RANGED_FIXNUMP (0, XCAR (tail), INT_MAX - 1)) |
| 10112 | error ("Invalid charset-list"); | 10112 | error ("Invalid charset-list"); |
| 10113 | if (max_charset_id < XFASTINT (XCAR (tail))) | 10113 | if (max_charset_id < XFIXNAT (XCAR (tail))) |
| 10114 | max_charset_id = XFASTINT (XCAR (tail)); | 10114 | max_charset_id = XFIXNAT (XCAR (tail)); |
| 10115 | } | 10115 | } |
| 10116 | } | 10116 | } |
| 10117 | else | 10117 | else |
| @@ -10131,7 +10131,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10131 | error ("Can't handle charset `%s'", | 10131 | error ("Can't handle charset `%s'", |
| 10132 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10132 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| 10133 | 10133 | ||
| 10134 | XSETCAR (tail, make_number (charset->id)); | 10134 | XSETCAR (tail, make_fixnum (charset->id)); |
| 10135 | if (max_charset_id < charset->id) | 10135 | if (max_charset_id < charset->id) |
| 10136 | max_charset_id = charset->id; | 10136 | max_charset_id = charset->id; |
| 10137 | } | 10137 | } |
| @@ -10141,7 +10141,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10141 | safe_charsets = make_uninit_string (max_charset_id + 1); | 10141 | safe_charsets = make_uninit_string (max_charset_id + 1); |
| 10142 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); | 10142 | memset (SDATA (safe_charsets), 255, max_charset_id + 1); |
| 10143 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) | 10143 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 10144 | SSET (safe_charsets, XFASTINT (XCAR (tail)), 0); | 10144 | SSET (safe_charsets, XFIXNAT (XCAR (tail)), 0); |
| 10145 | ASET (attrs, coding_attr_safe_charsets, safe_charsets); | 10145 | ASET (attrs, coding_attr_safe_charsets, safe_charsets); |
| 10146 | 10146 | ||
| 10147 | ASET (attrs, coding_attr_ascii_compat, args[coding_arg_ascii_compatible_p]); | 10147 | ASET (attrs, coding_attr_ascii_compat, args[coding_arg_ascii_compatible_p]); |
| @@ -10166,7 +10166,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10166 | 10166 | ||
| 10167 | val = args[coding_arg_default_char]; | 10167 | val = args[coding_arg_default_char]; |
| 10168 | if (NILP (val)) | 10168 | if (NILP (val)) |
| 10169 | ASET (attrs, coding_attr_default_char, make_number (' ')); | 10169 | ASET (attrs, coding_attr_default_char, make_fixnum (' ')); |
| 10170 | else | 10170 | else |
| 10171 | { | 10171 | { |
| 10172 | CHECK_CHARACTER (val); | 10172 | CHECK_CHARACTER (val); |
| @@ -10194,11 +10194,11 @@ usage: (define-coding-system-internal ...) */) | |||
| 10194 | If Nth element is a list of charset IDs, N is the first byte | 10194 | If Nth element is a list of charset IDs, N is the first byte |
| 10195 | of one of them. The list is sorted by dimensions of the | 10195 | of one of them. The list is sorted by dimensions of the |
| 10196 | charsets. A charset of smaller dimension comes first. */ | 10196 | charsets. A charset of smaller dimension comes first. */ |
| 10197 | val = Fmake_vector (make_number (256), Qnil); | 10197 | val = Fmake_vector (make_fixnum (256), Qnil); |
| 10198 | 10198 | ||
| 10199 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) | 10199 | for (tail = charset_list; CONSP (tail); tail = XCDR (tail)) |
| 10200 | { | 10200 | { |
| 10201 | struct charset *charset = CHARSET_FROM_ID (XFASTINT (XCAR (tail))); | 10201 | struct charset *charset = CHARSET_FROM_ID (XFIXNAT (XCAR (tail))); |
| 10202 | int dim = CHARSET_DIMENSION (charset); | 10202 | int dim = CHARSET_DIMENSION (charset); |
| 10203 | int idx = (dim - 1) * 4; | 10203 | int idx = (dim - 1) * 4; |
| 10204 | 10204 | ||
| @@ -10214,9 +10214,9 @@ usage: (define-coding-system-internal ...) */) | |||
| 10214 | tmp = AREF (val, i); | 10214 | tmp = AREF (val, i); |
| 10215 | if (NILP (tmp)) | 10215 | if (NILP (tmp)) |
| 10216 | tmp = XCAR (tail); | 10216 | tmp = XCAR (tail); |
| 10217 | else if (NUMBERP (tmp)) | 10217 | else if (FIXED_OR_FLOATP (tmp)) |
| 10218 | { | 10218 | { |
| 10219 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFASTINT (tmp))); | 10219 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFIXNAT (tmp))); |
| 10220 | if (dim < dim2) | 10220 | if (dim < dim2) |
| 10221 | tmp = list2 (XCAR (tail), tmp); | 10221 | tmp = list2 (XCAR (tail), tmp); |
| 10222 | else | 10222 | else |
| @@ -10226,7 +10226,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10226 | { | 10226 | { |
| 10227 | for (tmp2 = tmp; CONSP (tmp2); tmp2 = XCDR (tmp2)) | 10227 | for (tmp2 = tmp; CONSP (tmp2); tmp2 = XCDR (tmp2)) |
| 10228 | { | 10228 | { |
| 10229 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFASTINT (XCAR (tmp2)))); | 10229 | dim2 = CHARSET_DIMENSION (CHARSET_FROM_ID (XFIXNAT (XCAR (tmp2)))); |
| 10230 | if (dim < dim2) | 10230 | if (dim < dim2) |
| 10231 | break; | 10231 | break; |
| 10232 | } | 10232 | } |
| @@ -10264,31 +10264,31 @@ usage: (define-coding-system-internal ...) */) | |||
| 10264 | ASET (attrs, coding_attr_ccl_encoder, val); | 10264 | ASET (attrs, coding_attr_ccl_encoder, val); |
| 10265 | 10265 | ||
| 10266 | val = args[coding_arg_ccl_valids]; | 10266 | val = args[coding_arg_ccl_valids]; |
| 10267 | valids = Fmake_string (make_number (256), make_number (0), Qnil); | 10267 | valids = Fmake_string (make_fixnum (256), make_fixnum (0), Qnil); |
| 10268 | for (tail = val; CONSP (tail); tail = XCDR (tail)) | 10268 | for (tail = val; CONSP (tail); tail = XCDR (tail)) |
| 10269 | { | 10269 | { |
| 10270 | int from, to; | 10270 | int from, to; |
| 10271 | 10271 | ||
| 10272 | val = XCAR (tail); | 10272 | val = XCAR (tail); |
| 10273 | if (INTEGERP (val)) | 10273 | if (FIXNUMP (val)) |
| 10274 | { | 10274 | { |
| 10275 | if (! (0 <= XINT (val) && XINT (val) <= 255)) | 10275 | if (! (0 <= XFIXNUM (val) && XFIXNUM (val) <= 255)) |
| 10276 | args_out_of_range_3 (val, make_number (0), make_number (255)); | 10276 | args_out_of_range_3 (val, make_fixnum (0), make_fixnum (255)); |
| 10277 | from = to = XINT (val); | 10277 | from = to = XFIXNUM (val); |
| 10278 | } | 10278 | } |
| 10279 | else | 10279 | else |
| 10280 | { | 10280 | { |
| 10281 | CHECK_CONS (val); | 10281 | CHECK_CONS (val); |
| 10282 | CHECK_NATNUM_CAR (val); | 10282 | CHECK_FIXNAT_CAR (val); |
| 10283 | CHECK_NUMBER_CDR (val); | 10283 | CHECK_FIXNUM_CDR (val); |
| 10284 | if (XINT (XCAR (val)) > 255) | 10284 | if (XFIXNUM (XCAR (val)) > 255) |
| 10285 | args_out_of_range_3 (XCAR (val), | 10285 | args_out_of_range_3 (XCAR (val), |
| 10286 | make_number (0), make_number (255)); | 10286 | make_fixnum (0), make_fixnum (255)); |
| 10287 | from = XINT (XCAR (val)); | 10287 | from = XFIXNUM (XCAR (val)); |
| 10288 | if (! (from <= XINT (XCDR (val)) && XINT (XCDR (val)) <= 255)) | 10288 | if (! (from <= XFIXNUM (XCDR (val)) && XFIXNUM (XCDR (val)) <= 255)) |
| 10289 | args_out_of_range_3 (XCDR (val), | 10289 | args_out_of_range_3 (XCDR (val), |
| 10290 | XCAR (val), make_number (255)); | 10290 | XCAR (val), make_fixnum (255)); |
| 10291 | to = XINT (XCDR (val)); | 10291 | to = XFIXNUM (XCDR (val)); |
| 10292 | } | 10292 | } |
| 10293 | for (i = from; i <= to; i++) | 10293 | for (i = from; i <= to; i++) |
| 10294 | SSET (valids, i, 1); | 10294 | SSET (valids, i, 1); |
| @@ -10352,18 +10352,18 @@ usage: (define-coding-system-internal ...) */) | |||
| 10352 | struct charset *charset; | 10352 | struct charset *charset; |
| 10353 | 10353 | ||
| 10354 | CHECK_CHARSET_GET_CHARSET (val, charset); | 10354 | CHECK_CHARSET_GET_CHARSET (val, charset); |
| 10355 | ASET (initial, i, make_number (CHARSET_ID (charset))); | 10355 | ASET (initial, i, make_fixnum (CHARSET_ID (charset))); |
| 10356 | if (i == 0 && CHARSET_ASCII_COMPATIBLE_P (charset)) | 10356 | if (i == 0 && CHARSET_ASCII_COMPATIBLE_P (charset)) |
| 10357 | ASET (attrs, coding_attr_ascii_compat, Qt); | 10357 | ASET (attrs, coding_attr_ascii_compat, Qt); |
| 10358 | } | 10358 | } |
| 10359 | else | 10359 | else |
| 10360 | ASET (initial, i, make_number (-1)); | 10360 | ASET (initial, i, make_fixnum (-1)); |
| 10361 | } | 10361 | } |
| 10362 | 10362 | ||
| 10363 | reg_usage = args[coding_arg_iso2022_reg_usage]; | 10363 | reg_usage = args[coding_arg_iso2022_reg_usage]; |
| 10364 | CHECK_CONS (reg_usage); | 10364 | CHECK_CONS (reg_usage); |
| 10365 | CHECK_NUMBER_CAR (reg_usage); | 10365 | CHECK_FIXNUM_CAR (reg_usage); |
| 10366 | CHECK_NUMBER_CDR (reg_usage); | 10366 | CHECK_FIXNUM_CDR (reg_usage); |
| 10367 | 10367 | ||
| 10368 | request = Fcopy_sequence (args[coding_arg_iso2022_request]); | 10368 | request = Fcopy_sequence (args[coding_arg_iso2022_request]); |
| 10369 | for (tail = request; CONSP (tail); tail = XCDR (tail)) | 10369 | for (tail = request; CONSP (tail); tail = XCDR (tail)) |
| @@ -10375,18 +10375,18 @@ usage: (define-coding-system-internal ...) */) | |||
| 10375 | CHECK_CONS (val); | 10375 | CHECK_CONS (val); |
| 10376 | tmp1 = XCAR (val); | 10376 | tmp1 = XCAR (val); |
| 10377 | CHECK_CHARSET_GET_ID (tmp1, id); | 10377 | CHECK_CHARSET_GET_ID (tmp1, id); |
| 10378 | CHECK_NATNUM_CDR (val); | 10378 | CHECK_FIXNAT_CDR (val); |
| 10379 | if (XINT (XCDR (val)) >= 4) | 10379 | if (XFIXNUM (XCDR (val)) >= 4) |
| 10380 | error ("Invalid graphic register number: %"pI"d", XINT (XCDR (val))); | 10380 | error ("Invalid graphic register number: %"pI"d", XFIXNUM (XCDR (val))); |
| 10381 | XSETCAR (val, make_number (id)); | 10381 | XSETCAR (val, make_fixnum (id)); |
| 10382 | } | 10382 | } |
| 10383 | 10383 | ||
| 10384 | flags = args[coding_arg_iso2022_flags]; | 10384 | flags = args[coding_arg_iso2022_flags]; |
| 10385 | CHECK_NATNUM (flags); | 10385 | CHECK_FIXNAT (flags); |
| 10386 | i = XINT (flags) & INT_MAX; | 10386 | i = XFIXNUM (flags) & INT_MAX; |
| 10387 | if (EQ (args[coding_arg_charset_list], Qiso_2022)) | 10387 | if (EQ (args[coding_arg_charset_list], Qiso_2022)) |
| 10388 | i |= CODING_ISO_FLAG_FULL_SUPPORT; | 10388 | i |= CODING_ISO_FLAG_FULL_SUPPORT; |
| 10389 | flags = make_number (i); | 10389 | flags = make_fixnum (i); |
| 10390 | 10390 | ||
| 10391 | ASET (attrs, coding_attr_iso_initial, initial); | 10391 | ASET (attrs, coding_attr_iso_initial, initial); |
| 10392 | ASET (attrs, coding_attr_iso_usage, reg_usage); | 10392 | ASET (attrs, coding_attr_iso_usage, reg_usage); |
| @@ -10403,7 +10403,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10403 | : coding_category_iso_7_tight); | 10403 | : coding_category_iso_7_tight); |
| 10404 | else | 10404 | else |
| 10405 | { | 10405 | { |
| 10406 | int id = XINT (AREF (initial, 1)); | 10406 | int id = XFIXNUM (AREF (initial, 1)); |
| 10407 | 10407 | ||
| 10408 | category = (((i & CODING_ISO_FLAG_LOCKING_SHIFT) | 10408 | category = (((i & CODING_ISO_FLAG_LOCKING_SHIFT) |
| 10409 | || EQ (args[coding_arg_charset_list], Qiso_2022) | 10409 | || EQ (args[coding_arg_charset_list], Qiso_2022) |
| @@ -10429,11 +10429,11 @@ usage: (define-coding-system-internal ...) */) | |||
| 10429 | 10429 | ||
| 10430 | struct charset *charset; | 10430 | struct charset *charset; |
| 10431 | 10431 | ||
| 10432 | if (XINT (Flength (charset_list)) != 3 | 10432 | if (XFIXNUM (Flength (charset_list)) != 3 |
| 10433 | && XINT (Flength (charset_list)) != 4) | 10433 | && XFIXNUM (Flength (charset_list)) != 4) |
| 10434 | error ("There should be three or four charsets"); | 10434 | error ("There should be three or four charsets"); |
| 10435 | 10435 | ||
| 10436 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10436 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10437 | if (CHARSET_DIMENSION (charset) != 1) | 10437 | if (CHARSET_DIMENSION (charset) != 1) |
| 10438 | error ("Dimension of charset %s is not one", | 10438 | error ("Dimension of charset %s is not one", |
| 10439 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10439 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| @@ -10441,13 +10441,13 @@ usage: (define-coding-system-internal ...) */) | |||
| 10441 | ASET (attrs, coding_attr_ascii_compat, Qt); | 10441 | ASET (attrs, coding_attr_ascii_compat, Qt); |
| 10442 | 10442 | ||
| 10443 | charset_list = XCDR (charset_list); | 10443 | charset_list = XCDR (charset_list); |
| 10444 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10444 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10445 | if (CHARSET_DIMENSION (charset) != 1) | 10445 | if (CHARSET_DIMENSION (charset) != 1) |
| 10446 | error ("Dimension of charset %s is not one", | 10446 | error ("Dimension of charset %s is not one", |
| 10447 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10447 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| 10448 | 10448 | ||
| 10449 | charset_list = XCDR (charset_list); | 10449 | charset_list = XCDR (charset_list); |
| 10450 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10450 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10451 | if (CHARSET_DIMENSION (charset) != 2) | 10451 | if (CHARSET_DIMENSION (charset) != 2) |
| 10452 | error ("Dimension of charset %s is not two", | 10452 | error ("Dimension of charset %s is not two", |
| 10453 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10453 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| @@ -10455,7 +10455,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10455 | charset_list = XCDR (charset_list); | 10455 | charset_list = XCDR (charset_list); |
| 10456 | if (! NILP (charset_list)) | 10456 | if (! NILP (charset_list)) |
| 10457 | { | 10457 | { |
| 10458 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10458 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10459 | if (CHARSET_DIMENSION (charset) != 2) | 10459 | if (CHARSET_DIMENSION (charset) != 2) |
| 10460 | error ("Dimension of charset %s is not two", | 10460 | error ("Dimension of charset %s is not two", |
| 10461 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10461 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| @@ -10468,10 +10468,10 @@ usage: (define-coding-system-internal ...) */) | |||
| 10468 | { | 10468 | { |
| 10469 | struct charset *charset; | 10469 | struct charset *charset; |
| 10470 | 10470 | ||
| 10471 | if (XINT (Flength (charset_list)) != 2) | 10471 | if (XFIXNUM (Flength (charset_list)) != 2) |
| 10472 | error ("There should be just two charsets"); | 10472 | error ("There should be just two charsets"); |
| 10473 | 10473 | ||
| 10474 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10474 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10475 | if (CHARSET_DIMENSION (charset) != 1) | 10475 | if (CHARSET_DIMENSION (charset) != 1) |
| 10476 | error ("Dimension of charset %s is not one", | 10476 | error ("Dimension of charset %s is not one", |
| 10477 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10477 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| @@ -10479,7 +10479,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10479 | ASET (attrs, coding_attr_ascii_compat, Qt); | 10479 | ASET (attrs, coding_attr_ascii_compat, Qt); |
| 10480 | 10480 | ||
| 10481 | charset_list = XCDR (charset_list); | 10481 | charset_list = XCDR (charset_list); |
| 10482 | charset = CHARSET_FROM_ID (XINT (XCAR (charset_list))); | 10482 | charset = CHARSET_FROM_ID (XFIXNUM (XCAR (charset_list))); |
| 10483 | if (CHARSET_DIMENSION (charset) != 2) | 10483 | if (CHARSET_DIMENSION (charset) != 2) |
| 10484 | error ("Dimension of charset %s is not two", | 10484 | error ("Dimension of charset %s is not two", |
| 10485 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); | 10485 | SDATA (SYMBOL_NAME (CHARSET_NAME (charset)))); |
| @@ -10532,7 +10532,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10532 | error ("Invalid coding system type: %s", | 10532 | error ("Invalid coding system type: %s", |
| 10533 | SDATA (SYMBOL_NAME (coding_type))); | 10533 | SDATA (SYMBOL_NAME (coding_type))); |
| 10534 | 10534 | ||
| 10535 | ASET (attrs, coding_attr_category, make_number (category)); | 10535 | ASET (attrs, coding_attr_category, make_fixnum (category)); |
| 10536 | ASET (attrs, coding_attr_plist, | 10536 | ASET (attrs, coding_attr_plist, |
| 10537 | Fcons (QCcategory, | 10537 | Fcons (QCcategory, |
| 10538 | Fcons (AREF (Vcoding_category_table, category), | 10538 | Fcons (AREF (Vcoding_category_table, category), |
| @@ -10599,7 +10599,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 10599 | short_args: | 10599 | short_args: |
| 10600 | Fsignal (Qwrong_number_of_arguments, | 10600 | Fsignal (Qwrong_number_of_arguments, |
| 10601 | Fcons (intern ("define-coding-system-internal"), | 10601 | Fcons (intern ("define-coding-system-internal"), |
| 10602 | make_number (nargs))); | 10602 | make_fixnum (nargs))); |
| 10603 | } | 10603 | } |
| 10604 | 10604 | ||
| 10605 | 10605 | ||
| @@ -10621,7 +10621,7 @@ DEFUN ("coding-system-put", Fcoding_system_put, Scoding_system_put, | |||
| 10621 | else if (EQ (prop, QCdefault_char)) | 10621 | else if (EQ (prop, QCdefault_char)) |
| 10622 | { | 10622 | { |
| 10623 | if (NILP (val)) | 10623 | if (NILP (val)) |
| 10624 | val = make_number (' '); | 10624 | val = make_fixnum (' '); |
| 10625 | else | 10625 | else |
| 10626 | CHECK_CHARACTER (val); | 10626 | CHECK_CHARACTER (val); |
| 10627 | ASET (attrs, coding_attr_default_char, val); | 10627 | ASET (attrs, coding_attr_default_char, val); |
| @@ -10766,7 +10766,7 @@ coding system whose eol-type is N. */) | |||
| 10766 | if (VECTORP (eol_type)) | 10766 | if (VECTORP (eol_type)) |
| 10767 | return Fcopy_sequence (eol_type); | 10767 | return Fcopy_sequence (eol_type); |
| 10768 | n = EQ (eol_type, Qunix) ? 0 : EQ (eol_type, Qdos) ? 1 : 2; | 10768 | n = EQ (eol_type, Qunix) ? 0 : EQ (eol_type, Qdos) ? 1 : 2; |
| 10769 | return make_number (n); | 10769 | return make_fixnum (n); |
| 10770 | } | 10770 | } |
| 10771 | 10771 | ||
| 10772 | #endif /* emacs */ | 10772 | #endif /* emacs */ |
| @@ -10842,25 +10842,25 @@ syms_of_coding (void) | |||
| 10842 | Fset (Qcoding_system_history, Qnil); | 10842 | Fset (Qcoding_system_history, Qnil); |
| 10843 | 10843 | ||
| 10844 | /* Target FILENAME is the first argument. */ | 10844 | /* Target FILENAME is the first argument. */ |
| 10845 | Fput (Qinsert_file_contents, Qtarget_idx, make_number (0)); | 10845 | Fput (Qinsert_file_contents, Qtarget_idx, make_fixnum (0)); |
| 10846 | /* Target FILENAME is the third argument. */ | 10846 | /* Target FILENAME is the third argument. */ |
| 10847 | Fput (Qwrite_region, Qtarget_idx, make_number (2)); | 10847 | Fput (Qwrite_region, Qtarget_idx, make_fixnum (2)); |
| 10848 | 10848 | ||
| 10849 | DEFSYM (Qcall_process, "call-process"); | 10849 | DEFSYM (Qcall_process, "call-process"); |
| 10850 | /* Target PROGRAM is the first argument. */ | 10850 | /* Target PROGRAM is the first argument. */ |
| 10851 | Fput (Qcall_process, Qtarget_idx, make_number (0)); | 10851 | Fput (Qcall_process, Qtarget_idx, make_fixnum (0)); |
| 10852 | 10852 | ||
| 10853 | DEFSYM (Qcall_process_region, "call-process-region"); | 10853 | DEFSYM (Qcall_process_region, "call-process-region"); |
| 10854 | /* Target PROGRAM is the third argument. */ | 10854 | /* Target PROGRAM is the third argument. */ |
| 10855 | Fput (Qcall_process_region, Qtarget_idx, make_number (2)); | 10855 | Fput (Qcall_process_region, Qtarget_idx, make_fixnum (2)); |
| 10856 | 10856 | ||
| 10857 | DEFSYM (Qstart_process, "start-process"); | 10857 | DEFSYM (Qstart_process, "start-process"); |
| 10858 | /* Target PROGRAM is the third argument. */ | 10858 | /* Target PROGRAM is the third argument. */ |
| 10859 | Fput (Qstart_process, Qtarget_idx, make_number (2)); | 10859 | Fput (Qstart_process, Qtarget_idx, make_fixnum (2)); |
| 10860 | 10860 | ||
| 10861 | DEFSYM (Qopen_network_stream, "open-network-stream"); | 10861 | DEFSYM (Qopen_network_stream, "open-network-stream"); |
| 10862 | /* Target SERVICE is the fourth argument. */ | 10862 | /* Target SERVICE is the fourth argument. */ |
| 10863 | Fput (Qopen_network_stream, Qtarget_idx, make_number (3)); | 10863 | Fput (Qopen_network_stream, Qtarget_idx, make_fixnum (3)); |
| 10864 | 10864 | ||
| 10865 | DEFSYM (Qunix, "unix"); | 10865 | DEFSYM (Qunix, "unix"); |
| 10866 | DEFSYM (Qdos, "dos"); | 10866 | DEFSYM (Qdos, "dos"); |
| @@ -10899,7 +10899,7 @@ syms_of_coding (void) | |||
| 10899 | build_pure_c_string ("Invalid coding system")); | 10899 | build_pure_c_string ("Invalid coding system")); |
| 10900 | 10900 | ||
| 10901 | DEFSYM (Qtranslation_table, "translation-table"); | 10901 | DEFSYM (Qtranslation_table, "translation-table"); |
| 10902 | Fput (Qtranslation_table, Qchar_table_extra_slots, make_number (2)); | 10902 | Fput (Qtranslation_table, Qchar_table_extra_slots, make_fixnum (2)); |
| 10903 | DEFSYM (Qtranslation_table_id, "translation-table-id"); | 10903 | DEFSYM (Qtranslation_table_id, "translation-table-id"); |
| 10904 | 10904 | ||
| 10905 | /* Coding system emacs-mule and raw-text are for converting only | 10905 | /* Coding system emacs-mule and raw-text are for converting only |
| @@ -10916,7 +10916,7 @@ syms_of_coding (void) | |||
| 10916 | DEFSYM (QCascii_compatible_p, ":ascii-compatible-p"); | 10916 | DEFSYM (QCascii_compatible_p, ":ascii-compatible-p"); |
| 10917 | 10917 | ||
| 10918 | Vcoding_category_table | 10918 | Vcoding_category_table |
| 10919 | = Fmake_vector (make_number (coding_category_max), Qnil); | 10919 | = Fmake_vector (make_fixnum (coding_category_max), Qnil); |
| 10920 | staticpro (&Vcoding_category_table); | 10920 | staticpro (&Vcoding_category_table); |
| 10921 | /* Followings are target of code detection. */ | 10921 | /* Followings are target of code detection. */ |
| 10922 | ASET (Vcoding_category_table, coding_category_iso_7, | 10922 | ASET (Vcoding_category_table, coding_category_iso_7, |
| @@ -11220,7 +11220,7 @@ a coding system of ISO 2022 variant which has a flag | |||
| 11220 | `accept-latin-extra-code' t (e.g. iso-latin-1) on reading a file | 11220 | `accept-latin-extra-code' t (e.g. iso-latin-1) on reading a file |
| 11221 | or reading output of a subprocess. | 11221 | or reading output of a subprocess. |
| 11222 | Only 128th through 159th elements have a meaning. */); | 11222 | Only 128th through 159th elements have a meaning. */); |
| 11223 | Vlatin_extra_code_table = Fmake_vector (make_number (256), Qnil); | 11223 | Vlatin_extra_code_table = Fmake_vector (make_fixnum (256), Qnil); |
| 11224 | 11224 | ||
| 11225 | DEFVAR_LISP ("select-safe-coding-system-function", | 11225 | DEFVAR_LISP ("select-safe-coding-system-function", |
| 11226 | Vselect_safe_coding_system_function, | 11226 | Vselect_safe_coding_system_function, |
| @@ -11309,13 +11309,13 @@ internal character representation. */); | |||
| 11309 | QCname, | 11309 | QCname, |
| 11310 | args[coding_arg_name] = Qno_conversion, | 11310 | args[coding_arg_name] = Qno_conversion, |
| 11311 | QCmnemonic, | 11311 | QCmnemonic, |
| 11312 | args[coding_arg_mnemonic] = make_number ('='), | 11312 | args[coding_arg_mnemonic] = make_fixnum ('='), |
| 11313 | intern_c_string (":coding-type"), | 11313 | intern_c_string (":coding-type"), |
| 11314 | args[coding_arg_coding_type] = Qraw_text, | 11314 | args[coding_arg_coding_type] = Qraw_text, |
| 11315 | QCascii_compatible_p, | 11315 | QCascii_compatible_p, |
| 11316 | args[coding_arg_ascii_compatible_p] = Qt, | 11316 | args[coding_arg_ascii_compatible_p] = Qt, |
| 11317 | QCdefault_char, | 11317 | QCdefault_char, |
| 11318 | args[coding_arg_default_char] = make_number (0), | 11318 | args[coding_arg_default_char] = make_fixnum (0), |
| 11319 | intern_c_string (":for-unibyte"), | 11319 | intern_c_string (":for-unibyte"), |
| 11320 | args[coding_arg_for_unibyte] = Qt, | 11320 | args[coding_arg_for_unibyte] = Qt, |
| 11321 | intern_c_string (":docstring"), | 11321 | intern_c_string (":docstring"), |
| @@ -11332,7 +11332,7 @@ internal character representation. */); | |||
| 11332 | Fdefine_coding_system_internal (coding_arg_max, args); | 11332 | Fdefine_coding_system_internal (coding_arg_max, args); |
| 11333 | 11333 | ||
| 11334 | plist[1] = args[coding_arg_name] = Qundecided; | 11334 | plist[1] = args[coding_arg_name] = Qundecided; |
| 11335 | plist[3] = args[coding_arg_mnemonic] = make_number ('-'); | 11335 | plist[3] = args[coding_arg_mnemonic] = make_fixnum ('-'); |
| 11336 | plist[5] = args[coding_arg_coding_type] = Qundecided; | 11336 | plist[5] = args[coding_arg_coding_type] = Qundecided; |
| 11337 | /* This is already set. | 11337 | /* This is already set. |
| 11338 | plist[7] = args[coding_arg_ascii_compatible_p] = Qt; */ | 11338 | plist[7] = args[coding_arg_ascii_compatible_p] = Qt; */ |
| @@ -11343,8 +11343,8 @@ internal character representation. */); | |||
| 11343 | "automatic conversion on decoding."); | 11343 | "automatic conversion on decoding."); |
| 11344 | plist[15] = args[coding_arg_eol_type] = Qnil; | 11344 | plist[15] = args[coding_arg_eol_type] = Qnil; |
| 11345 | args[coding_arg_plist] = CALLMANY (Flist, plist); | 11345 | args[coding_arg_plist] = CALLMANY (Flist, plist); |
| 11346 | args[coding_arg_undecided_inhibit_null_byte_detection] = make_number (0); | 11346 | args[coding_arg_undecided_inhibit_null_byte_detection] = make_fixnum (0); |
| 11347 | args[coding_arg_undecided_inhibit_iso_escape_detection] = make_number (0); | 11347 | args[coding_arg_undecided_inhibit_iso_escape_detection] = make_fixnum (0); |
| 11348 | Fdefine_coding_system_internal (coding_arg_undecided_max, args); | 11348 | Fdefine_coding_system_internal (coding_arg_undecided_max, args); |
| 11349 | 11349 | ||
| 11350 | setup_coding_system (Qno_conversion, &safe_terminal_coding); | 11350 | setup_coding_system (Qno_conversion, &safe_terminal_coding); |