diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2009-11-21 11:52:23 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2009-11-21 11:52:23 +0000 |
commit | 62a6e103dd7b9d940565639d6a47c8bdee3f24ce (patch) | |
tree | 0e2ab8777e97932d73a91e328683bef10dbf7c8d /src/syntax.c | |
parent | c3b616a940d9dab7f8fe4376755a8a8f9a2ba290 (diff) | |
download | emacs-62a6e103dd7b9d940565639d6a47c8bdee3f24ce.tar.gz |
* 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/syntax.c')
-rw-r--r-- | src/syntax.c | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/syntax.c b/src/syntax.c index 203792960ca..e19bfc15d1c 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -911,8 +911,7 @@ text property. */) if (*p) { int len; - int character = (STRING_CHAR_AND_LENGTH - (p, SBYTES (string) - 1, len)); + int character = STRING_CHAR_AND_LENGTH (p, len); XSETINT (match, character); if (XFASTINT (match) == ' ') match = Qnil; @@ -1588,12 +1587,12 @@ skip_chars (forwardp, string, lim, handle_iso_classes) unsigned char leading_code; leading_code = str[i_byte]; - c = STRING_CHAR_AND_LENGTH (str + i_byte, size_byte-i_byte, len); + c = STRING_CHAR_AND_LENGTH (str + i_byte, len); i_byte += len; if (handle_iso_classes && c == '[' && i_byte < size_byte - && STRING_CHAR (str + i_byte, size_byte - i_byte) == ':') + && STRING_CHAR (str + i_byte) == ':') { const unsigned char *class_beg = str + i_byte + 1; const unsigned char *class_end = class_beg; @@ -1633,8 +1632,7 @@ skip_chars (forwardp, string, lim, handle_iso_classes) break; leading_code = str[i_byte]; - c = STRING_CHAR_AND_LENGTH (str + i_byte, - size_byte - i_byte, len); + c = STRING_CHAR_AND_LENGTH (str + i_byte, len); i_byte += len; } /* Treat `-' as range character only if another character @@ -1650,15 +1648,14 @@ skip_chars (forwardp, string, lim, handle_iso_classes) /* Get the end of the range. */ leading_code2 = str[i_byte]; - c2 = STRING_CHAR_AND_LENGTH (str + i_byte, - size_byte - i_byte, len); + c2 = STRING_CHAR_AND_LENGTH (str + i_byte, len); i_byte += len; if (c2 == '\\' && i_byte < size_byte) { leading_code2 = str[i_byte]; - c2 =STRING_CHAR_AND_LENGTH (str + i_byte, size_byte-i_byte, len); + c2 =STRING_CHAR_AND_LENGTH (str + i_byte, len); i_byte += len; } @@ -1764,7 +1761,7 @@ skip_chars (forwardp, string, lim, handle_iso_classes) p = GAP_END_ADDR; stop = endp; } - c = STRING_CHAR_AND_LENGTH (p, MAX_MULTIBYTE_LENGTH, nbytes); + c = STRING_CHAR_AND_LENGTH (p, nbytes); if (! NILP (iso_classes) && in_classes (c, iso_classes)) { if (negate) @@ -1835,7 +1832,7 @@ skip_chars (forwardp, string, lim, handle_iso_classes) } prev_p = p; while (--p >= stop && ! CHAR_HEAD_P (*p)); - c = STRING_CHAR (p, MAX_MULTIBYTE_LENGTH); + c = STRING_CHAR (p); if (! NILP (iso_classes) && in_classes (c, iso_classes)) { @@ -1989,7 +1986,7 @@ skip_syntaxes (forwardp, string, lim) p = GAP_END_ADDR; stop = endp; } - c = STRING_CHAR_AND_LENGTH (p, MAX_MULTIBYTE_LENGTH, nbytes); + c = STRING_CHAR_AND_LENGTH (p, nbytes); if (! fastmap[(int) SYNTAX (c)]) break; p += nbytes, pos++, pos_byte += nbytes; @@ -2032,7 +2029,7 @@ skip_syntaxes (forwardp, string, lim) UPDATE_SYNTAX_TABLE_BACKWARD (pos - 1); prev_p = p; while (--p >= stop && ! CHAR_HEAD_P (*p)); - c = STRING_CHAR (p, MAX_MULTIBYTE_LENGTH); + c = STRING_CHAR (p); if (! fastmap[(int) SYNTAX (c)]) break; pos--, pos_byte -= prev_p - p; |