diff options
| author | Ken Raeburn | 2002-07-16 19:48:28 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-16 19:48:28 +0000 |
| commit | 641a26d22bbca70bcbc637fb07e52dfcc0e0c30a (patch) | |
| tree | 7b53af75f53ee3e026b39c418c7a7dcfa82b932c | |
| parent | c9b08ba8355a818dbd34a178c51e03ff71eb9fd3 (diff) | |
| download | emacs-641a26d22bbca70bcbc637fb07e52dfcc0e0c30a.tar.gz emacs-641a26d22bbca70bcbc637fb07e52dfcc0e0c30a.zip | |
(copy_text, count_size_as_multibyte, insert_1):
(count_combining_before, count_combining_after, insert_1_both):
(insert, insert_and_inherit, insert_string):
(insert_before_markers, insert_before_markers_and_inherit):
String pointer args now point to const.
| -rw-r--r-- | src/insdel.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/insdel.c b/src/insdel.c index 3b13df12c4a..9c5c43e7b41 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -654,7 +654,7 @@ make_gap (nbytes_added) | |||
| 654 | int | 654 | int |
| 655 | copy_text (from_addr, to_addr, nbytes, | 655 | copy_text (from_addr, to_addr, nbytes, |
| 656 | from_multibyte, to_multibyte) | 656 | from_multibyte, to_multibyte) |
| 657 | unsigned char *from_addr; | 657 | const unsigned char *from_addr; |
| 658 | unsigned char *to_addr; | 658 | unsigned char *to_addr; |
| 659 | int nbytes; | 659 | int nbytes; |
| 660 | int from_multibyte, to_multibyte; | 660 | int from_multibyte, to_multibyte; |
| @@ -723,7 +723,7 @@ copy_text (from_addr, to_addr, nbytes, | |||
| 723 | 723 | ||
| 724 | int | 724 | int |
| 725 | count_size_as_multibyte (ptr, nbytes) | 725 | count_size_as_multibyte (ptr, nbytes) |
| 726 | unsigned char *ptr; | 726 | const unsigned char *ptr; |
| 727 | int nbytes; | 727 | int nbytes; |
| 728 | { | 728 | { |
| 729 | int i; | 729 | int i; |
| @@ -755,7 +755,7 @@ count_size_as_multibyte (ptr, nbytes) | |||
| 755 | 755 | ||
| 756 | void | 756 | void |
| 757 | insert (string, nbytes) | 757 | insert (string, nbytes) |
| 758 | register unsigned char *string; | 758 | register const unsigned char *string; |
| 759 | register int nbytes; | 759 | register int nbytes; |
| 760 | { | 760 | { |
| 761 | if (nbytes > 0) | 761 | if (nbytes > 0) |
| @@ -771,7 +771,7 @@ insert (string, nbytes) | |||
| 771 | 771 | ||
| 772 | void | 772 | void |
| 773 | insert_and_inherit (string, nbytes) | 773 | insert_and_inherit (string, nbytes) |
| 774 | register unsigned char *string; | 774 | register const unsigned char *string; |
| 775 | register int nbytes; | 775 | register int nbytes; |
| 776 | { | 776 | { |
| 777 | if (nbytes > 0) | 777 | if (nbytes > 0) |
| @@ -807,7 +807,7 @@ insert_char (c) | |||
| 807 | 807 | ||
| 808 | void | 808 | void |
| 809 | insert_string (s) | 809 | insert_string (s) |
| 810 | char *s; | 810 | const char *s; |
| 811 | { | 811 | { |
| 812 | insert (s, strlen (s)); | 812 | insert (s, strlen (s)); |
| 813 | } | 813 | } |
| @@ -819,7 +819,7 @@ insert_string (s) | |||
| 819 | 819 | ||
| 820 | void | 820 | void |
| 821 | insert_before_markers (string, nbytes) | 821 | insert_before_markers (string, nbytes) |
| 822 | unsigned char *string; | 822 | const unsigned char *string; |
| 823 | register int nbytes; | 823 | register int nbytes; |
| 824 | { | 824 | { |
| 825 | if (nbytes > 0) | 825 | if (nbytes > 0) |
| @@ -836,7 +836,7 @@ insert_before_markers (string, nbytes) | |||
| 836 | 836 | ||
| 837 | void | 837 | void |
| 838 | insert_before_markers_and_inherit (string, nbytes) | 838 | insert_before_markers_and_inherit (string, nbytes) |
| 839 | unsigned char *string; | 839 | const unsigned char *string; |
| 840 | register int nbytes; | 840 | register int nbytes; |
| 841 | { | 841 | { |
| 842 | if (nbytes > 0) | 842 | if (nbytes > 0) |
| @@ -853,7 +853,7 @@ insert_before_markers_and_inherit (string, nbytes) | |||
| 853 | 853 | ||
| 854 | void | 854 | void |
| 855 | insert_1 (string, nbytes, inherit, prepare, before_markers) | 855 | insert_1 (string, nbytes, inherit, prepare, before_markers) |
| 856 | register unsigned char *string; | 856 | register const unsigned char *string; |
| 857 | register int nbytes; | 857 | register int nbytes; |
| 858 | int inherit, prepare, before_markers; | 858 | int inherit, prepare, before_markers; |
| 859 | { | 859 | { |
| @@ -871,12 +871,12 @@ insert_1 (string, nbytes, inherit, prepare, before_markers) | |||
| 871 | 871 | ||
| 872 | int | 872 | int |
| 873 | count_combining_before (string, length, pos, pos_byte) | 873 | count_combining_before (string, length, pos, pos_byte) |
| 874 | unsigned char *string; | 874 | const unsigned char *string; |
| 875 | int length; | 875 | int length; |
| 876 | int pos, pos_byte; | 876 | int pos, pos_byte; |
| 877 | { | 877 | { |
| 878 | int len, combining_bytes; | 878 | int len, combining_bytes; |
| 879 | unsigned char *p; | 879 | const unsigned char *p; |
| 880 | 880 | ||
| 881 | if (NILP (current_buffer->enable_multibyte_characters)) | 881 | if (NILP (current_buffer->enable_multibyte_characters)) |
| 882 | return 0; | 882 | return 0; |
| @@ -918,7 +918,7 @@ count_combining_before (string, length, pos, pos_byte) | |||
| 918 | 918 | ||
| 919 | int | 919 | int |
| 920 | count_combining_after (string, length, pos, pos_byte) | 920 | count_combining_after (string, length, pos, pos_byte) |
| 921 | unsigned char *string; | 921 | const unsigned char *string; |
| 922 | int length; | 922 | int length; |
| 923 | int pos, pos_byte; | 923 | int pos, pos_byte; |
| 924 | { | 924 | { |
| @@ -984,7 +984,7 @@ count_combining_after (string, length, pos, pos_byte) | |||
| 984 | 984 | ||
| 985 | void | 985 | void |
| 986 | insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers) | 986 | insert_1_both (string, nchars, nbytes, inherit, prepare, before_markers) |
| 987 | register unsigned char *string; | 987 | register const unsigned char *string; |
| 988 | register int nchars, nbytes; | 988 | register int nchars, nbytes; |
| 989 | int inherit, prepare, before_markers; | 989 | int inherit, prepare, before_markers; |
| 990 | { | 990 | { |