Kaydet (Commit) 8e12775c authored tarafından Nick Treleaven's avatar Nick Treleaven

Clear PluginInfo fields in PLUGIN_INFO macro for future extensions.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1828 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 1c36ba9a
......@@ -5,6 +5,8 @@
related preferences.
Change some table spacing to multiples of 3.
Rename Misc., Behaviour -> Miscellaneous.
* src/plugindata.h:
Clear PluginInfo fields in PLUGIN_INFO macro for future extensions.
2007-08-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
......@@ -103,12 +103,15 @@ typedef struct PluginInfo
}
PluginInfo;
#include <string.h>
/* Sets the plugin name and a brief description of what it is. */
#define PLUGIN_INFO(p_name, p_description, p_version) \
PluginInfo *info() \
{ \
static PluginInfo p_info; \
\
\
memset(&p_info, 0, sizeof(PluginInfo)); \
p_info.name = (p_name); \
p_info.description = (p_description); \
p_info.version = (p_version); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment