X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fgcc-plugin.h;h=948c4397570c65a51bfda95ff97fb186aba62603;hb=6fe110773dc4e0ff861a8e05ab53ead156686b35;hp=ec12265417de92897a0f16371eac9d0e81141b74;hpb=c9036234fbf4b8b9c2b26ea3ba46e3bacd6d46fa;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/gcc-plugin.h b/gcc/gcc-plugin.h index ec12265417d..948c4397570 100644 --- a/gcc/gcc-plugin.h +++ b/gcc/gcc-plugin.h @@ -1,5 +1,5 @@ /* Public header file for plugins to include. - Copyright (C) 2009 Free Software Foundation, Inc. + Copyright (C) 2009, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -96,10 +96,16 @@ extern bool plugin_default_version_check (struct plugin_gcc_version *, typedef int (*plugin_init_func) (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version); +#ifdef __cplusplus +extern "C" { +#endif /* Declaration for "plugin_init" function so that it doesn't need to be duplicated in every plugin. */ extern int plugin_init (struct plugin_name_args *plugin_info, struct plugin_gcc_version *version); +#ifdef __cplusplus +} +#endif /* Function type for a plugin callback routine. @@ -135,4 +141,10 @@ extern void register_callback (const char *plugin_name, extern int unregister_callback (const char *plugin_name, int event); + +/* Retrieve the plugin directory name, as returned by the + -fprint-file-name=plugin argument to the gcc program, which is the + -iplugindir program argument to cc1. */ +extern const char* default_plugin_dir_name (void); + #endif /* GCC_PLUGIN_H */