+2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
+
+ * gengtype-state.c (string_eq): New.
+ (read_state): Use string_eq instead of strcmp when creating the
+ state_ident_tab.
+
2011-04-19 Wei Guozhi <carrot@google.com>
PR target/47855
return type1->state_number == type2->state_number;
}
+static int
+string_eq (const void *a, const void *b)
+{
+ const char *a0 = (const char *)a;
+ const char *b0 = (const char *)b;
+
+ return (strcmp (a0, b0) == 0);
+}
+
/* The function reading the state, called by main from gengtype.c. */
void
state_seen_types =
htab_create (2017, hash_type_number, equals_type_number, NULL);
state_ident_tab =
- htab_create (4027, htab_hash_string, (htab_eq) strcmp, NULL);
+ htab_create (4027, htab_hash_string, string_eq, NULL);
read_state_version (version_string);
read_state_srcdir ();
read_state_languages ();