summaryrefslogtreecommitdiff
path: root/src/plugins/tcl
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-02-21 09:16:25 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-02-21 09:16:25 +0100
commitc1a5a76d087d716e5f49afeb88352d3a126614af (patch)
tree85cb4c5ef5dfbd1465b5ca0f4340b0ddfb387b5c /src/plugins/tcl
parent8f11de68631bc707e818da8eb15845efbcb162f4 (diff)
downloadweechat-c1a5a76d087d716e5f49afeb88352d3a126614af.zip
scripts: reformat some code to make it more readable
Diffstat (limited to 'src/plugins/tcl')
-rw-r--r--src/plugins/tcl/weechat-tcl.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index b08831e60..d0b557c26 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -145,11 +145,8 @@ weechat_tcl_dict_to_hashtable (Tcl_Interp *interp, Tcl_Obj *dict,
Tcl_Obj *key, *value;
int done;
- hashtable = weechat_hashtable_new (size,
- type_keys,
- type_values,
- NULL,
- NULL);
+ hashtable = weechat_hashtable_new (size, type_keys, type_values,
+ NULL, NULL);
if (!hashtable)
return NULL;
@@ -167,13 +164,15 @@ weechat_tcl_dict_to_hashtable (Tcl_Interp *interp, Tcl_Obj *dict,
{
weechat_hashtable_set (hashtable,
Tcl_GetString (key),
- plugin_script_str2ptr (weechat_tcl_plugin,
- NULL, NULL,
- Tcl_GetString (value)));
+ plugin_script_str2ptr (
+ weechat_tcl_plugin,
+ NULL, NULL,
+ Tcl_GetString (value)));
}
}
}
- Tcl_DictObjDone(&search);
+
+ Tcl_DictObjDone (&search);
return hashtable;
}