diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-02-21 09:16:25 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-02-21 09:16:25 +0100 |
commit | c1a5a76d087d716e5f49afeb88352d3a126614af (patch) | |
tree | 85cb4c5ef5dfbd1465b5ca0f4340b0ddfb387b5c /src/plugins/tcl | |
parent | 8f11de68631bc707e818da8eb15845efbcb162f4 (diff) | |
download | weechat-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.c | 17 |
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; } |