aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-07 16:22:52 -0800
committerPaul Eggert2011-03-07 16:22:52 -0800
commitf60958682b055102431c24a30b598a2bf3ec97c3 (patch)
tree6f64d14c70c3e706d5f40bc8522aef47044b67b0 /src
parentd6550a9f3013b49b2d04395ed19f0ea1ec683e6c (diff)
downloademacs-f60958682b055102431c24a30b598a2bf3ec97c3.tar.gz
emacs-f60958682b055102431c24a30b598a2bf3ec97c3.zip
* charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
shadowing. * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/charset.c10
-rw-r--r--src/charset.h7
3 files changed, 12 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e3b3c8c2566..ec7322cfe43 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,7 +1,5 @@
12011-03-08 Paul Eggert <eggert@cs.ucla.edu> 12011-03-08 Paul Eggert <eggert@cs.ucla.edu>
2 2
32011-03-08 Paul Eggert <eggert@cs.ucla.edu>
4
5 * xmenu.c (menu_highlight_callback): Now static. 3 * xmenu.c (menu_highlight_callback): Now static.
6 (set_frame_menubar): Remove unused local. 4 (set_frame_menubar): Remove unused local.
7 (xmenu_show): Rename parameter to avoid shadowing. 5 (xmenu_show): Rename parameter to avoid shadowing.
@@ -30,6 +28,10 @@
30 * window.h (check_all_windows): New decl, to forestall 28 * window.h (check_all_windows): New decl, to forestall
31 gcc -Wmissing-prototypes diagnostic. 29 gcc -Wmissing-prototypes diagnostic.
32 30
31 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
32 shadowing.
33 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
34
332011-03-06 Chong Yidong <cyd@stupidchicken.com> 352011-03-06 Chong Yidong <cyd@stupidchicken.com>
34 36
35 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06 37 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
diff --git a/src/charset.c b/src/charset.c
index 3624e740acb..f2fcb5bf9d7 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -668,9 +668,9 @@ map_charset_for_dump (void (*c_function) (Lisp_Object, Lisp_Object), Lisp_Object
668 668
669 while (1) 669 while (1)
670 { 670 {
671 int index = GET_TEMP_CHARSET_WORK_ENCODER (c); 671 int idx = GET_TEMP_CHARSET_WORK_ENCODER (c);
672 672
673 if (index >= from_idx && index <= to_idx) 673 if (idx >= from_idx && idx <= to_idx)
674 { 674 {
675 if (NILP (XCAR (range))) 675 if (NILP (XCAR (range)))
676 XSETCAR (range, make_number (c)); 676 XSETCAR (range, make_number (c));
@@ -2066,10 +2066,10 @@ that case, find the charset from what supported by that coding system. */)
2066 2066
2067 for (; CONSP (restriction); restriction = XCDR (restriction)) 2067 for (; CONSP (restriction); restriction = XCDR (restriction))
2068 { 2068 {
2069 struct charset *charset; 2069 struct charset *rcharset;
2070 2070
2071 CHECK_CHARSET_GET_CHARSET (XCAR (restriction), charset); 2071 CHECK_CHARSET_GET_CHARSET (XCAR (restriction), rcharset);
2072 if (ENCODE_CHAR (charset, c) != CHARSET_INVALID_CODE (charset)) 2072 if (ENCODE_CHAR (rcharset, c) != CHARSET_INVALID_CODE (rcharset))
2073 return XCAR (restriction); 2073 return XCAR (restriction);
2074 } 2074 }
2075 return Qnil; 2075 return Qnil;
diff --git a/src/charset.h b/src/charset.h
index 1fc552a5bd3..8c87ffe6c3d 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -358,9 +358,9 @@ extern int emacs_mule_charset[256];
358 358
359#define CHECK_CHARSET_GET_CHARSET(x, charset) \ 359#define CHECK_CHARSET_GET_CHARSET(x, charset) \
360 do { \ 360 do { \
361 int id; \ 361 int csid; \
362 CHECK_CHARSET_GET_ID (x, id); \ 362 CHECK_CHARSET_GET_ID (x, csid); \
363 charset = CHARSET_FROM_ID (id); \ 363 charset = CHARSET_FROM_ID (csid); \
364 } while (0) 364 } while (0)
365 365
366 366
@@ -541,4 +541,3 @@ extern void map_charset_chars (void (*) (Lisp_Object, Lisp_Object),
541 struct charset *, unsigned, unsigned); 541 struct charset *, unsigned, unsigned);
542 542
543#endif /* EMACS_CHARSET_H */ 543#endif /* EMACS_CHARSET_H */
544