# HG changeset patch # User Gerd Moellmann # Date 954172954 0 # Node ID 37743eccd7aaf1c9e7d4a04bd43c7d029c438cfe # Parent 81f630fe3816e24145cc3f7a08ebf53727f53b69 (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P. diff -r 81f630fe3816 -r 37743eccd7aa src/dispextern.h --- a/src/dispextern.h Mon Mar 27 15:48:36 2000 +0000 +++ b/src/dispextern.h Mon Mar 27 16:02:34 2000 +0000 @@ -130,21 +130,27 @@ /* Increment text position POS. */ -#define INC_TEXT_POS(POS) \ +#define INC_TEXT_POS(POS, MULTIBYTE_P) \ do \ { \ ++(POS).charpos; \ - INC_POS ((POS).bytepos); \ + if (MULTIBYTE_P) \ + INC_POS ((POS).bytepos); \ + else \ + ++(POS).bytepos; \ } \ while (0) /* Decrement text position POS. */ -#define DEC_TEXT_POS(POS) \ +#define DEC_TEXT_POS(POS, MULTIBYTE_P) \ do \ { \ --(POS).charpos; \ - DEC_POS ((POS).bytepos); \ + if (MULTIBYTE_P) \ + DEC_POS ((POS).bytepos); \ + else \ + --(POS).bytepos; \ } \ while (0)