summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-02-21 09:12:44 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-02-21 09:12:44 +0100
commit8f11de68631bc707e818da8eb15845efbcb162f4 (patch)
treeb0ed4a1e42f65074891ba5abed20d9b9ff6e47c8
parent770152dea77e3256f345671d189767e9d0e3abe5 (diff)
downloadweechat-8f11de68631bc707e818da8eb15845efbcb162f4.zip
scripts: improve comments on functions that convert hashtables
-rw-r--r--src/plugins/guile/weechat-guile.c4
-rw-r--r--src/plugins/lua/weechat-lua.c4
-rw-r--r--src/plugins/perl/weechat-perl.c4
-rw-r--r--src/plugins/python/weechat-python.c4
-rw-r--r--src/plugins/ruby/weechat-ruby.c4
-rw-r--r--src/plugins/tcl/weechat-tcl.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/guile/weechat-guile.c b/src/plugins/guile/weechat-guile.c
index f29a625ee..77af713de 100644
--- a/src/plugins/guile/weechat-guile.c
+++ b/src/plugins/guile/weechat-guile.c
@@ -190,7 +190,7 @@ weechat_guile_hashtable_map_cb (void *data,
}
/*
- * Gets guile alist with a WeeChat hashtable.
+ * Converts a WeeChat hashtable to a guile alist.
*/
SCM
@@ -208,7 +208,7 @@ weechat_guile_hashtable_to_alist (struct t_hashtable *hashtable)
}
/*
- * Gets WeeChat hashtable with guile alist.
+ * Converts a guile alist to a WeeChat hashtable.
*
* Note: hashtable must be free after use.
*/
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index 354634316..8d22946bc 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -99,7 +99,7 @@ weechat_lua_hashtable_map_cb (void *data,
}
/*
- * Puts a WeeChat hashtable on lua stack, as lua table.
+ * Converts a WeeChat hashtable to a lua hash (as lua table on the stack).
*/
void
@@ -113,7 +113,7 @@ weechat_lua_pushhashtable (lua_State *interpreter, struct t_hashtable *hashtable
}
/*
- * Gets WeeChat hashtable with lua hash (on stack).
+ * Converts a lua hash (on stack) to a WeeChat hashtable.
*
* Note: hashtable must be freed after use.
*/
diff --git a/src/plugins/perl/weechat-perl.c b/src/plugins/perl/weechat-perl.c
index c51374553..90bcb3178 100644
--- a/src/plugins/perl/weechat-perl.c
+++ b/src/plugins/perl/weechat-perl.c
@@ -120,7 +120,7 @@ weechat_perl_hashtable_map_cb (void *data,
}
/*
- * Gets perl hash with a WeeChat hashtable.
+ * Converts a WeeChat hashtable to a perl hash.
*/
HV *
@@ -140,7 +140,7 @@ weechat_perl_hashtable_to_hash (struct t_hashtable *hashtable)
}
/*
- * Gets WeeChat hashtable with perl hash.
+ * Converts a perl hash to a WeeChat hashtable.
*
* Note: hashtable must be freed after use.
*/
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 434bb6536..a9b004ee7 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -213,7 +213,7 @@ weechat_python_hashtable_map_cb (void *data,
}
/*
- * Gets python dictionary with a WeeChat hashtable.
+ * Converts a WeeChat hashtable to a python dictionary.
*/
PyObject *
@@ -236,7 +236,7 @@ weechat_python_hashtable_to_dict (struct t_hashtable *hashtable)
}
/*
- * Gets WeeChat hashtable with python dictionary.
+ * Converts a python dictionary to a WeeChat hashtable.
*
* Note: hashtable must be freed after use.
*/
diff --git a/src/plugins/ruby/weechat-ruby.c b/src/plugins/ruby/weechat-ruby.c
index 6be92393e..19b63fc8d 100644
--- a/src/plugins/ruby/weechat-ruby.c
+++ b/src/plugins/ruby/weechat-ruby.c
@@ -134,7 +134,7 @@ weechat_ruby_hashtable_map_cb (void *data,
}
/*
- * Gets ruby hash with a WeeChat hashtable.
+ * Converts a WeeChat hashtable to a ruby hash.
*/
VALUE
@@ -184,7 +184,7 @@ weechat_ruby_hash_foreach_cb (VALUE key, VALUE value, void *arg)
}
/*
- * Gets WeeChat hashtable with ruby hashtable.
+ * Converts a ruby hash to a WeeChat hashtable.
*
* Note: hashtable must be freed after use.
*/
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index d72f18572..b08831e60 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -105,7 +105,7 @@ weechat_tcl_hashtable_map_cb (void *data,
}
/*
- * Gets tcl dict with a WeeChat hashtable.
+ * Converts a WeeChat hashtable to a tcl dict.
*/
Tcl_Obj *
@@ -130,7 +130,7 @@ weechat_tcl_hashtable_to_dict (Tcl_Interp *interp,
}
/*
- * Gets WeeChat hashtable with tcl dict.
+ * Converts a tcl dict to a WeeChat hashtable.
*
* Note: hashtable must be freed after use.
*/