This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [plugins][patch] Print plugin help.


On Tue, Apr 7, 2009 at 10:00, Rafael Espindola <espindola@google.com> wrote:

> 2009-04-07 ÂRafael Avila de Espindola Â<espindola@google.com>
>
> Â Â Â Â* common.opt (fhelp): Add a Var.
> Â Â Â Â* gcc-plugin.h (plugin_info): Add help.
> Â Â Â Â* plugin.c (plugin_name_args): Add help.
> Â Â Â Â(register_plugin_info): Set plugin->help.
> Â Â Â Â(print_options): New.
> Â Â Â Â(print_one_plugin): Rename to print_version_one_plugin.
> Â Â Â Â(print_version_one_plugin): Use opt->file and opt->indent.
> Â Â Â Ârenamed from print_one_plugin.
> Â Â Â Â(print_plugins_versions): Take file and indent arguments.
> Â Â Â Â(print_help_one_plugin): New.
> Â Â Â Â(print_plugins_help): New.
> Â Â Â Â* plugin.h (print_plugins_versions): Take file and indent arguments.
> Â Â Â Â(print_plugins_help): New.
> Â Â Â Â* toplev.c (print_version): Update call to print_plugins_versions.
> Â Â Â Â(toplev_main): Call print_plugins_help.
>
> 2009-04-07 ÂRafael Avila de Espindola Â<espindola@google.com>
>
> Â Â Â Â* gcc.dg/plugin/selfassign.c (plugin_init): Add help and version.

OK with:


>
> +struct print_options
> +{

Needs comment.

> +
> +void
> +print_plugins_versions (FILE *file, const char *indent)

Likewise.

> +
> +static int
> +print_help_one_plugin (void **slot, void *data)

Likewise.

>  void
> -print_plugins_versions (void)
> +print_plugins_help (FILE *file, const char *indent)

Likewise.


Diego.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]