Mercurial > hg > CbC > CbC_gcc
comparison gcc/gcc-plugin.h @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 /* Public header file for plugins to include. | 1 /* Public header file for plugins to include. |
2 Copyright (C) 2009 Free Software Foundation, Inc. | 2 Copyright (C) 2009, 2010 Free Software Foundation, Inc. |
3 | 3 |
4 This file is part of GCC. | 4 This file is part of GCC. |
5 | 5 |
6 GCC is free software; you can redistribute it and/or modify | 6 GCC is free software; you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
94 Returns 0 if initialization finishes successfully. */ | 94 Returns 0 if initialization finishes successfully. */ |
95 | 95 |
96 typedef int (*plugin_init_func) (struct plugin_name_args *plugin_info, | 96 typedef int (*plugin_init_func) (struct plugin_name_args *plugin_info, |
97 struct plugin_gcc_version *version); | 97 struct plugin_gcc_version *version); |
98 | 98 |
99 #ifdef __cplusplus | |
100 extern "C" { | |
101 #endif | |
99 /* Declaration for "plugin_init" function so that it doesn't need to be | 102 /* Declaration for "plugin_init" function so that it doesn't need to be |
100 duplicated in every plugin. */ | 103 duplicated in every plugin. */ |
101 extern int plugin_init (struct plugin_name_args *plugin_info, | 104 extern int plugin_init (struct plugin_name_args *plugin_info, |
102 struct plugin_gcc_version *version); | 105 struct plugin_gcc_version *version); |
106 #ifdef __cplusplus | |
107 } | |
108 #endif | |
103 | 109 |
104 /* Function type for a plugin callback routine. | 110 /* Function type for a plugin callback routine. |
105 | 111 |
106 GCC_DATA - event-specific data provided by GCC | 112 GCC_DATA - event-specific data provided by GCC |
107 USER_DATA - plugin-specific data provided by the plugin */ | 113 USER_DATA - plugin-specific data provided by the plugin */ |
133 plugin_callback_func callback, | 139 plugin_callback_func callback, |
134 void *user_data); | 140 void *user_data); |
135 | 141 |
136 extern int unregister_callback (const char *plugin_name, int event); | 142 extern int unregister_callback (const char *plugin_name, int event); |
137 | 143 |
144 | |
145 /* Retrieve the plugin directory name, as returned by the | |
146 -fprint-file-name=plugin argument to the gcc program, which is the | |
147 -iplugindir program argument to cc1. */ | |
148 extern const char* default_plugin_dir_name (void); | |
149 | |
138 #endif /* GCC_PLUGIN_H */ | 150 #endif /* GCC_PLUGIN_H */ |