SF.net SVN: geany:[5341] trunk
ntrel at users.sourceforge.net
ntrel at xxxxx
Thu Oct 28 16:44:52 UTC 2010
Revision: 5341
http://geany.svn.sourceforge.net/geany/?rev=5341&view=rev
Author: ntrel
Date: 2010-10-28 16:44:52 +0000 (Thu, 28 Oct 2010)
Log Message:
-----------
Move plugin_set_info prototype and parenthesize arguments for
PLUGIN_SET_TRANSLATABLE_INFO (based on patch by Colomban Wendling,
thanks).
Fix putting pointer symbol before name, not after type.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/plugindata.h
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-10-28 16:19:26 UTC (rev 5340)
+++ trunk/ChangeLog 2010-10-28 16:44:52 UTC (rev 5341)
@@ -7,6 +7,11 @@
Make Python use named styles for color scheme support - use
alt.conf color scheme if you want the old colors.
Add named style 'function'.
+ * src/plugindata.h:
+ Move plugin_set_info prototype and parenthesize arguments for
+ PLUGIN_SET_TRANSLATABLE_INFO (based on patch by Colomban Wendling,
+ thanks).
+ Fix putting pointer symbol before name, not after type.
2010-10-27 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/plugindata.h
===================================================================
--- trunk/src/plugindata.h 2010-10-28 16:19:26 UTC (rev 5340)
+++ trunk/src/plugindata.h 2010-10-28 16:44:52 UTC (rev 5341)
@@ -59,6 +59,7 @@
GEANY_ABI_VERSION = 68
};
+
/** Defines a function to check the plugin is safe to load.
* This performs runtime checks that try to ensure:
* - Geany ABI data types are compatible with this plugin.
@@ -68,7 +69,6 @@
* want your plugin to require the current Geany version on your machine.
* You should update this value when using any new API features. */
#define PLUGIN_VERSION_CHECK(api_required) \
- gint plugin_version_check(gint abi_ver);\
gint plugin_version_check(gint abi_ver) \
{ \
if (abi_ver != GEANY_ABI_VERSION) \
@@ -114,8 +114,7 @@
* extra PluginInfo features (such as an icon), so we don't need to break API
* compatibility. Alternatively just add a new macro, PLUGIN_SET_INFO_FULL(). -ntrel */
#define PLUGIN_SET_INFO(p_name, p_description, p_version, p_author) \
- void plugin_set_info(PluginInfo* info);\
- void plugin_set_info(PluginInfo* info) \
+ void plugin_set_info(PluginInfo *info) \
{ \
info->name = (p_name); \
info->description = (p_description); \
@@ -133,15 +132,25 @@
*
* @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); \
info->author = (p_author); \
}
+
+#ifndef GEANY_PRIVATE
+
+/* Prototypes for building plugins with -Wmissing-prototypes */
+gint plugin_version_check(gint abi_ver);
+void plugin_set_info(PluginInfo *info);
+
+#endif
+
+
/** @deprecated - use plugin_set_key_group() instead.
* @see PLUGIN_KEY_GROUP() macro. */
typedef struct GeanyKeyGroupInfo
@@ -307,7 +316,7 @@
typedef struct ScintillaFuncs
{
/** Send Scintilla a message. */
- long int (*scintilla_send_message) (struct _ScintillaObject* sci, unsigned int iMessage,
+ long int (*scintilla_send_message) (struct _ScintillaObject *sci, unsigned int iMessage,
long unsigned int wParam, long int lParam);
/** Create a new ScintillaObject widget. */
GtkWidget* (*scintilla_new)(void);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list