Revision: 1828 http://geany.svn.sourceforge.net/geany/?rev=1828&view=rev Author: ntrel Date: 2007-08-27 09:29:28 -0700 (Mon, 27 Aug 2007)
Log Message: ----------- Clear PluginInfo fields in PLUGIN_INFO macro for future extensions.
Modified Paths: -------------- trunk/ChangeLog trunk/src/plugindata.h
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-08-27 16:10:19 UTC (rev 1827) +++ trunk/ChangeLog 2007-08-27 16:29:28 UTC (rev 1828) @@ -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>
Modified: trunk/src/plugindata.h =================================================================== --- trunk/src/plugindata.h 2007-08-27 16:10:19 UTC (rev 1827) +++ trunk/src/plugindata.h 2007-08-27 16:29:28 UTC (rev 1828) @@ -103,12 +103,15 @@ } 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); \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.