comparison src/insdel.c @ 21514:fa9ff387d260

Fix -Wimplicit warnings.
author Andreas Schwab <schwab@suse.de>
date Tue, 14 Apr 1998 12:25:56 +0000
parents 6fe4f59fab8c
children fff9425b9230
comparison
equal deleted inserted replaced
21513:984881b316fc 21514:fa9ff387d260
24 #include "intervals.h" 24 #include "intervals.h"
25 #include "buffer.h" 25 #include "buffer.h"
26 #include "charset.h" 26 #include "charset.h"
27 #include "window.h" 27 #include "window.h"
28 #include "blockinput.h" 28 #include "blockinput.h"
29 #include "region-cache.h"
29 30
30 #ifndef NULL 31 #ifndef NULL
31 #define NULL 0 32 #define NULL 0
32 #endif 33 #endif
33 34
775 prepare_to_modify_buffer could relocate the text. */ 776 prepare_to_modify_buffer could relocate the text. */
776 777
777 void 778 void
778 insert (string, nbytes) 779 insert (string, nbytes)
779 register unsigned char *string; 780 register unsigned char *string;
780 register nbytes; 781 register int nbytes;
781 { 782 {
782 if (nbytes > 0) 783 if (nbytes > 0)
783 { 784 {
784 int opoint = PT; 785 int opoint = PT;
785 insert_1 (string, nbytes, 0, 1, 0); 786 insert_1 (string, nbytes, 0, 1, 0);
790 /* Likewise, but inherit text properties from neighboring characters. */ 791 /* Likewise, but inherit text properties from neighboring characters. */
791 792
792 void 793 void
793 insert_and_inherit (string, nbytes) 794 insert_and_inherit (string, nbytes)
794 register unsigned char *string; 795 register unsigned char *string;
795 register nbytes; 796 register int nbytes;
796 { 797 {
797 if (nbytes > 0) 798 if (nbytes > 0)
798 { 799 {
799 int opoint = PT; 800 int opoint = PT;
800 insert_1 (string, nbytes, 1, 1, 0); 801 insert_1 (string, nbytes, 1, 1, 0);
2439 signal_after_change (begpos, endpos - begpos - change, endpos - begpos); 2440 signal_after_change (begpos, endpos - begpos - change, endpos - begpos);
2440 2441
2441 return unbind_to (count, val); 2442 return unbind_to (count, val);
2442 } 2443 }
2443 2444
2445 void
2444 syms_of_insdel () 2446 syms_of_insdel ()
2445 { 2447 {
2446 staticpro (&combine_after_change_list); 2448 staticpro (&combine_after_change_list);
2447 combine_after_change_list = Qnil; 2449 combine_after_change_list = Qnil;
2448 2450