Le 28/10/2010 16:17, Jon Senior a écrit :
> [...]
> 
> The problem appears to be related to the PLUGIN_SET_TRANSLATABLE_INFO
> macro (That's where the first error crops up).
I'm a bit doubtful about this macro creating the problem, but I've two
modifications I suggest to apply to this macro.
First, to be consistent with PLUGIN_SET_INFO, add a prototype.
Secondly -- event though I think I remember I wrote the original patch
--, I suggest to add parentheses around the arguments of
main_locale_init(), as judiciously done for all other macro parameters.

So here's a little tiny patch joined.

Regards,
Colomban
Index: src/plugindata.h
===================================================================
--- src/plugindata.h	(révision 5336)
+++ src/plugindata.h	(copie de travail)
@@ -133,9 +133,10 @@
  *
  * @since 0.19 */
 #define PLUGIN_SET_TRANSLATABLE_INFO(localedir, package, p_name, p_description, p_version, p_author) \
+	void plugin_set_info(PluginInfo* info);\
 	void plugin_set_info(PluginInfo* info) \
 	{ \
-		main_locale_init(localedir, package); \
+		main_locale_init((localedir), (package)); \
 		info->name = (p_name); \
 		info->description = (p_description); \
 		info->version = (p_version); \
_______________________________________________
Geany-devel mailing list
[email protected]
http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel

Reply via email to