]> git.eshelyaron.com Git - emacs.git/commitdiff
* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 00:22:52 +0000 (16:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 8 Mar 2011 00:22:52 +0000 (16:22 -0800)
shadowing.
* charset.c (map_charset_for_dump, Fchar_charset): Likewise.

src/ChangeLog
src/charset.c
src/charset.h

index e3b3c8c2566aad2f7a439fae177545aabae57a0e..ec7322cfe43100ca8609b63030f573e4ea9b8ebd 100644 (file)
@@ -1,5 +1,3 @@
-2011-03-08  Paul Eggert  <eggert@cs.ucla.edu>
-
 2011-03-08  Paul Eggert  <eggert@cs.ucla.edu>
 
        * xmenu.c (menu_highlight_callback): Now static.
        * window.h (check_all_windows): New decl, to forestall
        gcc -Wmissing-prototypes diagnostic.
 
+       * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
+       shadowing.
+       * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
+
 2011-03-06  Chong Yidong  <cyd@stupidchicken.com>
 
        * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
index 3624e740acbd6bfbfd4fddae7453d84ca8042ebb..f2fcb5bf9d73431bf3e0fe88f88cfdeb7dc75301 100644 (file)
@@ -668,9 +668,9 @@ map_charset_for_dump (void (*c_function) (Lisp_Object, Lisp_Object), Lisp_Object
 
   while (1)
     {
-      int index = GET_TEMP_CHARSET_WORK_ENCODER (c);
+      int idx = GET_TEMP_CHARSET_WORK_ENCODER (c);
 
-      if (index >= from_idx && index <= to_idx)
+      if (idx >= from_idx && idx <= to_idx)
        {
          if (NILP (XCAR (range)))
            XSETCAR (range, make_number (c));
@@ -2066,10 +2066,10 @@ that case, find the charset from what supported by that coding system.  */)
 
          for (; CONSP (restriction); restriction = XCDR (restriction))
            {
-             struct charset *charset;
+             struct charset *rcharset;
 
-             CHECK_CHARSET_GET_CHARSET (XCAR (restriction), charset);
-             if (ENCODE_CHAR (charset, c) != CHARSET_INVALID_CODE (charset))
+             CHECK_CHARSET_GET_CHARSET (XCAR (restriction), rcharset);
+             if (ENCODE_CHAR (rcharset, c) != CHARSET_INVALID_CODE (rcharset))
                return XCAR (restriction);
            }
          return Qnil;
index 1fc552a5bd38eb2ff66e05977839d6825c590553..8c87ffe6c3dc009dc09fef0876569a8c34f1050f 100644 (file)
@@ -358,9 +358,9 @@ extern int emacs_mule_charset[256];
 
 #define CHECK_CHARSET_GET_CHARSET(x, charset)  \
   do {                                         \
-    int id;                                    \
-    CHECK_CHARSET_GET_ID (x, id);              \
-    charset = CHARSET_FROM_ID (id);            \
+    int csid;                                  \
+    CHECK_CHARSET_GET_ID (x, csid);            \
+    charset = CHARSET_FROM_ID (csid);          \
   } while (0)
 
 
@@ -541,4 +541,3 @@ extern void map_charset_chars (void (*) (Lisp_Object, Lisp_Object),
                                struct charset *, unsigned, unsigned);
 
 #endif /* EMACS_CHARSET_H */
-