diff options
| author | Kenichi Handa | 2000-05-23 02:25:45 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-05-23 02:25:45 +0000 |
| commit | d1e4948d222344fc08d300536986022c7ca6aa21 (patch) | |
| tree | 9f7898d07ea1ea15292ac9e73739587a780e27b9 /src/syntax.c | |
| parent | 0574a2ed1c0e9dd63816fc88eabc64489d9f39c3 (diff) | |
| download | emacs-d1e4948d222344fc08d300536986022c7ca6aa21.tar.gz emacs-d1e4948d222344fc08d300536986022c7ca6aa21.zip | |
(skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/src/syntax.c b/src/syntax.c index c2711b90ef1..3be4aab4c96 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1361,15 +1361,9 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1361 | 1361 | ||
| 1362 | while (i_byte < size_byte) | 1362 | while (i_byte < size_byte) |
| 1363 | { | 1363 | { |
| 1364 | int c_leading_code; | 1364 | int c_leading_code = XSTRING (string)->data[i_byte]; |
| 1365 | 1365 | ||
| 1366 | if (string_multibyte) | 1366 | FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte); |
| 1367 | { | ||
| 1368 | c_leading_code = XSTRING (string)->data[i_byte]; | ||
| 1369 | FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte); | ||
| 1370 | } | ||
| 1371 | else | ||
| 1372 | c = c_leading_code = XSTRING (string)->data[i_byte++]; | ||
| 1373 | 1367 | ||
| 1374 | /* Convert multibyteness between what the string has | 1368 | /* Convert multibyteness between what the string has |
| 1375 | and what the buffer has. */ | 1369 | and what the buffer has. */ |
| @@ -1387,13 +1381,8 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1387 | if (i_byte == size_byte) | 1381 | if (i_byte == size_byte) |
| 1388 | break; | 1382 | break; |
| 1389 | 1383 | ||
| 1390 | if (string_multibyte) | 1384 | c_leading_code = XSTRING (string)->data[i_byte]; |
| 1391 | { | 1385 | FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte); |
| 1392 | c_leading_code = XSTRING (string)->data[i_byte]; | ||
| 1393 | FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte); | ||
| 1394 | } | ||
| 1395 | else | ||
| 1396 | c = c_leading_code = XSTRING (string)->data[i_byte++]; | ||
| 1397 | } | 1386 | } |
| 1398 | if (i_byte < size_byte | 1387 | if (i_byte < size_byte |
| 1399 | && XSTRING (string)->data[i_byte] == '-') | 1388 | && XSTRING (string)->data[i_byte] == '-') |
| @@ -1407,13 +1396,8 @@ skip_chars (forwardp, syntaxp, string, lim) | |||
| 1407 | break; | 1396 | break; |
| 1408 | 1397 | ||
| 1409 | /* Get the end of the range. */ | 1398 | /* Get the end of the range. */ |
| 1410 | if (string_multibyte) | 1399 | c2_leading_code = XSTRING (string)->data[i_byte]; |
| 1411 | { | 1400 | FETCH_STRING_CHAR_ADVANCE (c2, string, i, i_byte); |
| 1412 | c2_leading_code = XSTRING (string)->data[i_byte]; | ||
| 1413 | FETCH_STRING_CHAR_ADVANCE (c2, string, i, i_byte); | ||
| 1414 | } | ||
| 1415 | else | ||
| 1416 | c2 = XSTRING (string)->data[i_byte++]; | ||
| 1417 | 1401 | ||
| 1418 | if (SINGLE_BYTE_CHAR_P (c)) | 1402 | if (SINGLE_BYTE_CHAR_P (c)) |
| 1419 | { | 1403 | { |