Commit 9a2c6e05 authored by Paul Eggert's avatar Paul Eggert
Browse files

* 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.
parent 03d0a109
2011-03-24 Paul Eggert <eggert@cs.ucla.edu> 2011-03-24 Paul Eggert <eggert@cs.ucla.edu>
   
* 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.
* image.c (tiff_load): Fix off-by-one image count (Bug#8336). * image.c (tiff_load): Fix off-by-one image count (Bug#8336).
   
* xselect.c (x_check_property_data): Return correct size (Bug#8335). * xselect.c (x_check_property_data): Return correct size (Bug#8335).
...@@ -11574,12 +11574,12 @@ syms_of_keyboard (void) ...@@ -11574,12 +11574,12 @@ syms_of_keyboard (void)
last_point_position_window = Qnil; last_point_position_window = Qnil;
{ {
const struct event_head *p; int i;
int len = sizeof (head_table) / sizeof (head_table[0]);
for (p = head_table; for (i = 0; i < len; i++)
p < head_table + (sizeof (head_table) / sizeof (head_table[0]));
p++)
{ {
const struct event_head *p = &head_table[i];
*p->var = intern_c_string (p->name); *p->var = intern_c_string (p->name);
staticpro (p->var); staticpro (p->var);
Fput (*p->var, Qevent_kind, *p->kind); Fput (*p->var, Qevent_kind, *p->kind);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment