aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.c
diff options
context:
space:
mode:
authorTom Tromey2018-07-06 21:56:17 -0600
committerTom Tromey2018-07-12 22:12:27 -0600
commit42fe787b0f26c2df682b2797407a669ef8522ccb (patch)
treee944fe465e2b65703a8361bc82647faf4f7907f1 /src/composite.c
parent01dbf2a347944497fdcf2ec156f4605020d7ba2a (diff)
downloademacs-42fe787b0f26c2df682b2797407a669ef8522ccb.tar.gz
emacs-42fe787b0f26c2df682b2797407a669ef8522ccb.zip
Rename integerp->fixnum, etc, in preparation for bignums
* src/json.c, src/keyboard.c, src/keyboard.h, src/keymap.c, src/kqueue.c, src/lcms.c, src/lisp.h, src/lread.c, src/macros.c, src/marker.c, src/menu.c, src/minibuf.c, src/msdos.c, src/print.c, src/process.c, src/profiler.c, src/search.c, src/sound.c, src/syntax.c, src/sysdep.c, src/term.c, src/terminal.c, src/textprop.c, src/undo.c, src/w16select.c, src/w32.c, src/w32console.c, src/w32cygwinx.c, src/w32fns.c, src/w32font.c, src/w32inevt.c, src/w32proc.c, src/w32select.c, src/w32term.c, src/w32uniscribe.c, src/widget.c, src/window.c, src/xdisp.c, src/xfaces.c, src/xfns.c, src/xfont.c, src/xftfont.c, src/xmenu.c, src/xrdb.c, src/xselect.c, src/xterm.c, src/xwidget.c: Rename INTEGERP->FIXNUM, make_number->make_fixnum, CHECK_NUMBER->CHECK_FIXNUM, make_natnum->make_fixed_natum, NUMBERP->FIXED_OR_FLOATP, NATNUMP->FIXNATP, CHECK_NATNUM->CHECK_FIXNAT.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/composite.c b/src/composite.c
index 746c2959f84..f5e05d68755 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -193,7 +193,7 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
193 goto invalid_composition; 193 goto invalid_composition;
194 194
195 id = XCAR (prop); 195 id = XCAR (prop);
196 if (INTEGERP (id)) 196 if (FIXNUMP (id))
197 { 197 {
198 /* PROP should be Form-B. */ 198 /* PROP should be Form-B. */
199 if (XINT (id) < 0 || XINT (id) >= n_compositions) 199 if (XINT (id) < 0 || XINT (id) >= n_compositions)
@@ -206,7 +206,7 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
206 if (!CONSP (id)) 206 if (!CONSP (id))
207 goto invalid_composition; 207 goto invalid_composition;
208 length = XCAR (id); 208 length = XCAR (id);
209 if (!INTEGERP (length) || XINT (length) != nchars) 209 if (!FIXNUMP (length) || XINT (length) != nchars)
210 goto invalid_composition; 210 goto invalid_composition;
211 211
212 components = XCDR (id); 212 components = XCDR (id);
@@ -215,8 +215,8 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
215 by consulting composition_hash_table. The key for this table is 215 by consulting composition_hash_table. The key for this table is
216 COMPONENTS (converted to a vector COMPONENTS-VEC) or, if it is 216 COMPONENTS (converted to a vector COMPONENTS-VEC) or, if it is
217 nil, vector of characters in the composition range. */ 217 nil, vector of characters in the composition range. */
218 if (INTEGERP (components)) 218 if (FIXNUMP (components))
219 key = Fmake_vector (make_number (1), components); 219 key = Fmake_vector (make_fixnum (1), components);
220 else if (STRINGP (components) || CONSP (components)) 220 else if (STRINGP (components) || CONSP (components))
221 key = Fvconcat (1, &components); 221 key = Fvconcat (1, &components);
222 else if (VECTORP (components)) 222 else if (VECTORP (components))
@@ -228,13 +228,13 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
228 for (i = 0; i < nchars; i++) 228 for (i = 0; i < nchars; i++)
229 { 229 {
230 FETCH_STRING_CHAR_ADVANCE (ch, string, charpos, bytepos); 230 FETCH_STRING_CHAR_ADVANCE (ch, string, charpos, bytepos);
231 ASET (key, i, make_number (ch)); 231 ASET (key, i, make_fixnum (ch));
232 } 232 }
233 else 233 else
234 for (i = 0; i < nchars; i++) 234 for (i = 0; i < nchars; i++)
235 { 235 {
236 FETCH_CHAR_ADVANCE (ch, charpos, bytepos); 236 FETCH_CHAR_ADVANCE (ch, charpos, bytepos);
237 ASET (key, i, make_number (ch)); 237 ASET (key, i, make_fixnum (ch));
238 } 238 }
239 } 239 }
240 else 240 else
@@ -250,7 +250,7 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
250 key = HASH_KEY (hash_table, hash_index); 250 key = HASH_KEY (hash_table, hash_index);
251 id = HASH_VALUE (hash_table, hash_index); 251 id = HASH_VALUE (hash_table, hash_index);
252 XSETCAR (prop, id); 252 XSETCAR (prop, id);
253 XSETCDR (prop, Fcons (make_number (nchars), Fcons (key, XCDR (prop)))); 253 XSETCDR (prop, Fcons (make_fixnum (nchars), Fcons (key, XCDR (prop))));
254 return XINT (id); 254 return XINT (id);
255 } 255 }
256 256
@@ -289,7 +289,7 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
289 composition rule). */ 289 composition rule). */
290 for (i = 0; i < len; i++) 290 for (i = 0; i < len; i++)
291 { 291 {
292 if (!INTEGERP (key_contents[i])) 292 if (!FIXNUMP (key_contents[i]))
293 goto invalid_composition; 293 goto invalid_composition;
294 } 294 }
295 } 295 }
@@ -298,14 +298,14 @@ get_composition_id (ptrdiff_t charpos, ptrdiff_t bytepos, ptrdiff_t nchars,
298 the cons cell of PROP because it is not shared. */ 298 the cons cell of PROP because it is not shared. */
299 XSETFASTINT (id, n_compositions); 299 XSETFASTINT (id, n_compositions);
300 XSETCAR (prop, id); 300 XSETCAR (prop, id);
301 XSETCDR (prop, Fcons (make_number (nchars), Fcons (key, XCDR (prop)))); 301 XSETCDR (prop, Fcons (make_fixnum (nchars), Fcons (key, XCDR (prop))));
302 302
303 /* Register the composition in composition_hash_table. */ 303 /* Register the composition in composition_hash_table. */
304 hash_index = hash_put (hash_table, key, id, hash_code); 304 hash_index = hash_put (hash_table, key, id, hash_code);
305 305
306 method = (NILP (components) 306 method = (NILP (components)
307 ? COMPOSITION_RELATIVE 307 ? COMPOSITION_RELATIVE
308 : ((INTEGERP (components) || STRINGP (components)) 308 : ((FIXNUMP (components) || STRINGP (components))
309 ? COMPOSITION_WITH_ALTCHARS 309 ? COMPOSITION_WITH_ALTCHARS
310 : COMPOSITION_WITH_RULE_ALTCHARS)); 310 : COMPOSITION_WITH_RULE_ALTCHARS));
311 311
@@ -431,8 +431,8 @@ find_composition (ptrdiff_t pos, ptrdiff_t limit,
431 431
432 if (limit > pos) /* search forward */ 432 if (limit > pos) /* search forward */
433 { 433 {
434 val = Fnext_single_property_change (make_number (pos), Qcomposition, 434 val = Fnext_single_property_change (make_fixnum (pos), Qcomposition,
435 object, make_number (limit)); 435 object, make_fixnum (limit));
436 pos = XINT (val); 436 pos = XINT (val);
437 if (pos == limit) 437 if (pos == limit)
438 return 0; 438 return 0;
@@ -442,8 +442,8 @@ find_composition (ptrdiff_t pos, ptrdiff_t limit,
442 if (get_property_and_range (pos - 1, Qcomposition, prop, start, end, 442 if (get_property_and_range (pos - 1, Qcomposition, prop, start, end,
443 object)) 443 object))
444 return 1; 444 return 1;
445 val = Fprevious_single_property_change (make_number (pos), Qcomposition, 445 val = Fprevious_single_property_change (make_fixnum (pos), Qcomposition,
446 object, make_number (limit)); 446 object, make_fixnum (limit));
447 pos = XINT (val); 447 pos = XINT (val);
448 if (pos == limit) 448 if (pos == limit)
449 return 0; 449 return 0;
@@ -474,7 +474,7 @@ run_composition_function (ptrdiff_t from, ptrdiff_t to, Lisp_Object prop)
474 && !composition_valid_p (start, end, prop)) 474 && !composition_valid_p (start, end, prop))
475 to = end; 475 to = end;
476 if (!NILP (Ffboundp (func))) 476 if (!NILP (Ffboundp (func)))
477 call2 (func, make_number (from), make_number (to)); 477 call2 (func, make_fixnum (from), make_fixnum (to));
478} 478}
479 479
480/* Make invalid compositions adjacent to or inside FROM and TO valid. 480/* Make invalid compositions adjacent to or inside FROM and TO valid.
@@ -519,7 +519,7 @@ update_compositions (ptrdiff_t from, ptrdiff_t to, int check_mask)
519 if (end > to) 519 if (end > to)
520 max_pos = end; 520 max_pos = end;
521 if (from < end) 521 if (from < end)
522 Fput_text_property (make_number (from), make_number (end), 522 Fput_text_property (make_fixnum (from), make_fixnum (end),
523 Qcomposition, 523 Qcomposition,
524 Fcons (XCAR (prop), XCDR (prop)), Qnil); 524 Fcons (XCAR (prop), XCDR (prop)), Qnil);
525 run_composition_function (start, end, prop); 525 run_composition_function (start, end, prop);
@@ -560,7 +560,7 @@ update_compositions (ptrdiff_t from, ptrdiff_t to, int check_mask)
560 the former to the copy of it. */ 560 the former to the copy of it. */
561 if (to < end) 561 if (to < end)
562 { 562 {
563 Fput_text_property (make_number (start), make_number (to), 563 Fput_text_property (make_fixnum (start), make_fixnum (to),
564 Qcomposition, 564 Qcomposition,
565 Fcons (XCAR (prop), XCDR (prop)), Qnil); 565 Fcons (XCAR (prop), XCDR (prop)), Qnil);
566 max_pos = end; 566 max_pos = end;
@@ -582,8 +582,8 @@ update_compositions (ptrdiff_t from, ptrdiff_t to, int check_mask)
582 specbind (Qinhibit_read_only, Qt); 582 specbind (Qinhibit_read_only, Qt);
583 specbind (Qinhibit_modification_hooks, Qt); 583 specbind (Qinhibit_modification_hooks, Qt);
584 specbind (Qinhibit_point_motion_hooks, Qt); 584 specbind (Qinhibit_point_motion_hooks, Qt);
585 Fremove_list_of_text_properties (make_number (min_pos), 585 Fremove_list_of_text_properties (make_fixnum (min_pos),
586 make_number (max_pos), 586 make_fixnum (max_pos),
587 list1 (Qauto_composed), Qnil); 587 list1 (Qauto_composed), Qnil);
588 unbind_to (count, Qnil); 588 unbind_to (count, Qnil);
589 } 589 }
@@ -625,9 +625,9 @@ compose_text (ptrdiff_t start, ptrdiff_t end, Lisp_Object components,
625{ 625{
626 Lisp_Object prop; 626 Lisp_Object prop;
627 627
628 prop = Fcons (Fcons (make_number (end - start), components), 628 prop = Fcons (Fcons (make_fixnum (end - start), components),
629 modification_func); 629 modification_func);
630 Fput_text_property (make_number (start), make_number (end), 630 Fput_text_property (make_fixnum (start), make_fixnum (end),
631 Qcomposition, prop, string); 631 Qcomposition, prop, string);
632} 632}
633 633
@@ -669,12 +669,12 @@ composition_gstring_put_cache (Lisp_Object gstring, ptrdiff_t len)
669 len = j; 669 len = j;
670 } 670 }
671 671
672 copy = Fmake_vector (make_number (len + 2), Qnil); 672 copy = Fmake_vector (make_fixnum (len + 2), Qnil);
673 LGSTRING_SET_HEADER (copy, Fcopy_sequence (header)); 673 LGSTRING_SET_HEADER (copy, Fcopy_sequence (header));
674 for (i = 0; i < len; i++) 674 for (i = 0; i < len; i++)
675 LGSTRING_SET_GLYPH (copy, i, Fcopy_sequence (LGSTRING_GLYPH (gstring, i))); 675 LGSTRING_SET_GLYPH (copy, i, Fcopy_sequence (LGSTRING_GLYPH (gstring, i)));
676 i = hash_put (h, LGSTRING_HEADER (copy), copy, hash); 676 i = hash_put (h, LGSTRING_HEADER (copy), copy, hash);
677 LGSTRING_SET_ID (copy, make_number (i)); 677 LGSTRING_SET_ID (copy, make_fixnum (i));
678 return copy; 678 return copy;
679} 679}
680 680
@@ -692,7 +692,7 @@ DEFUN ("clear-composition-cache", Fclear_composition_cache,
692Clear composition cache. */) 692Clear composition cache. */)
693 (void) 693 (void)
694{ 694{
695 Lisp_Object args[] = {QCtest, Qequal, QCsize, make_number (311)}; 695 Lisp_Object args[] = {QCtest, Qequal, QCsize, make_fixnum (311)};
696 gstring_hash_table = CALLMANY (Fmake_hash_table, args); 696 gstring_hash_table = CALLMANY (Fmake_hash_table, args);
697 /* Fixme: We call Fclear_face_cache to force complete re-building of 697 /* Fixme: We call Fclear_face_cache to force complete re-building of
698 display glyphs. But, it may be better to call this function from 698 display glyphs. But, it may be better to call this function from
@@ -716,9 +716,9 @@ composition_gstring_p (Lisp_Object gstring)
716 && ! CODING_SYSTEM_P (LGSTRING_FONT (gstring)))) 716 && ! CODING_SYSTEM_P (LGSTRING_FONT (gstring))))
717 return 0; 717 return 0;
718 for (i = 1; i < ASIZE (LGSTRING_HEADER (gstring)); i++) 718 for (i = 1; i < ASIZE (LGSTRING_HEADER (gstring)); i++)
719 if (! NATNUMP (AREF (LGSTRING_HEADER (gstring), i))) 719 if (! FIXNATP (AREF (LGSTRING_HEADER (gstring), i)))
720 return 0; 720 return 0;
721 if (! NILP (LGSTRING_ID (gstring)) && ! NATNUMP (LGSTRING_ID (gstring))) 721 if (! NILP (LGSTRING_ID (gstring)) && ! FIXNATP (LGSTRING_ID (gstring)))
722 return 0; 722 return 0;
723 for (i = 0; i < LGSTRING_GLYPH_LEN (gstring); i++) 723 for (i = 0; i < LGSTRING_GLYPH_LEN (gstring); i++)
724 { 724 {
@@ -801,7 +801,7 @@ fill_gstring_header (Lisp_Object header, ptrdiff_t from, ptrdiff_t from_byte,
801 if (VECTORP (header)) 801 if (VECTORP (header))
802 { 802 {
803 if (ASIZE (header) != len + 1) 803 if (ASIZE (header) != len + 1)
804 args_out_of_range (header, make_number (len + 1)); 804 args_out_of_range (header, make_fixnum (len + 1));
805 } 805 }
806 else 806 else
807 { 807 {
@@ -820,7 +820,7 @@ fill_gstring_header (Lisp_Object header, ptrdiff_t from, ptrdiff_t from_byte,
820 FETCH_CHAR_ADVANCE_NO_CHECK (c, from, from_byte); 820 FETCH_CHAR_ADVANCE_NO_CHECK (c, from, from_byte);
821 else 821 else
822 FETCH_STRING_CHAR_ADVANCE_NO_CHECK (c, string, from, from_byte); 822 FETCH_STRING_CHAR_ADVANCE_NO_CHECK (c, string, from, from_byte);
823 ASET (header, i + 1, make_number (c)); 823 ASET (header, i + 1, make_fixnum (c));
824 } 824 }
825 return header; 825 return header;
826} 826}
@@ -881,7 +881,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos,
881 Lisp_Object string) 881 Lisp_Object string)
882{ 882{
883 ptrdiff_t count = SPECPDL_INDEX (); 883 ptrdiff_t count = SPECPDL_INDEX ();
884 Lisp_Object pos = make_number (charpos); 884 Lisp_Object pos = make_fixnum (charpos);
885 ptrdiff_t to; 885 ptrdiff_t to;
886 ptrdiff_t pt = PT, pt_byte = PT_BYTE; 886 ptrdiff_t pt = PT, pt_byte = PT_BYTE;
887 Lisp_Object re, font_object, lgstring; 887 Lisp_Object re, font_object, lgstring;
@@ -917,7 +917,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos,
917 return unbind_to (count, Qnil); 917 return unbind_to (count, Qnil);
918 } 918 }
919#endif 919#endif
920 lgstring = Fcomposition_get_gstring (pos, make_number (to), font_object, 920 lgstring = Fcomposition_get_gstring (pos, make_fixnum (to), font_object,
921 string); 921 string);
922 if (NILP (LGSTRING_ID (lgstring))) 922 if (NILP (LGSTRING_ID (lgstring)))
923 { 923 {
@@ -926,7 +926,7 @@ autocmp_chars (Lisp_Object rule, ptrdiff_t charpos, ptrdiff_t bytepos,
926 record_unwind_protect (restore_point_unwind, 926 record_unwind_protect (restore_point_unwind,
927 build_marker (current_buffer, pt, pt_byte)); 927 build_marker (current_buffer, pt, pt_byte));
928 lgstring = safe_call (6, Vauto_composition_function, AREF (rule, 2), 928 lgstring = safe_call (6, Vauto_composition_function, AREF (rule, 2),
929 pos, make_number (to), font_object, string); 929 pos, make_fixnum (to), font_object, string);
930 } 930 }
931 return unbind_to (count, lgstring); 931 return unbind_to (count, lgstring);
932} 932}
@@ -941,7 +941,7 @@ char_composable_p (int c)
941 return (c > ' ' 941 return (c > ' '
942 && (c == ZERO_WIDTH_NON_JOINER || c == ZERO_WIDTH_JOINER 942 && (c == ZERO_WIDTH_NON_JOINER || c == ZERO_WIDTH_JOINER
943 || (val = CHAR_TABLE_REF (Vunicode_category_table, c), 943 || (val = CHAR_TABLE_REF (Vunicode_category_table, c),
944 (INTEGERP (val) && (XINT (val) <= UNICODE_CATEGORY_So))))); 944 (FIXNUMP (val) && (XINT (val) <= UNICODE_CATEGORY_So)))));
945} 945}
946 946
947/* Update cmp_it->stop_pos to the next position after CHARPOS (and 947/* Update cmp_it->stop_pos to the next position after CHARPOS (and
@@ -1030,7 +1030,7 @@ composition_compute_stop_pos (struct composition_it *cmp_it, ptrdiff_t charpos,
1030 { 1030 {
1031 Lisp_Object elt = XCAR (val); 1031 Lisp_Object elt = XCAR (val);
1032 if (VECTORP (elt) && ASIZE (elt) == 3 1032 if (VECTORP (elt) && ASIZE (elt) == 3
1033 && NATNUMP (AREF (elt, 1)) 1033 && FIXNATP (AREF (elt, 1))
1034 && charpos - 1 - XFASTINT (AREF (elt, 1)) >= start) 1034 && charpos - 1 - XFASTINT (AREF (elt, 1)) >= start)
1035 { 1035 {
1036 cmp_it->rule_idx = ridx; 1036 cmp_it->rule_idx = ridx;
@@ -1081,7 +1081,7 @@ composition_compute_stop_pos (struct composition_it *cmp_it, ptrdiff_t charpos,
1081 { 1081 {
1082 Lisp_Object elt = XCAR (val); 1082 Lisp_Object elt = XCAR (val);
1083 if (VECTORP (elt) && ASIZE (elt) == 3 1083 if (VECTORP (elt) && ASIZE (elt) == 3
1084 && NATNUMP (AREF (elt, 1)) 1084 && FIXNATP (AREF (elt, 1))
1085 && charpos - XFASTINT (AREF (elt, 1)) > endpos) 1085 && charpos - XFASTINT (AREF (elt, 1)) > endpos)
1086 { 1086 {
1087 ptrdiff_t back = XFASTINT (AREF (elt, 1)); 1087 ptrdiff_t back = XFASTINT (AREF (elt, 1));
@@ -1221,7 +1221,7 @@ composition_reseat_it (struct composition_it *cmp_it, ptrdiff_t charpos,
1221 { 1221 {
1222 elt = XCAR (val); 1222 elt = XCAR (val);
1223 if (! VECTORP (elt) || ASIZE (elt) != 3 1223 if (! VECTORP (elt) || ASIZE (elt) != 3
1224 || ! INTEGERP (AREF (elt, 1))) 1224 || ! FIXNUMP (AREF (elt, 1)))
1225 continue; 1225 continue;
1226 if (XFASTINT (AREF (elt, 1)) != cmp_it->lookback) 1226 if (XFASTINT (AREF (elt, 1)) != cmp_it->lookback)
1227 goto no_composition; 1227 goto no_composition;
@@ -1559,7 +1559,7 @@ find_automatic_composition (ptrdiff_t pos, ptrdiff_t limit,
1559 { 1559 {
1560 Lisp_Object elt = XCAR (val); 1560 Lisp_Object elt = XCAR (val);
1561 1561
1562 if (VECTORP (elt) && ASIZE (elt) == 3 && NATNUMP (AREF (elt, 1))) 1562 if (VECTORP (elt) && ASIZE (elt) == 3 && FIXNATP (AREF (elt, 1)))
1563 { 1563 {
1564 EMACS_INT check_pos = cur.pos - XFASTINT (AREF (elt, 1)); 1564 EMACS_INT check_pos = cur.pos - XFASTINT (AREF (elt, 1));
1565 struct position_record check; 1565 struct position_record check;
@@ -1759,7 +1759,7 @@ should be ignored. */)
1759 return gstring; 1759 return gstring;
1760 1760
1761 if (LGSTRING_GLYPH_LEN (gstring_work) < topos - frompos) 1761 if (LGSTRING_GLYPH_LEN (gstring_work) < topos - frompos)
1762 gstring_work = Fmake_vector (make_number (topos - frompos + 2), Qnil); 1762 gstring_work = Fmake_vector (make_fixnum (topos - frompos + 2), Qnil);
1763 LGSTRING_SET_HEADER (gstring_work, header); 1763 LGSTRING_SET_HEADER (gstring_work, header);
1764 LGSTRING_SET_ID (gstring_work, Qnil); 1764 LGSTRING_SET_ID (gstring_work, Qnil);
1765 fill_gstring_body (gstring_work); 1765 fill_gstring_body (gstring_work);
@@ -1780,7 +1780,7 @@ for the composition. See `compose-region' for more details. */)
1780{ 1780{
1781 validate_region (&start, &end); 1781 validate_region (&start, &end);
1782 if (!NILP (components) 1782 if (!NILP (components)
1783 && !INTEGERP (components) 1783 && !FIXNUMP (components)
1784 && !CONSP (components) 1784 && !CONSP (components)
1785 && !STRINGP (components)) 1785 && !STRINGP (components))
1786 CHECK_VECTOR (components); 1786 CHECK_VECTOR (components);
@@ -1820,10 +1820,10 @@ See `find-composition' for more details. */)
1820 ptrdiff_t start, end, from, to; 1820 ptrdiff_t start, end, from, to;
1821 int id; 1821 int id;
1822 1822
1823 CHECK_NUMBER_COERCE_MARKER (pos); 1823 CHECK_FIXNUM_COERCE_MARKER (pos);
1824 if (!NILP (limit)) 1824 if (!NILP (limit))
1825 { 1825 {
1826 CHECK_NUMBER_COERCE_MARKER (limit); 1826 CHECK_FIXNUM_COERCE_MARKER (limit);
1827 to = min (XINT (limit), ZV); 1827 to = min (XINT (limit), ZV);
1828 } 1828 }
1829 else 1829 else
@@ -1848,7 +1848,7 @@ See `find-composition' for more details. */)
1848 && ! NILP (Vauto_composition_mode) 1848 && ! NILP (Vauto_composition_mode)
1849 && find_automatic_composition (from, to, &start, &end, &gstring, 1849 && find_automatic_composition (from, to, &start, &end, &gstring,
1850 string)) 1850 string))
1851 return list3 (make_number (start), make_number (end), gstring); 1851 return list3 (make_fixnum (start), make_fixnum (end), gstring);
1852 return Qnil; 1852 return Qnil;
1853 } 1853 }
1854 if ((end <= XINT (pos) || start > XINT (pos))) 1854 if ((end <= XINT (pos) || start > XINT (pos)))
@@ -1857,12 +1857,12 @@ See `find-composition' for more details. */)
1857 1857
1858 if (find_automatic_composition (from, to, &s, &e, &gstring, string) 1858 if (find_automatic_composition (from, to, &s, &e, &gstring, string)
1859 && (e <= XINT (pos) ? e > end : s < start)) 1859 && (e <= XINT (pos) ? e > end : s < start))
1860 return list3 (make_number (s), make_number (e), gstring); 1860 return list3 (make_fixnum (s), make_fixnum (e), gstring);
1861 } 1861 }
1862 if (!composition_valid_p (start, end, prop)) 1862 if (!composition_valid_p (start, end, prop))
1863 return list3 (make_number (start), make_number (end), Qnil); 1863 return list3 (make_fixnum (start), make_fixnum (end), Qnil);
1864 if (NILP (detail_p)) 1864 if (NILP (detail_p))
1865 return list3 (make_number (start), make_number (end), Qt); 1865 return list3 (make_fixnum (start), make_fixnum (end), Qt);
1866 1866
1867 if (composition_registered_p (prop)) 1867 if (composition_registered_p (prop))
1868 id = COMPOSITION_ID (prop); 1868 id = COMPOSITION_ID (prop);
@@ -1884,12 +1884,12 @@ See `find-composition' for more details. */)
1884 relative_p = (method == COMPOSITION_WITH_RULE_ALTCHARS 1884 relative_p = (method == COMPOSITION_WITH_RULE_ALTCHARS
1885 ? Qnil : Qt); 1885 ? Qnil : Qt);
1886 mod_func = COMPOSITION_MODIFICATION_FUNC (prop); 1886 mod_func = COMPOSITION_MODIFICATION_FUNC (prop);
1887 tail = list4 (components, relative_p, mod_func, make_number (width)); 1887 tail = list4 (components, relative_p, mod_func, make_fixnum (width));
1888 } 1888 }
1889 else 1889 else
1890 tail = Qnil; 1890 tail = Qnil;
1891 1891
1892 return Fcons (make_number (start), Fcons (make_number (end), tail)); 1892 return Fcons (make_fixnum (start), Fcons (make_fixnum (end), tail));
1893} 1893}
1894 1894
1895 1895
@@ -1906,7 +1906,7 @@ syms_of_composite (void)
1906 created compositions are repeatedly used in an Emacs session, 1906 created compositions are repeatedly used in an Emacs session,
1907 and thus it's not worth to save memory in such a way. So, we 1907 and thus it's not worth to save memory in such a way. So, we
1908 make the table not weak. */ 1908 make the table not weak. */
1909 Lisp_Object args[] = {QCtest, Qequal, QCsize, make_number (311)}; 1909 Lisp_Object args[] = {QCtest, Qequal, QCsize, make_fixnum (311)};
1910 composition_hash_table = CALLMANY (Fmake_hash_table, args); 1910 composition_hash_table = CALLMANY (Fmake_hash_table, args);
1911 staticpro (&composition_hash_table); 1911 staticpro (&composition_hash_table);
1912 1912
@@ -1917,9 +1917,9 @@ syms_of_composite (void)
1917 staticpro (&gstring_work_headers); 1917 staticpro (&gstring_work_headers);
1918 gstring_work_headers = make_uninit_vector (8); 1918 gstring_work_headers = make_uninit_vector (8);
1919 for (i = 0; i < 8; i++) 1919 for (i = 0; i < 8; i++)
1920 ASET (gstring_work_headers, i, Fmake_vector (make_number (i + 2), Qnil)); 1920 ASET (gstring_work_headers, i, Fmake_vector (make_fixnum (i + 2), Qnil));
1921 staticpro (&gstring_work); 1921 staticpro (&gstring_work);
1922 gstring_work = Fmake_vector (make_number (10), Qnil); 1922 gstring_work = Fmake_vector (make_fixnum (10), Qnil);
1923 1923
1924 /* Text property `composition' should be nonsticky by default. */ 1924 /* Text property `composition' should be nonsticky by default. */
1925 Vtext_property_default_nonsticky 1925 Vtext_property_default_nonsticky