]> git.eshelyaron.com Git - emacs.git/commitdiff
* character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:02:42 +0000 (11:02 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 15 Mar 2011 18:02:42 +0000 (11:02 -0700)
src/ChangeLog
src/character.h

index 9f5ed0a0c31c446a68541e13e96e9774de0dac5c..d4f8061ed026aaacd7311981d3efb00bdc284a8b 100644 (file)
@@ -1,5 +1,7 @@
 2011-03-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
+
        * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
        All uses changed.
        (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
index 6d5b81101092208e977586c30e23e5baee6e49be..bbf5550c711b4d1bd1aeb2041f60dc35f25cdade 100644 (file)
@@ -451,8 +451,8 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #define INC_POS(pos_byte)                              \
   do {                                                 \
-    unsigned char *p = BYTE_POS_ADDR (pos_byte);       \
-    pos_byte += BYTES_BY_CHAR_HEAD (*p);               \
+    unsigned char *ptr = BYTE_POS_ADDR (pos_byte);     \
+    pos_byte += BYTES_BY_CHAR_HEAD (*ptr);             \
   } while (0)
 
 
@@ -461,16 +461,16 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #define DEC_POS(pos_byte)                      \
   do {                                         \
-    unsigned char *p;                          \
+    unsigned char *ptr;                                \
                                                \
     pos_byte--;                                        \
     if (pos_byte < GPT_BYTE)                   \
-      p = BEG_ADDR + pos_byte - BEG_BYTE;      \
+      ptr = BEG_ADDR + pos_byte - BEG_BYTE;    \
     else                                       \
-      p = BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE;\
-    while (!CHAR_HEAD_P (*p))                  \
+      ptr = BEG_ADDR + GAP_SIZE + pos_byte - BEG_BYTE; \
+    while (!CHAR_HEAD_P (*ptr))                        \
       {                                                \
-       p--;                                    \
+       ptr--;                                  \
        pos_byte--;                             \
       }                                                \
   } while (0)