diff options
| author | Charles A. Roelli | 2018-08-09 16:00:20 +0200 |
|---|---|---|
| committer | Charles A. Roelli | 2018-08-09 16:00:20 +0200 |
| commit | d0b279a50518ce61277cfd274349da8fcc0b0609 (patch) | |
| tree | da363120bb7cbfc3fe90d79f93825e1b4ddff96c /src | |
| parent | 90dba077cff06b4f2566acb028286fbffa57f22f (diff) | |
| download | emacs-d0b279a50518ce61277cfd274349da8fcc0b0609.tar.gz emacs-d0b279a50518ce61277cfd274349da8fcc0b0609.zip | |
Update src/{ns,mac}*.m to use bignum-compatible macros
* src/nsterm.m:
* src/nsselect.m:
* src/nsmenu.m:
* src/nsimage.m:
* src/nsfont.m:
* src/nsfns.m:
* src/macfont.m: Replace
"make_number" -> "make_fixnum",
"XINT" -> "XFIXNUM",
"XFASTINT" -> "XFIXNAT",
"TYPE_RANGED_INTEGERP" -> "TYPE_RANGED_FIXNUMP",
"RANGED_INTEGERP" -> "RANGED_FIXNUMP",
"CHECK_NATNUM" -> "CHECK_FIXNAT",
"CHECK_NUMBER" -> "CHECK_FIXNUM",
"INTEGERP" -> "FIXNUMP",
"NUMBERP" -> "FIXED_OR_FLOATP",
as done in the following changes:
2018-07-06 Rename integerp->fixnum, etc, in preparation
for bignums (42fe787b)
2018-08-07 More macro renamings for bignum (d1ec3a0a)
Diffstat (limited to 'src')
| -rw-r--r-- | src/macfont.m | 62 | ||||
| -rw-r--r-- | src/nsfns.m | 156 | ||||
| -rw-r--r-- | src/nsfont.m | 24 | ||||
| -rw-r--r-- | src/nsimage.m | 18 | ||||
| -rw-r--r-- | src/nsmenu.m | 2 | ||||
| -rw-r--r-- | src/nsselect.m | 14 | ||||
| -rw-r--r-- | src/nsterm.m | 40 |
7 files changed, 158 insertions, 158 deletions
diff --git a/src/macfont.m b/src/macfont.m index e0c704fac95..c9a1edaec8b 100644 --- a/src/macfont.m +++ b/src/macfont.m | |||
| @@ -851,7 +851,7 @@ macfont_store_descriptor_attributes (CTFontDescriptorRef desc, | |||
| 851 | * ((point->y - (point - 1)->y) | 851 | * ((point->y - (point - 1)->y) |
| 852 | / (point->x - (point - 1)->x))); | 852 | / (point->x - (point - 1)->x))); |
| 853 | FONT_SET_STYLE (spec_or_entity, numeric_traits[i].index, | 853 | FONT_SET_STYLE (spec_or_entity, numeric_traits[i].index, |
| 854 | make_number (lround (floatval))); | 854 | make_fixnum (lround (floatval))); |
| 855 | } | 855 | } |
| 856 | } | 856 | } |
| 857 | 857 | ||
| @@ -864,16 +864,16 @@ macfont_store_descriptor_attributes (CTFontDescriptorRef desc, | |||
| 864 | cfnumber_get_font_symbolic_traits_value (num, &sym_traits); | 864 | cfnumber_get_font_symbolic_traits_value (num, &sym_traits); |
| 865 | spacing = (sym_traits & kCTFontTraitMonoSpace | 865 | spacing = (sym_traits & kCTFontTraitMonoSpace |
| 866 | ? FONT_SPACING_MONO : FONT_SPACING_PROPORTIONAL); | 866 | ? FONT_SPACING_MONO : FONT_SPACING_PROPORTIONAL); |
| 867 | ASET (spec_or_entity, FONT_SPACING_INDEX, make_number (spacing)); | 867 | ASET (spec_or_entity, FONT_SPACING_INDEX, make_fixnum (spacing)); |
| 868 | } | 868 | } |
| 869 | 869 | ||
| 870 | CFRelease (dict); | 870 | CFRelease (dict); |
| 871 | } | 871 | } |
| 872 | num = CTFontDescriptorCopyAttribute (desc, kCTFontSizeAttribute); | 872 | num = CTFontDescriptorCopyAttribute (desc, kCTFontSizeAttribute); |
| 873 | if (num && CFNumberGetValue (num, kCFNumberCGFloatType, &floatval)) | 873 | if (num && CFNumberGetValue (num, kCFNumberCGFloatType, &floatval)) |
| 874 | ASET (spec_or_entity, FONT_SIZE_INDEX, make_number (floatval)); | 874 | ASET (spec_or_entity, FONT_SIZE_INDEX, make_fixnum (floatval)); |
| 875 | else | 875 | else |
| 876 | ASET (spec_or_entity, FONT_SIZE_INDEX, make_number (0)); | 876 | ASET (spec_or_entity, FONT_SIZE_INDEX, make_fixnum (0)); |
| 877 | if (num) | 877 | if (num) |
| 878 | CFRelease (num); | 878 | CFRelease (num); |
| 879 | } | 879 | } |
| @@ -903,22 +903,22 @@ macfont_descriptor_entity (CTFontDescriptorRef desc, Lisp_Object extra, | |||
| 903 | cfnumber_get_font_symbolic_traits_value (num, &sym_traits); | 903 | cfnumber_get_font_symbolic_traits_value (num, &sym_traits); |
| 904 | CFRelease (dict); | 904 | CFRelease (dict); |
| 905 | } | 905 | } |
| 906 | if (EQ (AREF (entity, FONT_SIZE_INDEX), make_number (0))) | 906 | if (EQ (AREF (entity, FONT_SIZE_INDEX), make_fixnum (0))) |
| 907 | ASET (entity, FONT_AVGWIDTH_INDEX, make_number (0)); | 907 | ASET (entity, FONT_AVGWIDTH_INDEX, make_fixnum (0)); |
| 908 | ASET (entity, FONT_EXTRA_INDEX, Fcopy_sequence (extra)); | 908 | ASET (entity, FONT_EXTRA_INDEX, Fcopy_sequence (extra)); |
| 909 | name = CTFontDescriptorCopyAttribute (desc, kCTFontNameAttribute); | 909 | name = CTFontDescriptorCopyAttribute (desc, kCTFontNameAttribute); |
| 910 | font_put_extra (entity, QCfont_entity, | 910 | font_put_extra (entity, QCfont_entity, |
| 911 | Fcons (make_mint_ptr ((void *) name), | 911 | Fcons (make_mint_ptr ((void *) name), |
| 912 | make_number (sym_traits))); | 912 | make_fixnum (sym_traits))); |
| 913 | if (synth_sym_traits & kCTFontTraitItalic) | 913 | if (synth_sym_traits & kCTFontTraitItalic) |
| 914 | FONT_SET_STYLE (entity, FONT_SLANT_INDEX, | 914 | FONT_SET_STYLE (entity, FONT_SLANT_INDEX, |
| 915 | make_number (FONT_SLANT_SYNTHETIC_ITALIC)); | 915 | make_fixnum (FONT_SLANT_SYNTHETIC_ITALIC)); |
| 916 | if (synth_sym_traits & kCTFontTraitBold) | 916 | if (synth_sym_traits & kCTFontTraitBold) |
| 917 | FONT_SET_STYLE (entity, FONT_WEIGHT_INDEX, | 917 | FONT_SET_STYLE (entity, FONT_WEIGHT_INDEX, |
| 918 | make_number (FONT_WEIGHT_SYNTHETIC_BOLD)); | 918 | make_fixnum (FONT_WEIGHT_SYNTHETIC_BOLD)); |
| 919 | if (synth_sym_traits & kCTFontTraitMonoSpace) | 919 | if (synth_sym_traits & kCTFontTraitMonoSpace) |
| 920 | ASET (entity, FONT_SPACING_INDEX, | 920 | ASET (entity, FONT_SPACING_INDEX, |
| 921 | make_number (FONT_SPACING_SYNTHETIC_MONO)); | 921 | make_fixnum (FONT_SPACING_SYNTHETIC_MONO)); |
| 922 | 922 | ||
| 923 | return entity; | 923 | return entity; |
| 924 | } | 924 | } |
| @@ -1798,9 +1798,9 @@ macfont_get_open_type_spec (Lisp_Object otf_spec) | |||
| 1798 | continue; | 1798 | continue; |
| 1799 | len = Flength (val); | 1799 | len = Flength (val); |
| 1800 | spec->features[i] = | 1800 | spec->features[i] = |
| 1801 | (min (PTRDIFF_MAX, SIZE_MAX) / sizeof (int) < XINT (len) | 1801 | (min (PTRDIFF_MAX, SIZE_MAX) / sizeof (int) < XFIXNUM (len) |
| 1802 | ? 0 | 1802 | ? 0 |
| 1803 | : malloc (XINT (len) * sizeof *spec->features[i])); | 1803 | : malloc (XFIXNUM (len) * sizeof *spec->features[i])); |
| 1804 | if (! spec->features[i]) | 1804 | if (! spec->features[i]) |
| 1805 | { | 1805 | { |
| 1806 | if (i > 0 && spec->features[0]) | 1806 | if (i > 0 && spec->features[0]) |
| @@ -1940,9 +1940,9 @@ macfont_create_attributes_with_spec (Lisp_Object spec) | |||
| 1940 | { | 1940 | { |
| 1941 | UniChar unichars[2]; | 1941 | UniChar unichars[2]; |
| 1942 | CFIndex count = | 1942 | CFIndex count = |
| 1943 | macfont_store_utf32char_to_unichars (XFASTINT (XCAR (chars)), | 1943 | macfont_store_utf32char_to_unichars (XFIXNAT (XCAR (chars)), |
| 1944 | unichars); | 1944 | unichars); |
| 1945 | CFRange range = CFRangeMake (XFASTINT (XCAR (chars)), 1); | 1945 | CFRange range = CFRangeMake (XFIXNAT (XCAR (chars)), 1); |
| 1946 | 1946 | ||
| 1947 | CFStringAppendCharacters (string, unichars, count); | 1947 | CFStringAppendCharacters (string, unichars, count); |
| 1948 | CFCharacterSetAddCharactersInRange (cs, range); | 1948 | CFCharacterSetAddCharactersInRange (cs, range); |
| @@ -1981,10 +1981,10 @@ macfont_create_attributes_with_spec (Lisp_Object spec) | |||
| 1981 | for (i = 0; i < ARRAYELTS (numeric_traits); i++) | 1981 | for (i = 0; i < ARRAYELTS (numeric_traits); i++) |
| 1982 | { | 1982 | { |
| 1983 | tmp = AREF (spec, numeric_traits[i].index); | 1983 | tmp = AREF (spec, numeric_traits[i].index); |
| 1984 | if (INTEGERP (tmp)) | 1984 | if (FIXNUMP (tmp)) |
| 1985 | { | 1985 | { |
| 1986 | CGPoint *point = numeric_traits[i].points; | 1986 | CGPoint *point = numeric_traits[i].points; |
| 1987 | CGFloat floatval = (XINT (tmp) >> 8); // XXX | 1987 | CGFloat floatval = (XFIXNUM (tmp) >> 8); // XXX |
| 1988 | CFNumberRef num; | 1988 | CFNumberRef num; |
| 1989 | 1989 | ||
| 1990 | while (point->y < floatval) | 1990 | while (point->y < floatval) |
| @@ -2069,9 +2069,9 @@ macfont_supports_charset_and_languages_p (CTFontDescriptorRef desc, | |||
| 2069 | ptrdiff_t j; | 2069 | ptrdiff_t j; |
| 2070 | 2070 | ||
| 2071 | for (j = 0; j < ASIZE (chars); j++) | 2071 | for (j = 0; j < ASIZE (chars); j++) |
| 2072 | if (TYPE_RANGED_INTEGERP (UTF32Char, AREF (chars, j)) | 2072 | if (TYPE_RANGED_FIXNUMP (UTF32Char, AREF (chars, j)) |
| 2073 | && CFCharacterSetIsLongCharacterMember (desc_charset, | 2073 | && CFCharacterSetIsLongCharacterMember (desc_charset, |
| 2074 | XFASTINT (AREF (chars, j)))) | 2074 | XFIXNAT (AREF (chars, j)))) |
| 2075 | break; | 2075 | break; |
| 2076 | if (j == ASIZE (chars)) | 2076 | if (j == ASIZE (chars)) |
| 2077 | result = false; | 2077 | result = false; |
| @@ -2161,8 +2161,8 @@ macfont_list (struct frame *f, Lisp_Object spec) | |||
| 2161 | 2161 | ||
| 2162 | languages = CFDictionaryGetValue (attributes, kCTFontLanguagesAttribute); | 2162 | languages = CFDictionaryGetValue (attributes, kCTFontLanguagesAttribute); |
| 2163 | 2163 | ||
| 2164 | if (INTEGERP (AREF (spec, FONT_SPACING_INDEX))) | 2164 | if (FIXNUMP (AREF (spec, FONT_SPACING_INDEX))) |
| 2165 | spacing = XINT (AREF (spec, FONT_SPACING_INDEX)); | 2165 | spacing = XFIXNUM (AREF (spec, FONT_SPACING_INDEX)); |
| 2166 | 2166 | ||
| 2167 | traits = ((CFMutableDictionaryRef) | 2167 | traits = ((CFMutableDictionaryRef) |
| 2168 | CFDictionaryGetValue (attributes, kCTFontTraitsAttribute)); | 2168 | CFDictionaryGetValue (attributes, kCTFontTraitsAttribute)); |
| @@ -2532,9 +2532,9 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) | |||
| 2532 | || ! CONSP (XCDR (val))) | 2532 | || ! CONSP (XCDR (val))) |
| 2533 | return Qnil; | 2533 | return Qnil; |
| 2534 | font_name = xmint_pointer (XCAR (XCDR (val))); | 2534 | font_name = xmint_pointer (XCAR (XCDR (val))); |
| 2535 | sym_traits = XINT (XCDR (XCDR (val))); | 2535 | sym_traits = XFIXNUM (XCDR (XCDR (val))); |
| 2536 | 2536 | ||
| 2537 | size = XINT (AREF (entity, FONT_SIZE_INDEX)); | 2537 | size = XFIXNUM (AREF (entity, FONT_SIZE_INDEX)); |
| 2538 | if (size == 0) | 2538 | if (size == 0) |
| 2539 | size = pixel_size; | 2539 | size = pixel_size; |
| 2540 | 2540 | ||
| @@ -2563,7 +2563,7 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) | |||
| 2563 | macfont_info->cgfont = CTFontCopyGraphicsFont (macfont, NULL); | 2563 | macfont_info->cgfont = CTFontCopyGraphicsFont (macfont, NULL); |
| 2564 | 2564 | ||
| 2565 | val = assq_no_quit (QCdestination, AREF (entity, FONT_EXTRA_INDEX)); | 2565 | val = assq_no_quit (QCdestination, AREF (entity, FONT_EXTRA_INDEX)); |
| 2566 | if (CONSP (val) && EQ (XCDR (val), make_number (1))) | 2566 | if (CONSP (val) && EQ (XCDR (val), make_fixnum (1))) |
| 2567 | macfont_info->screen_font = mac_screen_font_create_with_name (font_name, | 2567 | macfont_info->screen_font = mac_screen_font_create_with_name (font_name, |
| 2568 | size); | 2568 | size); |
| 2569 | else | 2569 | else |
| @@ -2584,8 +2584,8 @@ macfont_open (struct frame * f, Lisp_Object entity, int pixel_size) | |||
| 2584 | macfont_info->synthetic_bold_p = 1; | 2584 | macfont_info->synthetic_bold_p = 1; |
| 2585 | if (sym_traits & kCTFontTraitMonoSpace) | 2585 | if (sym_traits & kCTFontTraitMonoSpace) |
| 2586 | macfont_info->spacing = MACFONT_SPACING_MONO; | 2586 | macfont_info->spacing = MACFONT_SPACING_MONO; |
| 2587 | else if (INTEGERP (AREF (entity, FONT_SPACING_INDEX)) | 2587 | else if (FIXNUMP (AREF (entity, FONT_SPACING_INDEX)) |
| 2588 | && (XINT (AREF (entity, FONT_SPACING_INDEX)) | 2588 | && (XFIXNUM (AREF (entity, FONT_SPACING_INDEX)) |
| 2589 | == FONT_SPACING_SYNTHETIC_MONO)) | 2589 | == FONT_SPACING_SYNTHETIC_MONO)) |
| 2590 | macfont_info->spacing = MACFONT_SPACING_SYNTHETIC_MONO; | 2590 | macfont_info->spacing = MACFONT_SPACING_SYNTHETIC_MONO; |
| 2591 | if (macfont_info->synthetic_italic_p || macfont_info->synthetic_bold_p) | 2591 | if (macfont_info->synthetic_italic_p || macfont_info->synthetic_bold_p) |
| @@ -2992,7 +2992,7 @@ macfont_shape (Lisp_Object lgstring) | |||
| 2992 | 2992 | ||
| 2993 | if (NILP (lglyph)) | 2993 | if (NILP (lglyph)) |
| 2994 | { | 2994 | { |
| 2995 | lglyph = Fmake_vector (make_number (LGLYPH_SIZE), Qnil); | 2995 | lglyph = Fmake_vector (make_fixnum (LGLYPH_SIZE), Qnil); |
| 2996 | LGSTRING_SET_GLYPH (lgstring, i, lglyph); | 2996 | LGSTRING_SET_GLYPH (lgstring, i, lglyph); |
| 2997 | } | 2997 | } |
| 2998 | 2998 | ||
| @@ -3046,17 +3046,17 @@ macfont_shape (Lisp_Object lgstring) | |||
| 3046 | { | 3046 | { |
| 3047 | Lisp_Object vec; | 3047 | Lisp_Object vec; |
| 3048 | 3048 | ||
| 3049 | vec = Fmake_vector (make_number (3), Qnil); | 3049 | vec = Fmake_vector (make_fixnum (3), Qnil); |
| 3050 | ASET (vec, 0, make_number (xoff)); | 3050 | ASET (vec, 0, make_fixnum (xoff)); |
| 3051 | ASET (vec, 1, make_number (yoff)); | 3051 | ASET (vec, 1, make_fixnum (yoff)); |
| 3052 | ASET (vec, 2, make_number (wadjust)); | 3052 | ASET (vec, 2, make_fixnum (wadjust)); |
| 3053 | LGLYPH_SET_ADJUSTMENT (lglyph, vec); | 3053 | LGLYPH_SET_ADJUSTMENT (lglyph, vec); |
| 3054 | } | 3054 | } |
| 3055 | } | 3055 | } |
| 3056 | 3056 | ||
| 3057 | unblock_input (); | 3057 | unblock_input (); |
| 3058 | 3058 | ||
| 3059 | return make_number (used); | 3059 | return make_fixnum (used); |
| 3060 | } | 3060 | } |
| 3061 | 3061 | ||
| 3062 | /* Structures for the UVS subtable (format 14) in the cmap table. */ | 3062 | /* Structures for the UVS subtable (format 14) in the cmap table. */ |
diff --git a/src/nsfns.m b/src/nsfns.m index 9ff7e88a8d4..527dd77dc2d 100644 --- a/src/nsfns.m +++ b/src/nsfns.m | |||
| @@ -209,7 +209,7 @@ interpret_services_menu (NSMenu *menu, Lisp_Object prefix, Lisp_Object old) | |||
| 209 | if (keys && [keys length] ) | 209 | if (keys && [keys length] ) |
| 210 | { | 210 | { |
| 211 | key = [keys characterAtIndex: 0]; | 211 | key = [keys characterAtIndex: 0]; |
| 212 | res = make_number (key|super_modifier); | 212 | res = make_fixnum (key|super_modifier); |
| 213 | } | 213 | } |
| 214 | else | 214 | else |
| 215 | { | 215 | { |
| @@ -589,8 +589,8 @@ x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 589 | if (FRAME_MINIBUF_ONLY_P (f)) | 589 | if (FRAME_MINIBUF_ONLY_P (f)) |
| 590 | return; | 590 | return; |
| 591 | 591 | ||
| 592 | if (TYPE_RANGED_INTEGERP (int, value)) | 592 | if (TYPE_RANGED_FIXNUMP (int, value)) |
| 593 | nlines = XINT (value); | 593 | nlines = XFIXNUM (value); |
| 594 | else | 594 | else |
| 595 | nlines = 0; | 595 | nlines = 0; |
| 596 | 596 | ||
| @@ -627,8 +627,8 @@ x_set_tool_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | |||
| 627 | if (FRAME_MINIBUF_ONLY_P (f)) | 627 | if (FRAME_MINIBUF_ONLY_P (f)) |
| 628 | return; | 628 | return; |
| 629 | 629 | ||
| 630 | if (RANGED_INTEGERP (0, value, INT_MAX)) | 630 | if (RANGED_FIXNUMP (0, value, INT_MAX)) |
| 631 | nlines = XFASTINT (value); | 631 | nlines = XFIXNAT (value); |
| 632 | else | 632 | else |
| 633 | nlines = 0; | 633 | nlines = 0; |
| 634 | 634 | ||
| @@ -686,7 +686,7 @@ x_set_internal_border_width (struct frame *f, Lisp_Object arg, Lisp_Object oldva | |||
| 686 | int old_width = FRAME_INTERNAL_BORDER_WIDTH (f); | 686 | int old_width = FRAME_INTERNAL_BORDER_WIDTH (f); |
| 687 | 687 | ||
| 688 | CHECK_TYPE_RANGED_INTEGER (int, arg); | 688 | CHECK_TYPE_RANGED_INTEGER (int, arg); |
| 689 | f->internal_border_width = XINT (arg); | 689 | f->internal_border_width = XFIXNUM (arg); |
| 690 | if (FRAME_INTERNAL_BORDER_WIDTH (f) < 0) | 690 | if (FRAME_INTERNAL_BORDER_WIDTH (f) < 0) |
| 691 | f->internal_border_width = 0; | 691 | f->internal_border_width = 0; |
| 692 | 692 | ||
| @@ -884,10 +884,10 @@ x_icon (struct frame *f, Lisp_Object parms) | |||
| 884 | icon_y = x_get_arg (dpyinfo, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); | 884 | icon_y = x_get_arg (dpyinfo, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER); |
| 885 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) | 885 | if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound)) |
| 886 | { | 886 | { |
| 887 | CHECK_NUMBER (icon_x); | 887 | CHECK_FIXNUM (icon_x); |
| 888 | CHECK_NUMBER (icon_y); | 888 | CHECK_FIXNUM (icon_y); |
| 889 | f->output_data.ns->icon_top = XINT (icon_y); | 889 | f->output_data.ns->icon_top = XFIXNUM (icon_y); |
| 890 | f->output_data.ns->icon_left = XINT (icon_x); | 890 | f->output_data.ns->icon_left = XFIXNUM (icon_x); |
| 891 | } | 891 | } |
| 892 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) | 892 | else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound)) |
| 893 | error ("Both left and top icon corners of icon must be specified"); | 893 | error ("Both left and top icon corners of icon must be specified"); |
| @@ -1086,7 +1086,7 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1086 | if (EQ (parent, Qunbound)) | 1086 | if (EQ (parent, Qunbound)) |
| 1087 | parent = Qnil; | 1087 | parent = Qnil; |
| 1088 | if (! NILP (parent)) | 1088 | if (! NILP (parent)) |
| 1089 | CHECK_NUMBER (parent); | 1089 | CHECK_FIXNUM (parent); |
| 1090 | 1090 | ||
| 1091 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ | 1091 | /* make_frame_without_minibuffer can run Lisp code and garbage collect. */ |
| 1092 | /* No need to protect DISPLAY because that's not used after passing | 1092 | /* No need to protect DISPLAY because that's not used after passing |
| @@ -1127,9 +1127,9 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1127 | record_unwind_protect (unwind_create_frame, frame); | 1127 | record_unwind_protect (unwind_create_frame, frame); |
| 1128 | 1128 | ||
| 1129 | f->output_data.ns->window_desc = desc_ctr++; | 1129 | f->output_data.ns->window_desc = desc_ctr++; |
| 1130 | if (TYPE_RANGED_INTEGERP (Window, parent)) | 1130 | if (TYPE_RANGED_FIXNUMP (Window, parent)) |
| 1131 | { | 1131 | { |
| 1132 | f->output_data.ns->parent_desc = XFASTINT (parent); | 1132 | f->output_data.ns->parent_desc = XFIXNAT (parent); |
| 1133 | f->output_data.ns->explicit_parent = 1; | 1133 | f->output_data.ns->explicit_parent = 1; |
| 1134 | } | 1134 | } |
| 1135 | else | 1135 | else |
| @@ -1170,7 +1170,7 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1170 | /* use for default font name */ | 1170 | /* use for default font name */ |
| 1171 | id font = [NSFont userFixedPitchFontOfSize: -1.0]; /* default */ | 1171 | id font = [NSFont userFixedPitchFontOfSize: -1.0]; /* default */ |
| 1172 | x_default_parameter (f, parms, Qfontsize, | 1172 | x_default_parameter (f, parms, Qfontsize, |
| 1173 | make_number (0 /* (int)[font pointSize] */), | 1173 | make_fixnum (0 /* (int)[font pointSize] */), |
| 1174 | "fontSize", "FontSize", RES_TYPE_NUMBER); | 1174 | "fontSize", "FontSize", RES_TYPE_NUMBER); |
| 1175 | // Remove ' Regular', not handled by backends. | 1175 | // Remove ' Regular', not handled by backends. |
| 1176 | char *fontname = xstrdup ([[font displayName] UTF8String]); | 1176 | char *fontname = xstrdup ([[font displayName] UTF8String]); |
| @@ -1184,14 +1184,14 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1184 | } | 1184 | } |
| 1185 | unblock_input (); | 1185 | unblock_input (); |
| 1186 | 1186 | ||
| 1187 | x_default_parameter (f, parms, Qborder_width, make_number (0), | 1187 | x_default_parameter (f, parms, Qborder_width, make_fixnum (0), |
| 1188 | "borderwidth", "BorderWidth", RES_TYPE_NUMBER); | 1188 | "borderwidth", "BorderWidth", RES_TYPE_NUMBER); |
| 1189 | x_default_parameter (f, parms, Qinternal_border_width, make_number (2), | 1189 | x_default_parameter (f, parms, Qinternal_border_width, make_fixnum (2), |
| 1190 | "internalBorderWidth", "InternalBorderWidth", | 1190 | "internalBorderWidth", "InternalBorderWidth", |
| 1191 | RES_TYPE_NUMBER); | 1191 | RES_TYPE_NUMBER); |
| 1192 | x_default_parameter (f, parms, Qright_divider_width, make_number (0), | 1192 | x_default_parameter (f, parms, Qright_divider_width, make_fixnum (0), |
| 1193 | NULL, NULL, RES_TYPE_NUMBER); | 1193 | NULL, NULL, RES_TYPE_NUMBER); |
| 1194 | x_default_parameter (f, parms, Qbottom_divider_width, make_number (0), | 1194 | x_default_parameter (f, parms, Qbottom_divider_width, make_fixnum (0), |
| 1195 | NULL, NULL, RES_TYPE_NUMBER); | 1195 | NULL, NULL, RES_TYPE_NUMBER); |
| 1196 | 1196 | ||
| 1197 | /* default vertical scrollbars on right on Mac */ | 1197 | /* default vertical scrollbars on right on Mac */ |
| @@ -1226,10 +1226,10 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1226 | 1226 | ||
| 1227 | /* Read comment about this code in corresponding place in xfns.c. */ | 1227 | /* Read comment about this code in corresponding place in xfns.c. */ |
| 1228 | tem = x_get_arg (dpyinfo, parms, Qmin_width, NULL, NULL, RES_TYPE_NUMBER); | 1228 | tem = x_get_arg (dpyinfo, parms, Qmin_width, NULL, NULL, RES_TYPE_NUMBER); |
| 1229 | if (NUMBERP (tem)) | 1229 | if (FIXED_OR_FLOATP (tem)) |
| 1230 | store_frame_param (f, Qmin_width, tem); | 1230 | store_frame_param (f, Qmin_width, tem); |
| 1231 | tem = x_get_arg (dpyinfo, parms, Qmin_height, NULL, NULL, RES_TYPE_NUMBER); | 1231 | tem = x_get_arg (dpyinfo, parms, Qmin_height, NULL, NULL, RES_TYPE_NUMBER); |
| 1232 | if (NUMBERP (tem)) | 1232 | if (FIXED_OR_FLOATP (tem)) |
| 1233 | store_frame_param (f, Qmin_height, tem); | 1233 | store_frame_param (f, Qmin_height, tem); |
| 1234 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), | 1234 | adjust_frame_size (f, FRAME_COLS (f) * FRAME_COLUMN_WIDTH (f), |
| 1235 | FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1, | 1235 | FRAME_LINES (f) * FRAME_LINE_HEIGHT (f), 5, 1, |
| @@ -1275,11 +1275,11 @@ DEFUN ("x-create-frame", Fx_create_frame, Sx_create_frame, | |||
| 1275 | variables; ignore them here. */ | 1275 | variables; ignore them here. */ |
| 1276 | x_default_parameter (f, parms, Qmenu_bar_lines, | 1276 | x_default_parameter (f, parms, Qmenu_bar_lines, |
| 1277 | NILP (Vmenu_bar_mode) | 1277 | NILP (Vmenu_bar_mode) |
| 1278 | ? make_number (0) : make_number (1), | 1278 | ? make_fixnum (0) : make_fixnum (1), |
| 1279 | NULL, NULL, RES_TYPE_NUMBER); | 1279 | NULL, NULL, RES_TYPE_NUMBER); |
| 1280 | x_default_parameter (f, parms, Qtool_bar_lines, | 1280 | x_default_parameter (f, parms, Qtool_bar_lines, |
| 1281 | NILP (Vtool_bar_mode) | 1281 | NILP (Vtool_bar_mode) |
| 1282 | ? make_number (0) : make_number (1), | 1282 | ? make_fixnum (0) : make_fixnum (1), |
| 1283 | NULL, NULL, RES_TYPE_NUMBER); | 1283 | NULL, NULL, RES_TYPE_NUMBER); |
| 1284 | 1284 | ||
| 1285 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, "bufferPredicate", | 1285 | x_default_parameter (f, parms, Qbuffer_predicate, Qnil, "bufferPredicate", |
| @@ -1781,7 +1781,7 @@ DEFUN ("x-display-screens", Fx_display_screens, Sx_display_screens, 0, 1, 0, | |||
| 1781 | (Lisp_Object terminal) | 1781 | (Lisp_Object terminal) |
| 1782 | { | 1782 | { |
| 1783 | check_ns_display_info (terminal); | 1783 | check_ns_display_info (terminal); |
| 1784 | return make_number (1); | 1784 | return make_fixnum (1); |
| 1785 | } | 1785 | } |
| 1786 | 1786 | ||
| 1787 | 1787 | ||
| @@ -1791,7 +1791,7 @@ DEFUN ("x-display-mm-height", Fx_display_mm_height, Sx_display_mm_height, 0, 1, | |||
| 1791 | { | 1791 | { |
| 1792 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); | 1792 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); |
| 1793 | 1793 | ||
| 1794 | return make_number (x_display_pixel_height (dpyinfo) / (92.0/25.4)); | 1794 | return make_fixnum (x_display_pixel_height (dpyinfo) / (92.0/25.4)); |
| 1795 | } | 1795 | } |
| 1796 | 1796 | ||
| 1797 | 1797 | ||
| @@ -1801,7 +1801,7 @@ DEFUN ("x-display-mm-width", Fx_display_mm_width, Sx_display_mm_width, 0, 1, 0, | |||
| 1801 | { | 1801 | { |
| 1802 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); | 1802 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); |
| 1803 | 1803 | ||
| 1804 | return make_number (x_display_pixel_width (dpyinfo) / (92.0/25.4)); | 1804 | return make_fixnum (x_display_pixel_width (dpyinfo) / (92.0/25.4)); |
| 1805 | } | 1805 | } |
| 1806 | 1806 | ||
| 1807 | 1807 | ||
| @@ -2135,7 +2135,7 @@ ns_do_applescript (Lisp_Object script, Lisp_Object *result) | |||
| 2135 | // coerce the result to the appropriate ObjC type | 2135 | // coerce the result to the appropriate ObjC type |
| 2136 | desc = [returnDescriptor coerceToDescriptorType: typeUTF8Text]; | 2136 | desc = [returnDescriptor coerceToDescriptorType: typeUTF8Text]; |
| 2137 | if (desc) | 2137 | if (desc) |
| 2138 | *result = make_number([desc int32Value]); | 2138 | *result = make_fixnum([desc int32Value]); |
| 2139 | } | 2139 | } |
| 2140 | } | 2140 | } |
| 2141 | } | 2141 | } |
| @@ -2362,7 +2362,7 @@ DEFUN ("x-display-pixel-width", Fx_display_pixel_width, Sx_display_pixel_width, | |||
| 2362 | { | 2362 | { |
| 2363 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); | 2363 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); |
| 2364 | 2364 | ||
| 2365 | return make_number (x_display_pixel_width (dpyinfo)); | 2365 | return make_fixnum (x_display_pixel_width (dpyinfo)); |
| 2366 | } | 2366 | } |
| 2367 | 2367 | ||
| 2368 | 2368 | ||
| @@ -2373,7 +2373,7 @@ DEFUN ("x-display-pixel-height", Fx_display_pixel_height, | |||
| 2373 | { | 2373 | { |
| 2374 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); | 2374 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); |
| 2375 | 2375 | ||
| 2376 | return make_number (x_display_pixel_height (dpyinfo)); | 2376 | return make_fixnum (x_display_pixel_height (dpyinfo)); |
| 2377 | } | 2377 | } |
| 2378 | 2378 | ||
| 2379 | #ifdef NS_IMPL_COCOA | 2379 | #ifdef NS_IMPL_COCOA |
| @@ -2476,7 +2476,7 @@ ns_make_monitor_attribute_list (struct MonitorInfo *monitors, | |||
| 2476 | int primary_monitor, | 2476 | int primary_monitor, |
| 2477 | const char *source) | 2477 | const char *source) |
| 2478 | { | 2478 | { |
| 2479 | Lisp_Object monitor_frames = Fmake_vector (make_number (n_monitors), Qnil); | 2479 | Lisp_Object monitor_frames = Fmake_vector (make_fixnum (n_monitors), Qnil); |
| 2480 | Lisp_Object frame, rest; | 2480 | Lisp_Object frame, rest; |
| 2481 | NSArray *screens = [NSScreen screens]; | 2481 | NSArray *screens = [NSScreen screens]; |
| 2482 | int i; | 2482 | int i; |
| @@ -2617,7 +2617,7 @@ DEFUN ("x-display-planes", Fx_display_planes, Sx_display_planes, | |||
| 2617 | (Lisp_Object terminal) | 2617 | (Lisp_Object terminal) |
| 2618 | { | 2618 | { |
| 2619 | check_ns_display_info (terminal); | 2619 | check_ns_display_info (terminal); |
| 2620 | return make_number | 2620 | return make_fixnum |
| 2621 | (NSBitsPerPixelFromDepth ([[[NSScreen screens] objectAtIndex:0] depth])); | 2621 | (NSBitsPerPixelFromDepth ([[[NSScreen screens] objectAtIndex:0] depth])); |
| 2622 | } | 2622 | } |
| 2623 | 2623 | ||
| @@ -2629,7 +2629,7 @@ DEFUN ("x-display-color-cells", Fx_display_color_cells, Sx_display_color_cells, | |||
| 2629 | { | 2629 | { |
| 2630 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); | 2630 | struct ns_display_info *dpyinfo = check_ns_display_info (terminal); |
| 2631 | /* We force 24+ bit depths to 24-bit to prevent an overflow. */ | 2631 | /* We force 24+ bit depths to 24-bit to prevent an overflow. */ |
| 2632 | return make_number (1 << min (dpyinfo->n_planes, 24)); | 2632 | return make_fixnum (1 << min (dpyinfo->n_planes, 24)); |
| 2633 | } | 2633 | } |
| 2634 | 2634 | ||
| 2635 | /* TODO: move to xdisp or similar */ | 2635 | /* TODO: move to xdisp or similar */ |
| @@ -2653,15 +2653,15 @@ compute_tip_xy (struct frame *f, | |||
| 2653 | right = Fcdr (Fassq (Qright, parms)); | 2653 | right = Fcdr (Fassq (Qright, parms)); |
| 2654 | bottom = Fcdr (Fassq (Qbottom, parms)); | 2654 | bottom = Fcdr (Fassq (Qbottom, parms)); |
| 2655 | 2655 | ||
| 2656 | if ((!INTEGERP (left) && !INTEGERP (right)) | 2656 | if ((!FIXNUMP (left) && !FIXNUMP (right)) |
| 2657 | || (!INTEGERP (top) && !INTEGERP (bottom))) | 2657 | || (!FIXNUMP (top) && !FIXNUMP (bottom))) |
| 2658 | pt = [NSEvent mouseLocation]; | 2658 | pt = [NSEvent mouseLocation]; |
| 2659 | else | 2659 | else |
| 2660 | { | 2660 | { |
| 2661 | /* Absolute coordinates. */ | 2661 | /* Absolute coordinates. */ |
| 2662 | pt.x = INTEGERP (left) ? XINT (left) : XINT (right); | 2662 | pt.x = FIXNUMP (left) ? XFIXNUM (left) : XFIXNUM (right); |
| 2663 | pt.y = (x_display_pixel_height (FRAME_DISPLAY_INFO (f)) | 2663 | pt.y = (x_display_pixel_height (FRAME_DISPLAY_INFO (f)) |
| 2664 | - (INTEGERP (top) ? XINT (top) : XINT (bottom)) | 2664 | - (FIXNUMP (top) ? XFIXNUM (top) : XFIXNUM (bottom)) |
| 2665 | - height); | 2665 | - height); |
| 2666 | } | 2666 | } |
| 2667 | 2667 | ||
| @@ -2681,30 +2681,30 @@ compute_tip_xy (struct frame *f, | |||
| 2681 | versions of macOS and in GNUstep. */ | 2681 | versions of macOS and in GNUstep. */ |
| 2682 | 2682 | ||
| 2683 | /* Ensure in bounds. (Note, screen origin = lower left.) */ | 2683 | /* Ensure in bounds. (Note, screen origin = lower left.) */ |
| 2684 | if (INTEGERP (left) || INTEGERP (right)) | 2684 | if (FIXNUMP (left) || FIXNUMP (right)) |
| 2685 | *root_x = pt.x; | 2685 | *root_x = pt.x; |
| 2686 | else if (pt.x + XINT (dx) <= screen.frame.origin.x) | 2686 | else if (pt.x + XFIXNUM (dx) <= screen.frame.origin.x) |
| 2687 | *root_x = screen.frame.origin.x; | 2687 | *root_x = screen.frame.origin.x; |
| 2688 | else if (pt.x + XINT (dx) + width | 2688 | else if (pt.x + XFIXNUM (dx) + width |
| 2689 | <= screen.frame.origin.x + screen.frame.size.width) | 2689 | <= screen.frame.origin.x + screen.frame.size.width) |
| 2690 | /* It fits to the right of the pointer. */ | 2690 | /* It fits to the right of the pointer. */ |
| 2691 | *root_x = pt.x + XINT (dx); | 2691 | *root_x = pt.x + XFIXNUM (dx); |
| 2692 | else if (width + XINT (dx) <= pt.x) | 2692 | else if (width + XFIXNUM (dx) <= pt.x) |
| 2693 | /* It fits to the left of the pointer. */ | 2693 | /* It fits to the left of the pointer. */ |
| 2694 | *root_x = pt.x - width - XINT (dx); | 2694 | *root_x = pt.x - width - XFIXNUM (dx); |
| 2695 | else | 2695 | else |
| 2696 | /* Put it left justified on the screen -- it ought to fit that way. */ | 2696 | /* Put it left justified on the screen -- it ought to fit that way. */ |
| 2697 | *root_x = screen.frame.origin.x; | 2697 | *root_x = screen.frame.origin.x; |
| 2698 | 2698 | ||
| 2699 | if (INTEGERP (top) || INTEGERP (bottom)) | 2699 | if (FIXNUMP (top) || FIXNUMP (bottom)) |
| 2700 | *root_y = pt.y; | 2700 | *root_y = pt.y; |
| 2701 | else if (pt.y - XINT (dy) - height >= screen.frame.origin.y) | 2701 | else if (pt.y - XFIXNUM (dy) - height >= screen.frame.origin.y) |
| 2702 | /* It fits below the pointer. */ | 2702 | /* It fits below the pointer. */ |
| 2703 | *root_y = pt.y - height - XINT (dy); | 2703 | *root_y = pt.y - height - XFIXNUM (dy); |
| 2704 | else if (pt.y + XINT (dy) + height | 2704 | else if (pt.y + XFIXNUM (dy) + height |
| 2705 | <= screen.frame.origin.y + screen.frame.size.height) | 2705 | <= screen.frame.origin.y + screen.frame.size.height) |
| 2706 | /* It fits above the pointer. */ | 2706 | /* It fits above the pointer. */ |
| 2707 | *root_y = pt.y + XINT (dy); | 2707 | *root_y = pt.y + XFIXNUM (dy); |
| 2708 | else | 2708 | else |
| 2709 | /* Put it on the top. */ | 2709 | /* Put it on the top. */ |
| 2710 | *root_y = screen.frame.origin.y + screen.frame.size.height - height; | 2710 | *root_y = screen.frame.origin.y + screen.frame.size.height - height; |
| @@ -2729,19 +2729,19 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, | |||
| 2729 | str = SSDATA (string); | 2729 | str = SSDATA (string); |
| 2730 | f = decode_window_system_frame (frame); | 2730 | f = decode_window_system_frame (frame); |
| 2731 | if (NILP (timeout)) | 2731 | if (NILP (timeout)) |
| 2732 | timeout = make_number (5); | 2732 | timeout = make_fixnum (5); |
| 2733 | else | 2733 | else |
| 2734 | CHECK_NATNUM (timeout); | 2734 | CHECK_FIXNAT (timeout); |
| 2735 | 2735 | ||
| 2736 | if (NILP (dx)) | 2736 | if (NILP (dx)) |
| 2737 | dx = make_number (5); | 2737 | dx = make_fixnum (5); |
| 2738 | else | 2738 | else |
| 2739 | CHECK_NUMBER (dx); | 2739 | CHECK_FIXNUM (dx); |
| 2740 | 2740 | ||
| 2741 | if (NILP (dy)) | 2741 | if (NILP (dy)) |
| 2742 | dy = make_number (-10); | 2742 | dy = make_fixnum (-10); |
| 2743 | else | 2743 | else |
| 2744 | CHECK_NUMBER (dy); | 2744 | CHECK_FIXNUM (dy); |
| 2745 | 2745 | ||
| 2746 | block_input (); | 2746 | block_input (); |
| 2747 | if (ns_tooltip == nil) | 2747 | if (ns_tooltip == nil) |
| @@ -2765,7 +2765,7 @@ DEFUN ("x-show-tip", Fx_show_tip, Sx_show_tip, 1, 6, 0, | |||
| 2765 | compute_tip_xy (f, parms, dx, dy, (int)size.width, (int)size.height, | 2765 | compute_tip_xy (f, parms, dx, dy, (int)size.width, (int)size.height, |
| 2766 | &root_x, &root_y); | 2766 | &root_x, &root_y); |
| 2767 | 2767 | ||
| 2768 | [ns_tooltip showAtX: root_x Y: root_y for: XINT (timeout)]; | 2768 | [ns_tooltip showAtX: root_x Y: root_y for: XFIXNUM (timeout)]; |
| 2769 | unblock_input (); | 2769 | unblock_input (); |
| 2770 | 2770 | ||
| 2771 | return unbind_to (count, Qnil); | 2771 | return unbind_to (count, Qnil); |
| @@ -2812,44 +2812,44 @@ frame_geometry (Lisp_Object frame, Lisp_Object attribute) | |||
| 2812 | 2812 | ||
| 2813 | /* Construct list. */ | 2813 | /* Construct list. */ |
| 2814 | if (EQ (attribute, Qouter_edges)) | 2814 | if (EQ (attribute, Qouter_edges)) |
| 2815 | return list4 (make_number (f->left_pos), make_number (f->top_pos), | 2815 | return list4 (make_fixnum (f->left_pos), make_fixnum (f->top_pos), |
| 2816 | make_number (f->left_pos + outer_width), | 2816 | make_fixnum (f->left_pos + outer_width), |
| 2817 | make_number (f->top_pos + outer_height)); | 2817 | make_fixnum (f->top_pos + outer_height)); |
| 2818 | else if (EQ (attribute, Qnative_edges)) | 2818 | else if (EQ (attribute, Qnative_edges)) |
| 2819 | return list4 (make_number (native_left), make_number (native_top), | 2819 | return list4 (make_fixnum (native_left), make_fixnum (native_top), |
| 2820 | make_number (native_right), make_number (native_bottom)); | 2820 | make_fixnum (native_right), make_fixnum (native_bottom)); |
| 2821 | else if (EQ (attribute, Qinner_edges)) | 2821 | else if (EQ (attribute, Qinner_edges)) |
| 2822 | return list4 (make_number (native_left + internal_border_width), | 2822 | return list4 (make_fixnum (native_left + internal_border_width), |
| 2823 | make_number (native_top | 2823 | make_fixnum (native_top |
| 2824 | + tool_bar_height | 2824 | + tool_bar_height |
| 2825 | + internal_border_width), | 2825 | + internal_border_width), |
| 2826 | make_number (native_right - internal_border_width), | 2826 | make_fixnum (native_right - internal_border_width), |
| 2827 | make_number (native_bottom - internal_border_width)); | 2827 | make_fixnum (native_bottom - internal_border_width)); |
| 2828 | else | 2828 | else |
| 2829 | return | 2829 | return |
| 2830 | listn (CONSTYPE_HEAP, 10, | 2830 | listn (CONSTYPE_HEAP, 10, |
| 2831 | Fcons (Qouter_position, | 2831 | Fcons (Qouter_position, |
| 2832 | Fcons (make_number (f->left_pos), | 2832 | Fcons (make_fixnum (f->left_pos), |
| 2833 | make_number (f->top_pos))), | 2833 | make_fixnum (f->top_pos))), |
| 2834 | Fcons (Qouter_size, | 2834 | Fcons (Qouter_size, |
| 2835 | Fcons (make_number (outer_width), | 2835 | Fcons (make_fixnum (outer_width), |
| 2836 | make_number (outer_height))), | 2836 | make_fixnum (outer_height))), |
| 2837 | Fcons (Qexternal_border_size, | 2837 | Fcons (Qexternal_border_size, |
| 2838 | (fullscreen | 2838 | (fullscreen |
| 2839 | ? Fcons (make_number (0), make_number (0)) | 2839 | ? Fcons (make_fixnum (0), make_fixnum (0)) |
| 2840 | : Fcons (make_number (border), make_number (border)))), | 2840 | : Fcons (make_fixnum (border), make_fixnum (border)))), |
| 2841 | Fcons (Qtitle_bar_size, | 2841 | Fcons (Qtitle_bar_size, |
| 2842 | Fcons (make_number (0), make_number (title_height))), | 2842 | Fcons (make_fixnum (0), make_fixnum (title_height))), |
| 2843 | Fcons (Qmenu_bar_external, Qnil), | 2843 | Fcons (Qmenu_bar_external, Qnil), |
| 2844 | Fcons (Qmenu_bar_size, Fcons (make_number (0), make_number (0))), | 2844 | Fcons (Qmenu_bar_size, Fcons (make_fixnum (0), make_fixnum (0))), |
| 2845 | Fcons (Qtool_bar_external, | 2845 | Fcons (Qtool_bar_external, |
| 2846 | FRAME_EXTERNAL_TOOL_BAR (f) ? Qt : Qnil), | 2846 | FRAME_EXTERNAL_TOOL_BAR (f) ? Qt : Qnil), |
| 2847 | Fcons (Qtool_bar_position, FRAME_TOOL_BAR_POSITION (f)), | 2847 | Fcons (Qtool_bar_position, FRAME_TOOL_BAR_POSITION (f)), |
| 2848 | Fcons (Qtool_bar_size, | 2848 | Fcons (Qtool_bar_size, |
| 2849 | Fcons (make_number (tool_bar_width), | 2849 | Fcons (make_fixnum (tool_bar_width), |
| 2850 | make_number (tool_bar_height))), | 2850 | make_fixnum (tool_bar_height))), |
| 2851 | Fcons (Qinternal_border_width, | 2851 | Fcons (Qinternal_border_width, |
| 2852 | make_number (internal_border_width))); | 2852 | make_fixnum (internal_border_width))); |
| 2853 | } | 2853 | } |
| 2854 | 2854 | ||
| 2855 | DEFUN ("ns-frame-geometry", Fns_frame_geometry, Sns_frame_geometry, 0, 1, 0, | 2855 | DEFUN ("ns-frame-geometry", Fns_frame_geometry, Sns_frame_geometry, 0, 1, 0, |
| @@ -2947,13 +2947,13 @@ The coordinates X and Y are interpreted in pixels relative to a position | |||
| 2947 | CHECK_TYPE_RANGED_INTEGER (int, x); | 2947 | CHECK_TYPE_RANGED_INTEGER (int, x); |
| 2948 | CHECK_TYPE_RANGED_INTEGER (int, y); | 2948 | CHECK_TYPE_RANGED_INTEGER (int, y); |
| 2949 | 2949 | ||
| 2950 | mouse_x = screen_frame.origin.x + XINT (x); | 2950 | mouse_x = screen_frame.origin.x + XFIXNUM (x); |
| 2951 | 2951 | ||
| 2952 | if (screen == primary_screen) | 2952 | if (screen == primary_screen) |
| 2953 | mouse_y = screen_frame.origin.y + XINT (y); | 2953 | mouse_y = screen_frame.origin.y + XFIXNUM (y); |
| 2954 | else | 2954 | else |
| 2955 | mouse_y = (primary_screen_height - screen_frame.size.height | 2955 | mouse_y = (primary_screen_height - screen_frame.size.height |
| 2956 | - screen_frame.origin.y) + XINT (y); | 2956 | - screen_frame.origin.y) + XFIXNUM (y); |
| 2957 | 2957 | ||
| 2958 | CGPoint mouse_pos = CGPointMake(mouse_x, mouse_y); | 2958 | CGPoint mouse_pos = CGPointMake(mouse_x, mouse_y); |
| 2959 | CGWarpMouseCursorPosition (mouse_pos); | 2959 | CGWarpMouseCursorPosition (mouse_pos); |
| @@ -2976,8 +2976,8 @@ position (0, 0) of the selected frame's terminal. */) | |||
| 2976 | NSScreen *screen = [[view window] screen]; | 2976 | NSScreen *screen = [[view window] screen]; |
| 2977 | NSPoint pt = [NSEvent mouseLocation]; | 2977 | NSPoint pt = [NSEvent mouseLocation]; |
| 2978 | 2978 | ||
| 2979 | return Fcons(make_number(pt.x - screen.frame.origin.x), | 2979 | return Fcons(make_fixnum(pt.x - screen.frame.origin.x), |
| 2980 | make_number(screen.frame.size.height - | 2980 | make_fixnum(screen.frame.size.height - |
| 2981 | (pt.y - screen.frame.origin.y))); | 2981 | (pt.y - screen.frame.origin.y))); |
| 2982 | } | 2982 | } |
| 2983 | 2983 | ||
diff --git a/src/nsfont.m b/src/nsfont.m index 232e4962b73..b1ebb53c95d 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -186,24 +186,24 @@ ns_descriptor_to_entity (NSFontDescriptor *desc, | |||
| 186 | FONT_SET_STYLE (font_entity, FONT_WEIGHT_INDEX, | 186 | FONT_SET_STYLE (font_entity, FONT_WEIGHT_INDEX, |
| 187 | traits & NSFontBoldTrait ? Qbold : Qmedium); | 187 | traits & NSFontBoldTrait ? Qbold : Qmedium); |
| 188 | /* FONT_SET_STYLE (font_entity, FONT_WEIGHT_INDEX, | 188 | /* FONT_SET_STYLE (font_entity, FONT_WEIGHT_INDEX, |
| 189 | make_number (100 + 100 | 189 | make_fixnum (100 + 100 |
| 190 | * ns_attribute_fvalue (desc, NSFontWeightTrait)));*/ | 190 | * ns_attribute_fvalue (desc, NSFontWeightTrait)));*/ |
| 191 | FONT_SET_STYLE (font_entity, FONT_SLANT_INDEX, | 191 | FONT_SET_STYLE (font_entity, FONT_SLANT_INDEX, |
| 192 | traits & NSFontItalicTrait ? Qitalic : Qnormal); | 192 | traits & NSFontItalicTrait ? Qitalic : Qnormal); |
| 193 | /* FONT_SET_STYLE (font_entity, FONT_SLANT_INDEX, | 193 | /* FONT_SET_STYLE (font_entity, FONT_SLANT_INDEX, |
| 194 | make_number (100 + 100 | 194 | make_fixnum (100 + 100 |
| 195 | * ns_attribute_fvalue (desc, NSFontSlantTrait)));*/ | 195 | * ns_attribute_fvalue (desc, NSFontSlantTrait)));*/ |
| 196 | FONT_SET_STYLE (font_entity, FONT_WIDTH_INDEX, | 196 | FONT_SET_STYLE (font_entity, FONT_WIDTH_INDEX, |
| 197 | traits & NSFontCondensedTrait ? Qcondensed : | 197 | traits & NSFontCondensedTrait ? Qcondensed : |
| 198 | traits & NSFontExpandedTrait ? Qexpanded : Qnormal); | 198 | traits & NSFontExpandedTrait ? Qexpanded : Qnormal); |
| 199 | /* FONT_SET_STYLE (font_entity, FONT_WIDTH_INDEX, | 199 | /* FONT_SET_STYLE (font_entity, FONT_WIDTH_INDEX, |
| 200 | make_number (100 + 100 | 200 | make_fixnum (100 + 100 |
| 201 | * ns_attribute_fvalue (desc, NSFontWidthTrait)));*/ | 201 | * ns_attribute_fvalue (desc, NSFontWidthTrait)));*/ |
| 202 | 202 | ||
| 203 | ASET (font_entity, FONT_SIZE_INDEX, make_number (0)); | 203 | ASET (font_entity, FONT_SIZE_INDEX, make_fixnum (0)); |
| 204 | ASET (font_entity, FONT_AVGWIDTH_INDEX, make_number (0)); | 204 | ASET (font_entity, FONT_AVGWIDTH_INDEX, make_fixnum (0)); |
| 205 | ASET (font_entity, FONT_SPACING_INDEX, | 205 | ASET (font_entity, FONT_SPACING_INDEX, |
| 206 | make_number([desc symbolicTraits] & NSFontMonoSpaceTrait | 206 | make_fixnum([desc symbolicTraits] & NSFontMonoSpaceTrait |
| 207 | ? FONT_SPACING_MONO : FONT_SPACING_PROPORTIONAL)); | 207 | ? FONT_SPACING_MONO : FONT_SPACING_PROPORTIONAL)); |
| 208 | 208 | ||
| 209 | ASET (font_entity, FONT_EXTRA_INDEX, extra); | 209 | ASET (font_entity, FONT_EXTRA_INDEX, extra); |
| @@ -445,8 +445,8 @@ static NSCharacterSet | |||
| 445 | { | 445 | { |
| 446 | for (; CONSP (range_list); range_list = XCDR (range_list)) | 446 | for (; CONSP (range_list); range_list = XCDR (range_list)) |
| 447 | { | 447 | { |
| 448 | int start = XINT (XCAR (XCAR (range_list))); | 448 | int start = XFIXNUM (XCAR (XCAR (range_list))); |
| 449 | int end = XINT (XCDR (XCAR (range_list))); | 449 | int end = XFIXNUM (XCDR (XCAR (range_list))); |
| 450 | if (NSFONT_TRACE) | 450 | if (NSFONT_TRACE) |
| 451 | debug_print (XCAR (range_list)); | 451 | debug_print (XCAR (range_list)); |
| 452 | if (end < 0x10000) | 452 | if (end < 0x10000) |
| @@ -576,7 +576,7 @@ ns_findfonts (Lisp_Object font_spec, BOOL isMatch) | |||
| 576 | 576 | ||
| 577 | /* Add synthItal member if needed. */ | 577 | /* Add synthItal member if needed. */ |
| 578 | family = [fdesc objectForKey: NSFontFamilyAttribute]; | 578 | family = [fdesc objectForKey: NSFontFamilyAttribute]; |
| 579 | if (family != nil && !foundItal && XINT (Flength (list)) > 0) | 579 | if (family != nil && !foundItal && XFIXNUM (Flength (list)) > 0) |
| 580 | { | 580 | { |
| 581 | NSFontDescriptor *s1 = [NSFontDescriptor new]; | 581 | NSFontDescriptor *s1 = [NSFontDescriptor new]; |
| 582 | NSFontDescriptor *sDesc | 582 | NSFontDescriptor *sDesc |
| @@ -596,7 +596,7 @@ ns_findfonts (Lisp_Object font_spec, BOOL isMatch) | |||
| 596 | 596 | ||
| 597 | if (NSFONT_TRACE) | 597 | if (NSFONT_TRACE) |
| 598 | fprintf (stderr, " Returning %"pI"d entities.\n", | 598 | fprintf (stderr, " Returning %"pI"d entities.\n", |
| 599 | XINT (Flength (list))); | 599 | XFIXNUM (Flength (list))); |
| 600 | 600 | ||
| 601 | return list; | 601 | return list; |
| 602 | } | 602 | } |
| @@ -668,7 +668,7 @@ nsfont_list_family (struct frame *f) | |||
| 668 | 668 | ||
| 669 | if (NSFONT_TRACE) | 669 | if (NSFONT_TRACE) |
| 670 | fprintf (stderr, "nsfont: list families returning %"pI"d entries\n", | 670 | fprintf (stderr, "nsfont: list families returning %"pI"d entries\n", |
| 671 | XINT (Flength (list))); | 671 | XFIXNUM (Flength (list))); |
| 672 | 672 | ||
| 673 | unblock_input (); | 673 | unblock_input (); |
| 674 | return list; | 674 | return list; |
| @@ -705,7 +705,7 @@ nsfont_open (struct frame *f, Lisp_Object font_entity, int pixel_size) | |||
| 705 | { | 705 | { |
| 706 | /* try to get it out of frame params */ | 706 | /* try to get it out of frame params */ |
| 707 | Lisp_Object tem = get_frame_param (f, Qfontsize); | 707 | Lisp_Object tem = get_frame_param (f, Qfontsize); |
| 708 | pixel_size = NILP (tem) ? 0 : XFASTINT (tem); | 708 | pixel_size = NILP (tem) ? 0 : XFIXNAT (tem); |
| 709 | } | 709 | } |
| 710 | 710 | ||
| 711 | tem = AREF (font_entity, FONT_ADSTYLE_INDEX); | 711 | tem = AREF (font_entity, FONT_ADSTYLE_INDEX); |
diff --git a/src/nsimage.m b/src/nsimage.m index 2cc205a499d..f657c49c0b1 100644 --- a/src/nsimage.m +++ b/src/nsimage.m | |||
| @@ -85,10 +85,10 @@ ns_load_image (struct frame *f, struct image *img, | |||
| 85 | eassert (valid_image_p (img->spec)); | 85 | eassert (valid_image_p (img->spec)); |
| 86 | 86 | ||
| 87 | lisp_index = Fplist_get (XCDR (img->spec), QCindex); | 87 | lisp_index = Fplist_get (XCDR (img->spec), QCindex); |
| 88 | index = INTEGERP (lisp_index) ? XFASTINT (lisp_index) : 0; | 88 | index = FIXNUMP (lisp_index) ? XFIXNAT (lisp_index) : 0; |
| 89 | 89 | ||
| 90 | lisp_rotation = Fplist_get (XCDR (img->spec), QCrotation); | 90 | lisp_rotation = Fplist_get (XCDR (img->spec), QCrotation); |
| 91 | rotation = NUMBERP (lisp_rotation) ? XFLOATINT (lisp_rotation) : 0; | 91 | rotation = FIXED_OR_FLOATP (lisp_rotation) ? XFLOATINT (lisp_rotation) : 0; |
| 92 | 92 | ||
| 93 | if (STRINGP (spec_file)) | 93 | if (STRINGP (spec_file)) |
| 94 | { | 94 | { |
| @@ -113,7 +113,7 @@ ns_load_image (struct frame *f, struct image *img, | |||
| 113 | if (![eImg setFrame: index]) | 113 | if (![eImg setFrame: index]) |
| 114 | { | 114 | { |
| 115 | add_to_log ("Unable to set index %d for image %s", | 115 | add_to_log ("Unable to set index %d for image %s", |
| 116 | make_number (index), img->spec); | 116 | make_fixnum (index), img->spec); |
| 117 | return 0; | 117 | return 0; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| @@ -495,7 +495,7 @@ ns_set_alpha (void *img, int x, int y, unsigned char a) | |||
| 495 | floatValue]; | 495 | floatValue]; |
| 496 | 496 | ||
| 497 | if (frames > 1) | 497 | if (frames > 1) |
| 498 | metadata = Fcons (Qcount, Fcons (make_number (frames), metadata)); | 498 | metadata = Fcons (Qcount, Fcons (make_fixnum (frames), metadata)); |
| 499 | if (delay > 0) | 499 | if (delay > 0) |
| 500 | metadata = Fcons (Qdelay, Fcons (make_float (delay), metadata)); | 500 | metadata = Fcons (Qdelay, Fcons (make_float (delay), metadata)); |
| 501 | } | 501 | } |
| @@ -532,19 +532,19 @@ ns_set_alpha (void *img, int x, int y, unsigned char a) | |||
| 532 | double width = -1, height = -1, max_width = -1, max_height = -1; | 532 | double width = -1, height = -1, max_width = -1, max_height = -1; |
| 533 | 533 | ||
| 534 | value = Fplist_get (spec, QCscale); | 534 | value = Fplist_get (spec, QCscale); |
| 535 | if (NUMBERP (value)) | 535 | if (FIXED_OR_FLOATP (value)) |
| 536 | scale = XFLOATINT (value) ; | 536 | scale = XFLOATINT (value) ; |
| 537 | 537 | ||
| 538 | value = Fplist_get (spec, QCmax_width); | 538 | value = Fplist_get (spec, QCmax_width); |
| 539 | if (NUMBERP (value)) | 539 | if (FIXED_OR_FLOATP (value)) |
| 540 | max_width = XFLOATINT (value); | 540 | max_width = XFLOATINT (value); |
| 541 | 541 | ||
| 542 | value = Fplist_get (spec, QCmax_height); | 542 | value = Fplist_get (spec, QCmax_height); |
| 543 | if (NUMBERP (value)) | 543 | if (FIXED_OR_FLOATP (value)) |
| 544 | max_height = XFLOATINT (value); | 544 | max_height = XFLOATINT (value); |
| 545 | 545 | ||
| 546 | value = Fplist_get (spec, QCwidth); | 546 | value = Fplist_get (spec, QCwidth); |
| 547 | if (NUMBERP (value)) | 547 | if (FIXED_OR_FLOATP (value)) |
| 548 | { | 548 | { |
| 549 | width = XFLOATINT (value) * scale; | 549 | width = XFLOATINT (value) * scale; |
| 550 | /* :width overrides :max-width. */ | 550 | /* :width overrides :max-width. */ |
| @@ -552,7 +552,7 @@ ns_set_alpha (void *img, int x, int y, unsigned char a) | |||
| 552 | } | 552 | } |
| 553 | 553 | ||
| 554 | value = Fplist_get (spec, QCheight); | 554 | value = Fplist_get (spec, QCheight); |
| 555 | if (NUMBERP (value)) | 555 | if (FIXED_OR_FLOATP (value)) |
| 556 | { | 556 | { |
| 557 | height = XFLOATINT (value) * scale; | 557 | height = XFLOATINT (value) * scale; |
| 558 | /* :height overrides :max-height. */ | 558 | /* :height overrides :max-height. */ |
diff --git a/src/nsmenu.m b/src/nsmenu.m index a438952818a..4e22d7b41bd 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -377,7 +377,7 @@ ns_update_menubar (struct frame *f, bool deep_p, EmacsMenu *submenu) | |||
| 377 | { | 377 | { |
| 378 | string = AREF (items, 4*i+1); | 378 | string = AREF (items, 4*i+1); |
| 379 | 379 | ||
| 380 | if (EQ (string, make_number (0))) // FIXME: Why??? --Stef | 380 | if (EQ (string, make_fixnum (0))) // FIXME: Why??? --Stef |
| 381 | continue; | 381 | continue; |
| 382 | if (NILP (string)) | 382 | if (NILP (string)) |
| 383 | { | 383 | { |
diff --git a/src/nsselect.m b/src/nsselect.m index c72f179ab38..b7e134b5466 100644 --- a/src/nsselect.m +++ b/src/nsselect.m | |||
| @@ -90,20 +90,20 @@ static Lisp_Object | |||
| 90 | clean_local_selection_data (Lisp_Object obj) | 90 | clean_local_selection_data (Lisp_Object obj) |
| 91 | { | 91 | { |
| 92 | if (CONSP (obj) | 92 | if (CONSP (obj) |
| 93 | && INTEGERP (XCAR (obj)) | 93 | && FIXNUMP (XCAR (obj)) |
| 94 | && CONSP (XCDR (obj)) | 94 | && CONSP (XCDR (obj)) |
| 95 | && INTEGERP (XCAR (XCDR (obj))) | 95 | && FIXNUMP (XCAR (XCDR (obj))) |
| 96 | && NILP (XCDR (XCDR (obj)))) | 96 | && NILP (XCDR (XCDR (obj)))) |
| 97 | obj = Fcons (XCAR (obj), XCDR (obj)); | 97 | obj = Fcons (XCAR (obj), XCDR (obj)); |
| 98 | 98 | ||
| 99 | if (CONSP (obj) | 99 | if (CONSP (obj) |
| 100 | && INTEGERP (XCAR (obj)) | 100 | && FIXNUMP (XCAR (obj)) |
| 101 | && INTEGERP (XCDR (obj))) | 101 | && FIXNUMP (XCDR (obj))) |
| 102 | { | 102 | { |
| 103 | if (XINT (XCAR (obj)) == 0) | 103 | if (XFIXNUM (XCAR (obj)) == 0) |
| 104 | return XCDR (obj); | 104 | return XCDR (obj); |
| 105 | if (XINT (XCAR (obj)) == -1) | 105 | if (XFIXNUM (XCAR (obj)) == -1) |
| 106 | return make_number (- XINT (XCDR (obj))); | 106 | return make_fixnum (- XFIXNUM (XCDR (obj))); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | if (VECTORP (obj)) | 109 | if (VECTORP (obj)) |
diff --git a/src/nsterm.m b/src/nsterm.m index a15684d3bf2..90758d1032a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1913,11 +1913,11 @@ x_set_window_size (struct frame *f, | |||
| 1913 | 1913 | ||
| 1914 | frame_size_history_add | 1914 | frame_size_history_add |
| 1915 | (f, Qx_set_window_size_1, width, height, | 1915 | (f, Qx_set_window_size_1, width, height, |
| 1916 | list5 (Fcons (make_number (pixelwidth), make_number (pixelheight)), | 1916 | list5 (Fcons (make_fixnum (pixelwidth), make_fixnum (pixelheight)), |
| 1917 | Fcons (make_number (wr.size.width), make_number (wr.size.height)), | 1917 | Fcons (make_fixnum (wr.size.width), make_fixnum (wr.size.height)), |
| 1918 | make_number (f->border_width), | 1918 | make_fixnum (f->border_width), |
| 1919 | make_number (FRAME_NS_TITLEBAR_HEIGHT (f)), | 1919 | make_fixnum (FRAME_NS_TITLEBAR_HEIGHT (f)), |
| 1920 | make_number (FRAME_TOOLBAR_HEIGHT (f)))); | 1920 | make_fixnum (FRAME_TOOLBAR_HEIGHT (f)))); |
| 1921 | 1921 | ||
| 1922 | [window setFrame: wr display: YES]; | 1922 | [window setFrame: wr display: YES]; |
| 1923 | 1923 | ||
| @@ -2480,8 +2480,8 @@ x_set_frame_alpha (struct frame *f) | |||
| 2480 | 2480 | ||
| 2481 | if (FLOATP (Vframe_alpha_lower_limit)) | 2481 | if (FLOATP (Vframe_alpha_lower_limit)) |
| 2482 | alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); | 2482 | alpha_min = XFLOAT_DATA (Vframe_alpha_lower_limit); |
| 2483 | else if (INTEGERP (Vframe_alpha_lower_limit)) | 2483 | else if (FIXNUMP (Vframe_alpha_lower_limit)) |
| 2484 | alpha_min = (XINT (Vframe_alpha_lower_limit)) / 100.0; | 2484 | alpha_min = (XFIXNUM (Vframe_alpha_lower_limit)) / 100.0; |
| 2485 | 2485 | ||
| 2486 | if (alpha < 0.0) | 2486 | if (alpha < 0.0) |
| 2487 | return; | 2487 | return; |
| @@ -3520,8 +3520,8 @@ ns_draw_text_decoration (struct glyph_string *s, struct face *face, | |||
| 3520 | BOOL underline_at_descent_line, use_underline_position_properties; | 3520 | BOOL underline_at_descent_line, use_underline_position_properties; |
| 3521 | Lisp_Object val = buffer_local_value (Qunderline_minimum_offset, | 3521 | Lisp_Object val = buffer_local_value (Qunderline_minimum_offset, |
| 3522 | s->w->contents); | 3522 | s->w->contents); |
| 3523 | if (INTEGERP (val)) | 3523 | if (FIXNUMP (val)) |
| 3524 | minimum_offset = XFASTINT (val); | 3524 | minimum_offset = XFIXNAT (val); |
| 3525 | else | 3525 | else |
| 3526 | minimum_offset = 1; | 3526 | minimum_offset = 1; |
| 3527 | val = buffer_local_value (Qx_underline_at_descent_line, | 3527 | val = buffer_local_value (Qx_underline_at_descent_line, |
| @@ -5342,7 +5342,7 @@ ns_term_init (Lisp_Object display_name) | |||
| 5342 | { | 5342 | { |
| 5343 | color = XCAR (color_map); | 5343 | color = XCAR (color_map); |
| 5344 | name = SSDATA (XCAR (color)); | 5344 | name = SSDATA (XCAR (color)); |
| 5345 | c = XINT (XCDR (color)); | 5345 | c = XFIXNUM (XCDR (color)); |
| 5346 | [cl setColor: | 5346 | [cl setColor: |
| 5347 | [NSColor colorForEmacsRed: RED_FROM_ULONG (c) / 255.0 | 5347 | [NSColor colorForEmacsRed: RED_FROM_ULONG (c) / 255.0 |
| 5348 | green: GREEN_FROM_ULONG (c) / 255.0 | 5348 | green: GREEN_FROM_ULONG (c) / 255.0 |
| @@ -6155,7 +6155,7 @@ not_in_argv (NSString *arg) | |||
| 6155 | emacs_event->code = KEY_NS_CHANGE_FONT; | 6155 | emacs_event->code = KEY_NS_CHANGE_FONT; |
| 6156 | 6156 | ||
| 6157 | size = [newFont pointSize]; | 6157 | size = [newFont pointSize]; |
| 6158 | ns_input_fontsize = make_number (lrint (size)); | 6158 | ns_input_fontsize = make_fixnum (lrint (size)); |
| 6159 | ns_input_font = build_string ([[newFont familyName] UTF8String]); | 6159 | ns_input_font = build_string ([[newFont familyName] UTF8String]); |
| 6160 | EV_TRAILER (e); | 6160 | EV_TRAILER (e); |
| 6161 | } | 6161 | } |
| @@ -6234,7 +6234,7 @@ not_in_argv (NSString *arg) | |||
| 6234 | 6234 | ||
| 6235 | [NSCursor setHiddenUntilMouseMoves: YES]; | 6235 | [NSCursor setHiddenUntilMouseMoves: YES]; |
| 6236 | 6236 | ||
| 6237 | if (hlinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight)) | 6237 | if (hlinfo->mouse_face_hidden && FIXNUMP (Vmouse_highlight)) |
| 6238 | { | 6238 | { |
| 6239 | clear_mouse_face (hlinfo); | 6239 | clear_mouse_face (hlinfo); |
| 6240 | hlinfo->mouse_face_hidden = 1; | 6240 | hlinfo->mouse_face_hidden = 1; |
| @@ -6684,8 +6684,8 @@ not_in_argv (NSString *arg) | |||
| 6684 | static int totalDeltaX, totalDeltaY; | 6684 | static int totalDeltaX, totalDeltaY; |
| 6685 | int lineHeight; | 6685 | int lineHeight; |
| 6686 | 6686 | ||
| 6687 | if (NUMBERP (ns_mwheel_line_height)) | 6687 | if (FIXED_OR_FLOATP (ns_mwheel_line_height)) |
| 6688 | lineHeight = XINT (ns_mwheel_line_height); | 6688 | lineHeight = XFIXNUM (ns_mwheel_line_height); |
| 6689 | else | 6689 | else |
| 6690 | { | 6690 | { |
| 6691 | /* FIXME: Use actual line height instead of the default. */ | 6691 | /* FIXME: Use actual line height instead of the default. */ |
| @@ -6754,7 +6754,7 @@ not_in_argv (NSString *arg) | |||
| 6754 | return; | 6754 | return; |
| 6755 | 6755 | ||
| 6756 | emacs_event->kind = horizontal ? HORIZ_WHEEL_EVENT : WHEEL_EVENT; | 6756 | emacs_event->kind = horizontal ? HORIZ_WHEEL_EVENT : WHEEL_EVENT; |
| 6757 | emacs_event->arg = (make_number (lines)); | 6757 | emacs_event->arg = (make_fixnum (lines)); |
| 6758 | 6758 | ||
| 6759 | emacs_event->code = 0; | 6759 | emacs_event->code = 0; |
| 6760 | emacs_event->modifiers = EV_MODIFIERS (theEvent) | | 6760 | emacs_event->modifiers = EV_MODIFIERS (theEvent) | |
| @@ -9341,11 +9341,11 @@ syms_of_nsterm (void) | |||
| 9341 | DEFSYM (Qfile, "file"); | 9341 | DEFSYM (Qfile, "file"); |
| 9342 | DEFSYM (Qurl, "url"); | 9342 | DEFSYM (Qurl, "url"); |
| 9343 | 9343 | ||
| 9344 | Fput (Qalt, Qmodifier_value, make_number (alt_modifier)); | 9344 | Fput (Qalt, Qmodifier_value, make_fixnum (alt_modifier)); |
| 9345 | Fput (Qhyper, Qmodifier_value, make_number (hyper_modifier)); | 9345 | Fput (Qhyper, Qmodifier_value, make_fixnum (hyper_modifier)); |
| 9346 | Fput (Qmeta, Qmodifier_value, make_number (meta_modifier)); | 9346 | Fput (Qmeta, Qmodifier_value, make_fixnum (meta_modifier)); |
| 9347 | Fput (Qsuper, Qmodifier_value, make_number (super_modifier)); | 9347 | Fput (Qsuper, Qmodifier_value, make_fixnum (super_modifier)); |
| 9348 | Fput (Qcontrol, Qmodifier_value, make_number (ctrl_modifier)); | 9348 | Fput (Qcontrol, Qmodifier_value, make_fixnum (ctrl_modifier)); |
| 9349 | 9349 | ||
| 9350 | DEFVAR_LISP ("ns-input-file", ns_input_file, | 9350 | DEFVAR_LISP ("ns-input-file", ns_input_file, |
| 9351 | "The file specified in the last NS event."); | 9351 | "The file specified in the last NS event."); |