comparison src/composite.c @ 40656:cdfd4d09b79a

Update usage of CHECK_ macros (remove unused second argument).
author Pavel Jan?k <Pavel@Janik.cz>
date Fri, 02 Nov 2001 20:46:55 +0000
parents 579177964efa
children a17c8b15ef1b
comparison
equal deleted inserted replaced
40655:45453187feeb 40656:cdfd4d09b79a
728 validate_region (&start, &end); 728 validate_region (&start, &end);
729 if (!NILP (components) 729 if (!NILP (components)
730 && !INTEGERP (components) 730 && !INTEGERP (components)
731 && !CONSP (components) 731 && !CONSP (components)
732 && !STRINGP (components)) 732 && !STRINGP (components))
733 CHECK_VECTOR (components, 2); 733 CHECK_VECTOR (components);
734 734
735 compose_text (XINT (start), XINT (end), components, mod_func, Qnil); 735 compose_text (XINT (start), XINT (end), components, mod_func, Qnil);
736 return Qnil; 736 return Qnil;
737 } 737 }
738 738
744 Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC\n\ 744 Optional 4th and 5th arguments are COMPONENTS and MODIFICATION-FUNC\n\
745 for the composition. See `compose-string' for more detial.") 745 for the composition. See `compose-string' for more detial.")
746 (string, start, end, components, mod_func) 746 (string, start, end, components, mod_func)
747 Lisp_Object string, start, end, components, mod_func; 747 Lisp_Object string, start, end, components, mod_func;
748 { 748 {
749 CHECK_STRING (string, 0); 749 CHECK_STRING (string);
750 CHECK_NUMBER (start, 1); 750 CHECK_NUMBER (start);
751 CHECK_NUMBER (end, 2); 751 CHECK_NUMBER (end);
752 752
753 if (XINT (start) < 0 || 753 if (XINT (start) < 0 ||
754 XINT (start) > XINT (end) 754 XINT (start) > XINT (end)
755 || XINT (end) > XSTRING (string)->size) 755 || XINT (end) > XSTRING (string)->size)
756 args_out_of_range (start, end); 756 args_out_of_range (start, end);
770 { 770 {
771 Lisp_Object prop, tail; 771 Lisp_Object prop, tail;
772 int start, end; 772 int start, end;
773 int id; 773 int id;
774 774
775 CHECK_NUMBER_COERCE_MARKER (pos, 0); 775 CHECK_NUMBER_COERCE_MARKER (pos);
776 start = XINT (pos); 776 start = XINT (pos);
777 if (!NILP (limit)) 777 if (!NILP (limit))
778 { 778 {
779 CHECK_NUMBER_COERCE_MARKER (limit, 1); 779 CHECK_NUMBER_COERCE_MARKER (limit);
780 end = XINT (limit); 780 end = XINT (limit);
781 } 781 }
782 else 782 else
783 end = -1; 783 end = -1;
784 784
785 if (!NILP (string)) 785 if (!NILP (string))
786 { 786 {
787 CHECK_STRING (string, 2); 787 CHECK_STRING (string);
788 if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size) 788 if (XINT (pos) < 0 || XINT (pos) > XSTRING (string)->size)
789 args_out_of_range (string, pos); 789 args_out_of_range (string, pos);
790 } 790 }
791 else 791 else
792 { 792 {