diff options
| author | Andreas Schwab | 2009-11-21 11:52:23 +0000 |
|---|---|---|
| committer | Andreas Schwab | 2009-11-21 11:52:23 +0000 |
| commit | 62a6e103dd7b9d940565639d6a47c8bdee3f24ce (patch) | |
| tree | 0e2ab8777e97932d73a91e328683bef10dbf7c8d /src/doc.c | |
| parent | c3b616a940d9dab7f8fe4376755a8a8f9a2ba290 (diff) | |
| download | emacs-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.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -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 |