/* Save this prototype to the hash table. */
hash_slot = (const char **)htab_find_slot (prototype_strings, line, INSERT);
if (*hash_slot == NULL)
- {
- fprintf (stderr, "Insert\n");
*hash_slot = xstrdup (line);
- }
return 1; /* Continue the traversal. */
}
/* This is a pointer to an array of strings. */
const char ***iterator = (const char ***)info;
- fprintf (stderr, "Dumping prototype: %s\n", prototype);
-
(*iterator)[0] = prototype;
(*iterator)++;
return 1; /* Continue the traversal. */
}
-/* Comparator for quicksort. GCC complains about type if you pass
- strcmp directly to qsort. */
+/* Comparator for quicksort. */
static int
qsort_strcmp (const void *a, const void *b)
{
- return strcmp (a, b);
+ char *const *const str_a = a;
+ char *const *const str_b = b;
+ return strcmp (*str_a, *str_b);
}
/* Write the actual header contents to an already opened file. The
for (i = 0 ; i < htab_elements (prototype_strings); i++)
{
- fprintf (stderr, "Writing prototype %d: %s", i, prototype_array[i]);
size = fprintf (header, "%s", prototype_array[i]);
if (size < 0)
{