+2009-11-19 Basile Starynkevitch <basile@starynkevitch.net>
+
+ * plugin.c (FMT_FOR_PLUGIN_EVENT): added definition.
+ (dump_active_plugins): output to file everything. Use
+ internationalized dump & FMT_FOR_PLUGIN_EVENT.
+
2009-11-19 Richard Guenther <rguenther@suse.de>
* gimple.c (canonicalize_cond_expr_cond): Strip conversions
"PLUGIN_EVENT_LAST"
};
+/* A printf format large enough for the largest event above. */
+#define FMT_FOR_PLUGIN_EVENT "%-26s"
+
/* Hash table for the plugin_name_args objects created during command-line
parsing. */
static htab_t plugin_name_args_tab = NULL;
if (!plugins_active_p ())
return;
- fprintf (stderr, "Event\t\t\tPlugins\n");
+ fprintf (file, FMT_FOR_PLUGIN_EVENT " | %s\n", _("Event"), _("Plugins"));
for (event = PLUGIN_PASS_MANAGER_SETUP; event < PLUGIN_EVENT_LAST; event++)
if (plugin_callbacks[event])
{
struct callback_info *ci;
- fprintf (file, "%s\t", plugin_event_name[event]);
+ fprintf (file, FMT_FOR_PLUGIN_EVENT " |", plugin_event_name[event]);
for (ci = plugin_callbacks[event]; ci; ci = ci->next)
- fprintf (file, "%s ", ci->plugin_name);
+ fprintf (file, " %s", ci->plugin_name);
- fprintf (file, "\n");
+ putc('\n', file);
}
}