Commit 7bed37e4 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.

parent 7439e5b9
...@@ -130,21 +130,27 @@ struct text_pos ...@@ -130,21 +130,27 @@ struct text_pos
/* Increment text position POS. */ /* Increment text position POS. */
#define INC_TEXT_POS(POS) \ #define INC_TEXT_POS(POS, MULTIBYTE_P) \
do \ do \
{ \ { \
++(POS).charpos; \ ++(POS).charpos; \
INC_POS ((POS).bytepos); \ if (MULTIBYTE_P) \
INC_POS ((POS).bytepos); \
else \
++(POS).bytepos; \
} \ } \
while (0) while (0)
/* Decrement text position POS. */ /* Decrement text position POS. */
#define DEC_TEXT_POS(POS) \ #define DEC_TEXT_POS(POS, MULTIBYTE_P) \
do \ do \
{ \ { \
--(POS).charpos; \ --(POS).charpos; \
DEC_POS ((POS).bytepos); \ if (MULTIBYTE_P) \
DEC_POS ((POS).bytepos); \
else \
--(POS).bytepos; \
} \ } \
while (0) while (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment