keymap: rename keymap->sym_interpret -> sym_interprets
authorRan Benita <ran234@gmail.com>
Thu, 11 Oct 2012 12:05:49 +0000 (14:05 +0200)
committerRan Benita <ran234@gmail.com>
Thu, 11 Oct 2012 12:05:49 +0000 (14:05 +0200)
This can be a bit confusing.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap-dump.c
src/keymap.c
src/keymap.h
src/xkbcomp/compat.c
src/xkbcomp/keymap.c

index fc9b7bf..5ff3b84 100644 (file)
@@ -511,7 +511,7 @@ write_compat(struct xkb_keymap *keymap, struct buf *buf)
     write_buf(buf, "\t\tinterpret.useModMapMods= AnyLevel;\n");
     write_buf(buf, "\t\tinterpret.repeat= False;\n");
 
-    darray_foreach(interp, keymap->sym_interpret) {
+    darray_foreach(interp, keymap->sym_interprets) {
         char keysym_name[64];
 
         if (interp->sym == XKB_KEY_NoSymbol)
index df215b5..49d7123 100644 (file)
@@ -106,7 +106,7 @@ xkb_keymap_unref(struct xkb_keymap *keymap)
         free(keymap->types[i].level_names);
     }
     free(keymap->types);
-    darray_free(keymap->sym_interpret);
+    darray_free(keymap->sym_interprets);
     darray_free(keymap->key_aliases);
     darray_free(keymap->group_names);
     darray_free(keymap->mods);
index 11fa743..f72599e 100644 (file)
@@ -390,7 +390,7 @@ struct xkb_keymap {
     struct xkb_key_type *types;
     unsigned int num_types;
 
-    darray(struct xkb_sym_interpret) sym_interpret;
+    darray(struct xkb_sym_interpret) sym_interprets;
 
     darray(struct xkb_mod) mods;
 
index 176a4ef..8edd587 100644 (file)
  * ----------------
  * After all of the xkb_compat sections have been compiled, the following
  * members of struct xkb_keymap are finalized:
- *      darray(struct xkb_sym_interpret) sym_interpret;
+ *      darray(struct xkb_sym_interpret) sym_interprets;
  *      darray(struct xkb_indicator_map) indicators;
  *      char *compat_section_name;
  * TODO: virtual modifiers.
@@ -997,7 +997,7 @@ CopyInterps(CompatInfo *info, bool needSymbol, enum xkb_match_operation pred)
             (!needSymbol && si->interp.sym != XKB_KEY_NoSymbol))
             continue;
 
-        darray_append(info->keymap->sym_interpret, si->interp);
+        darray_append(info->keymap->sym_interprets, si->interp);
     }
 }
 
index 78ba966..cd1f79c 100644 (file)
@@ -90,10 +90,10 @@ FindInterpForKey(struct xkb_keymap *keymap, const struct xkb_key *key,
     /*
      * There may be multiple matchings interprets; we should always return
      * the most specific. Here we rely on compat.c to set up the
-     * sym_interpret array from the most specific to the least specific,
+     * sym_interprets array from the most specific to the least specific,
      * such that when we find a match we return immediately.
      */
-    darray_foreach(interp, keymap->sym_interpret) {
+    darray_foreach(interp, keymap->sym_interprets) {
         xkb_mod_mask_t mods;
         bool found;