aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-15 11:02:42 -0700
committerPaul Eggert2011-03-15 11:02:42 -0700
commit7e47afad4513977ba3cc5a175081f1c258a8ddfe (patch)
treeca829e1e27ee00e50518f5b34c70dd2e3e9a0056 /src
parent5671df8f51e552ca7d61296faf67b110b6a33235 (diff)
downloademacs-7e47afad4513977ba3cc5a175081f1c258a8ddfe.tar.gz
emacs-7e47afad4513977ba3cc5a175081f1c258a8ddfe.zip
* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/character.h14
2 files changed, 9 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9f5ed0a0c31..d4f8061ed02 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-03-15 Paul Eggert <eggert@cs.ucla.edu> 12011-03-15 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
4
3 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width. 5 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
4 All uses changed. 6 All uses changed.
5 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion): 7 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
diff --git a/src/character.h b/src/character.h
index 6d5b8110109..bbf5550c711 100644
--- a/src/character.h
+++ b/src/character.h
@@ -451,8 +451,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
451 451
452#define INC_POS(pos_byte) \ 452#define INC_POS(pos_byte) \
453 do { \ 453 do { \
454 unsigned char *p = BYTE_POS_ADDR (pos_byte); \ 454 unsigned char *ptr = BYTE_POS_ADDR (pos_byte); \
455 pos_byte += BYTES_BY_CHAR_HEAD (*p); \ 455 pos_byte += BYTES_BY_CHAR_HEAD (*ptr); \
456 } while (0) 456 } while (0)
457 457
458 458
@@ -461,16 +461,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
461 461
462#define DEC_POS(pos_byte) \ 462#define DEC_POS(pos_byte) \
463 do { \ 463 do { \
464 unsigned char *p; \ 464 unsigned char *ptr; \
465 \ 465 \
466 pos_byte--; \ 466 pos_byte--; \
467 if (pos_byte < GPT_BYTE) \ 467 if (pos_byte < GPT_BYTE) \
468 p = BEG_ADDR + pos_byte - BEG_BYTE; \ 468 ptr = BEG_ADDR + pos_byte - BEG_BYTE; \
469 else \ 469 else \
470 p = BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE;\ 470 ptr = BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE; \
471 while (!CHAR_HEAD_P (*p)) \ 471 while (!CHAR_HEAD_P (*ptr)) \
472 { \ 472 { \
473 p--; \ 473 ptr--; \
474 pos_byte--; \ 474 pos_byte--; \
475 } \ 475 } \
476 } while (0) 476 } while (0)