aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-03-24 01:03:03 -0700
committerPaul Eggert2011-03-24 01:03:03 -0700
commit9a2c6e0545bc418137abab8fb675f53c4f461853 (patch)
tree908dace814f60ba722d6297d7a3643290caf6823 /src
parent03d0a10961746346940115a5ff1779f4e7a455f7 (diff)
downloademacs-9a2c6e0545bc418137abab8fb675f53c4f461853.tar.gz
emacs-9a2c6e0545bc418137abab8fb675f53c4f461853.zip
* keyboard.c (syms_of_keyboard): Use the same style as later
in this function when indexing through an array. This also works around GCC bug 48267.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/keyboard.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 998e2014c69..88190f46179 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-03-24 Paul Eggert <eggert@cs.ucla.edu> 12011-03-24 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * keyboard.c (syms_of_keyboard): Use the same style as later
4 in this function when indexing through an array. This also
5 works around GCC bug 48267.
6
3 * image.c (tiff_load): Fix off-by-one image count (Bug#8336). 7 * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
4 8
5 * xselect.c (x_check_property_data): Return correct size (Bug#8335). 9 * xselect.c (x_check_property_data): Return correct size (Bug#8335).
diff --git a/src/keyboard.c b/src/keyboard.c
index fc8622de0a1..72d955637b3 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -11574,12 +11574,12 @@ syms_of_keyboard (void)
11574 last_point_position_window = Qnil; 11574 last_point_position_window = Qnil;
11575 11575
11576 { 11576 {
11577 const struct event_head *p; 11577 int i;
11578 int len = sizeof (head_table) / sizeof (head_table[0]);
11578 11579
11579 for (p = head_table; 11580 for (i = 0; i < len; i++)
11580 p < head_table + (sizeof (head_table) / sizeof (head_table[0]));
11581 p++)
11582 { 11581 {
11582 const struct event_head *p = &head_table[i];
11583 *p->var = intern_c_string (p->name); 11583 *p->var = intern_c_string (p->name);
11584 staticpro (p->var); 11584 staticpro (p->var);
11585 Fput (*p->var, Qevent_kind, *p->kind); 11585 Fput (*p->var, Qevent_kind, *p->kind);