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/editfns.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/editfns.c')
| -rw-r--r-- | src/editfns.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c index 8cf182dff0f..c2c5d265cb5 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -231,7 +231,7 @@ A multibyte character is handled correctly. */) | |||
| 231 | if (SCHARS (string)) | 231 | if (SCHARS (string)) |
| 232 | { | 232 | { |
| 233 | if (STRING_MULTIBYTE (string)) | 233 | if (STRING_MULTIBYTE (string)) |
| 234 | XSETFASTINT (val, STRING_CHAR (SDATA (string), SBYTES (string))); | 234 | XSETFASTINT (val, STRING_CHAR (SDATA (string))); |
| 235 | else | 235 | else |
| 236 | XSETFASTINT (val, SREF (string, 0)); | 236 | XSETFASTINT (val, SREF (string, 0)); |
| 237 | } | 237 | } |
| @@ -2983,7 +2983,7 @@ check_translation (pos, pos_byte, end, val) | |||
| 2983 | memcpy (newbuf, buf, sizeof (int) * buf_used); | 2983 | memcpy (newbuf, buf, sizeof (int) * buf_used); |
| 2984 | buf = newbuf; | 2984 | buf = newbuf; |
| 2985 | } | 2985 | } |
| 2986 | buf[buf_used++] = STRING_CHAR_AND_LENGTH (p, 0, len); | 2986 | buf[buf_used++] = STRING_CHAR_AND_LENGTH (p, len); |
| 2987 | pos_byte += len; | 2987 | pos_byte += len; |
| 2988 | } | 2988 | } |
| 2989 | if (XINT (AREF (elt, i)) != buf[i]) | 2989 | if (XINT (AREF (elt, i)) != buf[i]) |
| @@ -3052,7 +3052,7 @@ It returns the number of characters changed. */) | |||
| 3052 | Lisp_Object val; | 3052 | Lisp_Object val; |
| 3053 | 3053 | ||
| 3054 | if (multibyte) | 3054 | if (multibyte) |
| 3055 | oc = STRING_CHAR_AND_LENGTH (p, MAX_MULTIBYTE_LENGTH, len); | 3055 | oc = STRING_CHAR_AND_LENGTH (p, len); |
| 3056 | else | 3056 | else |
| 3057 | oc = *p, len = 1; | 3057 | oc = *p, len = 1; |
| 3058 | if (oc < size) | 3058 | if (oc < size) |
| @@ -3064,8 +3064,7 @@ It returns the number of characters changed. */) | |||
| 3064 | if (string_multibyte) | 3064 | if (string_multibyte) |
| 3065 | { | 3065 | { |
| 3066 | str = tt + string_char_to_byte (table, oc); | 3066 | str = tt + string_char_to_byte (table, oc); |
| 3067 | nc = STRING_CHAR_AND_LENGTH (str, MAX_MULTIBYTE_LENGTH, | 3067 | nc = STRING_CHAR_AND_LENGTH (str, str_len); |
| 3068 | str_len); | ||
| 3069 | } | 3068 | } |
| 3070 | else | 3069 | else |
| 3071 | { | 3070 | { |