1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 14:56:39 +02:00

script plugins: use new macros to reduce code length

This commit is contained in:
Sebastien Helleu
2011-10-26 18:51:16 +02:00
parent b3ac47bcf1
commit d95aef2134
10 changed files with 4335 additions and 14387 deletions
File diff suppressed because it is too large Load Diff
+7 -7
View File
@@ -367,7 +367,7 @@ void
weechat_tcl_unload (struct t_plugin_script *script)
{
Tcl_Interp* interp;
void *pointer;
int *rc;
if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet)
{
@@ -378,12 +378,12 @@ weechat_tcl_unload (struct t_plugin_script *script)
if (script->shutdown_func && script->shutdown_func[0])
{
pointer = weechat_tcl_exec (script,
WEECHAT_SCRIPT_EXEC_INT,
script->shutdown_func,
NULL, NULL);
if (pointer)
free (pointer);
rc = (int *)weechat_tcl_exec (script,
WEECHAT_SCRIPT_EXEC_INT,
script->shutdown_func,
NULL, NULL);
if (rc)
free (rc);
}
interp = (Tcl_Interp*)script->interpreter;