1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

Fix bug with weechat_plugin_end() function, now returns "int" everywhere

This commit is contained in:
Sebastien Helleu
2008-02-25 17:31:04 +01:00
parent 8d23a7b4da
commit 17804ea08b
6 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
#include "weechat-plugin.h"
typedef int (t_weechat_init_func) (struct t_weechat_plugin *plugin);
typedef void (t_weechat_end_func) (struct t_weechat_plugin *plugin);
typedef int (t_weechat_end_func) (struct t_weechat_plugin *plugin);
extern struct t_weechat_plugin *weechat_plugins;
extern struct t_weechat_plugin *last_weechat_plugin;
+3 -1
View File
@@ -459,7 +459,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
* weechat_plugin_end: shutdown Lua interface
*/
void
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* make C compiler happy */
@@ -467,4 +467,6 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
/* unload all scripts */
weechat_lua_unload_all ();
return WEECHAT_RC_OK;
}
+3 -1
View File
@@ -610,7 +610,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
* weechat_plugin_end: end Perl plugin
*/
void
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* make C compiler happy */
@@ -628,4 +628,6 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
perl_main = NULL;
}
#endif
return WEECHAT_RC_OK;
}
+3 -1
View File
@@ -649,7 +649,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
* weechat_plugin_end: shutdown Python interface
*/
void
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* make C compiler happy */
@@ -674,4 +674,6 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
weechat_gettext ("%s%s: unable to free interpreter"),
weechat_prefix ("error"), "python");
}
return WEECHAT_RC_OK;
}
+3 -1
View File
@@ -701,7 +701,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin)
* weechat_plugin_end: shutdown Ruby interface
*/
void
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
/* make C compiler happy */
@@ -711,4 +711,6 @@ weechat_plugin_end (struct t_weechat_plugin *plugin)
weechat_ruby_unload_all ();
ruby_finalize();
return WEECHAT_RC_OK;
}
+3
View File
@@ -340,6 +340,9 @@ struct t_weechat_plugin
/* WeeChat developers: ALWAYS add new functions at the end */
};
extern int weechat_plugin_init (struct t_weechat_plugin *plugin);
extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
/* macros for easy call to plugin API */
/* strings */