diff options
| author | Juanma Barranquero | 2010-06-03 21:02:32 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-06-03 21:02:32 +0200 |
| commit | aa3830c49727fa443a11eaab9dedb404349c95e1 (patch) | |
| tree | 3d33a06047a7f692aca841dd279a41890c8824df /src/composite.c | |
| parent | d234d13e4bc3748665e8592fb13c6ee29671f709 (diff) | |
| download | emacs-aa3830c49727fa443a11eaab9dedb404349c95e1.tar.gz emacs-aa3830c49727fa443a11eaab9dedb404349c95e1.zip | |
Remove obsolete pre-unicode2 macros.
* character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
* composite.c (composition_reseat_it):
* data.c (Faset):
* fns.c (Ffillarray):
* regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
[!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
Diffstat (limited to 'src/composite.c')
| -rw-r--r-- | src/composite.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/composite.c b/src/composite.c index 8a549f4796d..cab57e824a9 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -1266,7 +1266,7 @@ composition_reseat_it (cmp_it, charpos, bytepos, endpos, w, face, string) | |||
| 1266 | { | 1266 | { |
| 1267 | if (endpos < 0) | 1267 | if (endpos < 0) |
| 1268 | endpos = BEGV; | 1268 | endpos = BEGV; |
| 1269 | if (endpos < PT && PT < charpos) | 1269 | if (endpos < PT && PT < charpos) |
| 1270 | endpos = PT; | 1270 | endpos = PT; |
| 1271 | } | 1271 | } |
| 1272 | else if (endpos < 0) | 1272 | else if (endpos < 0) |
| @@ -1317,7 +1317,7 @@ composition_reseat_it (cmp_it, charpos, bytepos, endpos, w, face, string) | |||
| 1317 | || ! INTEGERP (AREF (elt, 1))) | 1317 | || ! INTEGERP (AREF (elt, 1))) |
| 1318 | continue; | 1318 | continue; |
| 1319 | if (XFASTINT (AREF (elt, 1)) != cmp_it->lookback) | 1319 | if (XFASTINT (AREF (elt, 1)) != cmp_it->lookback) |
| 1320 | goto no_composition; | 1320 | goto no_composition; |
| 1321 | lgstring = autocmp_chars (elt, charpos, bytepos, endpos, | 1321 | lgstring = autocmp_chars (elt, charpos, bytepos, endpos, |
| 1322 | w, face, string); | 1322 | w, face, string); |
| 1323 | if (composition_gstring_p (lgstring)) | 1323 | if (composition_gstring_p (lgstring)) |
| @@ -1389,7 +1389,7 @@ composition_reseat_it (cmp_it, charpos, bytepos, endpos, w, face, string) | |||
| 1389 | if (NILP (string)) | 1389 | if (NILP (string)) |
| 1390 | INC_POS (bytepos); | 1390 | INC_POS (bytepos); |
| 1391 | else | 1391 | else |
| 1392 | bytepos += MULTIBYTE_FORM_LENGTH (SDATA (string) + bytepos, 0); | 1392 | bytepos += BYTES_BY_CHAR_HEAD (*(SDATA (string) + bytepos)); |
| 1393 | } | 1393 | } |
| 1394 | else | 1394 | else |
| 1395 | { | 1395 | { |