aboutsummaryrefslogtreecommitdiffstats
path: root/src/doc.c
diff options
context:
space:
mode:
authorAndreas Schwab2009-11-21 11:52:23 +0000
committerAndreas Schwab2009-11-21 11:52:23 +0000
commit62a6e103dd7b9d940565639d6a47c8bdee3f24ce (patch)
tree0e2ab8777e97932d73a91e328683bef10dbf7c8d /src/doc.c
parentc3b616a940d9dab7f8fe4376755a8a8f9a2ba290 (diff)
downloademacs-62a6e103dd7b9d940565639d6a47c8bdee3f24ce.tar.gz
emacs-62a6e103dd7b9d940565639d6a47c8bdee3f24ce.zip
* character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
ignored second argument. All callers changed. * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR) (RE_STRING_CHAR_AND_LENGTH): Likewise. * xdisp.c (string_char_and_length): Likewise.
Diffstat (limited to 'src/doc.c')
-rw-r--r--src/doc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc.c b/src/doc.c
index 30b909b8ce8..750e0ca7b43 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -767,9 +767,8 @@ a new string, without any text properties, is returned. */)
767 if (multibyte) 767 if (multibyte)
768 { 768 {
769 int len; 769 int len;
770 int maxlen = SDATA (string) + SBYTES (string) - strp;
771 770
772 STRING_CHAR_AND_LENGTH (strp, maxlen, len); 771 STRING_CHAR_AND_LENGTH (strp, len);
773 if (len == 1) 772 if (len == 1)
774 *bufp = *strp; 773 *bufp = *strp;
775 else 774 else
@@ -931,9 +930,8 @@ a new string, without any text properties, is returned. */)
931 else 930 else
932 { 931 {
933 int len; 932 int len;
934 int maxlen = SDATA (string) + SBYTES (string) - strp;
935 933
936 STRING_CHAR_AND_LENGTH (strp, maxlen, len); 934 STRING_CHAR_AND_LENGTH (strp, len);
937 if (len == 1) 935 if (len == 1)
938 *bufp = *strp; 936 *bufp = *strp;
939 else 937 else