summaryrefslogtreecommitdiff
path: root/src/plugins/tcl
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/tcl')
-rw-r--r--src/plugins/tcl/weechat-tcl-api.c910
-rw-r--r--src/plugins/tcl/weechat-tcl.c56
2 files changed, 35 insertions, 931 deletions
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c
index 5e89aa3f3..5a0ed7454 100644
--- a/src/plugins/tcl/weechat-tcl-api.c
+++ b/src/plugins/tcl/weechat-tcl-api.c
@@ -209,7 +209,7 @@
/*
- * weechat_tcl_api_register: startup function for all WeeChat Tcl scripts
+ * Registers a tcl script.
*/
static int
@@ -285,8 +285,10 @@ weechat_tcl_api_register (ClientData clientData, Tcl_Interp *interp, int objc,
}
/*
- * weechat_tcl_api_plugin_get_name: get name of plugin (return "core" for
- * WeeChat core)
+ * Wrappers for functions in scripting API.
+ *
+ * For more info about these functions, look at their implementation in WeeChat
+ * core.
*/
static int
@@ -309,10 +311,6 @@ weechat_tcl_api_plugin_get_name (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_charset_set: set script charset
- */
-
static int
weechat_tcl_api_charset_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -330,11 +328,6 @@ weechat_tcl_api_charset_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_iconv_to_internal: convert string to internal WeeChat
- * charset
- */
-
static int
weechat_tcl_api_iconv_to_internal (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -355,11 +348,6 @@ weechat_tcl_api_iconv_to_internal (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_iconv_from_internal: convert string from WeeChat inernal
- * charset to another one
- */
-
static int
weechat_tcl_api_iconv_from_internal (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -380,10 +368,6 @@ weechat_tcl_api_iconv_from_internal (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_gettext: get translated string
- */
-
static int
weechat_tcl_api_gettext (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -401,10 +385,6 @@ weechat_tcl_api_gettext (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_ngettext: get translated string with plural form
- */
-
static int
weechat_tcl_api_ngettext (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -429,12 +409,6 @@ weechat_tcl_api_ngettext (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_string_match: return 1 if string matches a mask
- * mask can begin or end with "*", no other "*"
- * are allowed inside mask
- */
-
static int
weechat_tcl_api_string_match (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -458,14 +432,6 @@ weechat_tcl_api_string_match (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_string_has_highlight: return 1 if string contains a
- * highlight (using list of words to
- * highlight)
- * return 0 if no highlight is found in
- * string
- */
-
static int
weechat_tcl_api_string_has_highlight (ClientData clientData,
Tcl_Interp *interp,
@@ -487,14 +453,6 @@ weechat_tcl_api_string_has_highlight (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_string_has_highlight_regex: return 1 if string contains a
- * highlight (using a regular
- * expression)
- * return 0 if no highlight is
- * found in string
- */
-
static int
weechat_tcl_api_string_has_highlight_regex (ClientData clientData,
Tcl_Interp *interp,
@@ -516,13 +474,6 @@ weechat_tcl_api_string_has_highlight_regex (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_string_mask_to_regex: convert a mask (string with only
- * "*" as wildcard) to a regex, paying
- * attention to special chars in a
- * regex
- */
-
static int
weechat_tcl_api_string_mask_to_regex (ClientData clientData,
Tcl_Interp *interp,
@@ -543,10 +494,6 @@ weechat_tcl_api_string_mask_to_regex (ClientData clientData,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_string_remove_color: remove WeeChat color codes from string
- */
-
static int
weechat_tcl_api_string_remove_color (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -567,11 +514,6 @@ weechat_tcl_api_string_remove_color (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_string_is_command_char: check if first char of string is a
- * command char
- */
-
static int
weechat_tcl_api_string_is_command_char (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -588,12 +530,6 @@ weechat_tcl_api_string_is_command_char (ClientData clientData, Tcl_Interp *inter
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_string_input_for_buffer: return string with input text
- * for buffer or empty string if
- * it's a command
- */
-
static int
weechat_tcl_api_string_input_for_buffer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -611,11 +547,6 @@ weechat_tcl_api_string_input_for_buffer (ClientData clientData, Tcl_Interp *inte
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_string_eval_expression: evaluate an expression and return
- * result
- */
-
static int
weechat_tcl_api_string_eval_expression (ClientData clientData,
Tcl_Interp *interp,
@@ -650,10 +581,6 @@ weechat_tcl_api_string_eval_expression (ClientData clientData,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_mkdir_home: create a directory in WeeChat home
- */
-
static int
weechat_tcl_api_mkdir_home (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -675,10 +602,6 @@ weechat_tcl_api_mkdir_home (ClientData clientData, Tcl_Interp *interp,
API_RETURN_ERROR;
}
-/*
- * weechat_tcl_api_mkdir: create a directory
- */
-
static int
weechat_tcl_api_mkdir (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -700,11 +623,6 @@ weechat_tcl_api_mkdir (ClientData clientData, Tcl_Interp *interp,
API_RETURN_ERROR;
}
-/*
- * weechat_tcl_api_mkdir_parents: create a directory and make parent
- * directories as needed
- */
-
static int
weechat_tcl_api_mkdir_parents (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -726,10 +644,6 @@ weechat_tcl_api_mkdir_parents (ClientData clientData, Tcl_Interp *interp,
API_RETURN_ERROR;
}
-/*
- * weechat_tcl_api_list_new: create a new list
- */
-
static int
weechat_tcl_api_list_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -749,10 +663,6 @@ weechat_tcl_api_list_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_add: add a string to list
- */
-
static int
weechat_tcl_api_list_add (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -779,10 +689,6 @@ weechat_tcl_api_list_add (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_search: search a string in list
- */
-
static int
weechat_tcl_api_list_search (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -804,10 +710,6 @@ weechat_tcl_api_list_search (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_search_pos: search position of a string in list
- */
-
static int
weechat_tcl_api_list_search_pos (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -828,10 +730,6 @@ weechat_tcl_api_list_search_pos (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(pos);
}
-/*
- * weechat_tcl_api_list_casesearch: search a string in list (ignore case)
- */
-
static int
weechat_tcl_api_list_casesearch (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -853,11 +751,6 @@ weechat_tcl_api_list_casesearch (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_casesearch_pos: search position of a string in list
- * (ignore case)
- */
-
static int
weechat_tcl_api_list_casesearch_pos (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -878,10 +771,6 @@ weechat_tcl_api_list_casesearch_pos (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(pos);
}
-/*
- * weechat_tcl_api_list_get: get item by position
- */
-
static int
weechat_tcl_api_list_get (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -903,10 +792,6 @@ weechat_tcl_api_list_get (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_set: set new value for item
- */
-
static int
weechat_tcl_api_list_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -927,10 +812,6 @@ weechat_tcl_api_list_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_list_next: get next item
- */
-
static int
weechat_tcl_api_list_next (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -948,10 +829,6 @@ weechat_tcl_api_list_next (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_prev: get previous item
- */
-
static int
weechat_tcl_api_list_prev (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -969,10 +846,6 @@ weechat_tcl_api_list_prev (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_list_string: get string value of item
- */
-
static int
weechat_tcl_api_list_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -990,10 +863,6 @@ weechat_tcl_api_list_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_list_size: get number of elements in list
- */
-
static int
weechat_tcl_api_list_size (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1011,10 +880,6 @@ weechat_tcl_api_list_size (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(size);
}
-/*
- * weechat_tcl_api_list_remove: remove item from list
- */
-
static int
weechat_tcl_api_list_remove (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1036,10 +901,6 @@ weechat_tcl_api_list_remove (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_list_remove_all: remove all items from list
- */
-
static int
weechat_tcl_api_list_remove_all (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1058,10 +919,6 @@ weechat_tcl_api_list_remove_all (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_list_free: free list
- */
-
static int
weechat_tcl_api_list_free (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1078,10 +935,6 @@ weechat_tcl_api_list_free (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_reload_cb: callback for config reload
- */
-
int
weechat_tcl_api_config_reload_cb (void *data,
struct t_config_file *config_file)
@@ -1120,10 +973,6 @@ weechat_tcl_api_config_reload_cb (void *data,
return WEECHAT_CONFIG_READ_FILE_NOT_FOUND;
}
-/*
- * weechat_tcl_api_config_new: create a new configuration file
- */
-
static int
weechat_tcl_api_config_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1150,11 +999,6 @@ weechat_tcl_api_config_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_config_section_read_cb: callback for reading option in
- * section
- */
-
int
weechat_tcl_api_config_section_read_cb (void *data,
struct t_config_file *config_file,
@@ -1199,10 +1043,6 @@ weechat_tcl_api_config_section_read_cb (void *data,
return WEECHAT_CONFIG_OPTION_SET_ERROR;
}
-/*
- * weechat_tcl_api_config_section_write_cb: callback for writing section
- */
-
int
weechat_tcl_api_config_section_write_cb (void *data,
struct t_config_file *config_file,
@@ -1242,11 +1082,6 @@ weechat_tcl_api_config_section_write_cb (void *data,
return WEECHAT_CONFIG_WRITE_ERROR;
}
-/*
- * weechat_tcl_api_config_section_write_default_cb: callback for writing
- * default values for section
- */
-
int
weechat_tcl_api_config_section_write_default_cb (void *data,
struct t_config_file *config_file,
@@ -1286,11 +1121,6 @@ weechat_tcl_api_config_section_write_default_cb (void *data,
return WEECHAT_CONFIG_WRITE_ERROR;
}
-/*
- * weechat_tcl_api_config_section_create_option_cb: callback to create an
- * option
- */
-
int
weechat_tcl_api_config_section_create_option_cb (void *data,
struct t_config_file *config_file,
@@ -1336,11 +1166,6 @@ weechat_tcl_api_config_section_create_option_cb (void *data,
return WEECHAT_CONFIG_OPTION_SET_ERROR;
}
-/*
- * weechat_tcl_api_config_section_delete_option_cb: callback to delete an
- * option
- */
-
int
weechat_tcl_api_config_section_delete_option_cb (void *data,
struct t_config_file *config_file,
@@ -1386,11 +1211,6 @@ weechat_tcl_api_config_section_delete_option_cb (void *data,
return WEECHAT_CONFIG_OPTION_UNSET_ERROR;
}
-/*
- * weechat_tcl_api_config_new_section: create a new section in configuration
- * file
- */
-
static int
weechat_tcl_api_config_new_section (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1451,10 +1271,6 @@ weechat_tcl_api_config_new_section (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_config_search_section: search section in configuration file
- */
-
static int
weechat_tcl_api_config_search_section (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1477,11 +1293,6 @@ weechat_tcl_api_config_search_section (ClientData clientData, Tcl_Interp *interp
}
-/*
- * weechat_tcl_api_config_option_check_value_cb: callback for checking new
- * value for option
- */
-
int
weechat_tcl_api_config_option_check_value_cb (void *data,
struct t_config_option *option,
@@ -1521,10 +1332,6 @@ weechat_tcl_api_config_option_check_value_cb (void *data,
return 0;
}
-/*
- * weechat_tcl_api_config_option_change_cb: callback for option changed
- */
-
void
weechat_tcl_api_config_option_change_cb (void *data,
struct t_config_option *option)
@@ -1554,10 +1361,6 @@ weechat_tcl_api_config_option_change_cb (void *data,
}
}
-/*
- * weechat_tcl_api_config_option_delete_cb: callback when option is deleted
- */
-
void
weechat_tcl_api_config_option_delete_cb (void *data,
struct t_config_option *option)
@@ -1587,10 +1390,6 @@ weechat_tcl_api_config_option_delete_cb (void *data,
}
}
-/*
- * weechat_tcl_api_config_new_option: create a new option in section
- */
-
static int
weechat_tcl_api_config_new_option (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1652,11 +1451,6 @@ weechat_tcl_api_config_new_option (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_config_search_option: search option in configuration file or
- * section
- */
-
static int
weechat_tcl_api_config_search_option (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1680,10 +1474,6 @@ weechat_tcl_api_config_search_option (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_config_string_to_boolean: return boolean value of a string
- */
-
static int
weechat_tcl_api_config_string_to_boolean (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1700,10 +1490,6 @@ weechat_tcl_api_config_string_to_boolean (ClientData clientData, Tcl_Interp *int
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_option_reset: reset an option with default value
- */
-
static int
weechat_tcl_api_config_option_reset (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1728,10 +1514,6 @@ weechat_tcl_api_config_option_reset (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_option_set: set new value for option
- */
-
static int
weechat_tcl_api_config_option_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1758,10 +1540,6 @@ weechat_tcl_api_config_option_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_option_set_null: set null (undefined)value for option
- */
-
static int
weechat_tcl_api_config_option_set_null (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1786,10 +1564,6 @@ weechat_tcl_api_config_option_set_null (ClientData clientData, Tcl_Interp *inter
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_option_unset: unset an option
- */
-
static int
weechat_tcl_api_config_option_unset (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1810,10 +1584,6 @@ weechat_tcl_api_config_option_unset (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_option_rename: rename an option
- */
-
static int
weechat_tcl_api_config_option_rename (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1835,10 +1605,6 @@ weechat_tcl_api_config_option_rename (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_option_is_null: return 1 if value of option is null
- */
-
static int
weechat_tcl_api_config_option_is_null (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1855,11 +1621,6 @@ weechat_tcl_api_config_option_is_null (ClientData clientData, Tcl_Interp *interp
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_option_default_is_null: return 1 if default value of
- * option is null
- */
-
static int
weechat_tcl_api_config_option_default_is_null (ClientData clientData,
Tcl_Interp *interp,
@@ -1877,10 +1638,6 @@ weechat_tcl_api_config_option_default_is_null (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_boolean: return boolean value of option
- */
-
static int
weechat_tcl_api_config_boolean (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1897,10 +1654,6 @@ weechat_tcl_api_config_boolean (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_boolean_default: return default boolean value of option
- */
-
static int
weechat_tcl_api_config_boolean_default (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1917,10 +1670,6 @@ weechat_tcl_api_config_boolean_default (ClientData clientData, Tcl_Interp *inter
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_integer: return integer value of option
- */
-
static int
weechat_tcl_api_config_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1937,10 +1686,6 @@ weechat_tcl_api_config_integer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_integer_default: return default integer value of option
- */
-
static int
weechat_tcl_api_config_integer_default (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1957,10 +1702,6 @@ weechat_tcl_api_config_integer_default (ClientData clientData, Tcl_Interp *inter
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_config_string: return string value of option
- */
-
static int
weechat_tcl_api_config_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1978,10 +1719,6 @@ weechat_tcl_api_config_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_config_string_default: return default string value of option
- */
-
static int
weechat_tcl_api_config_string_default (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -1999,10 +1736,6 @@ weechat_tcl_api_config_string_default (ClientData clientData, Tcl_Interp *interp
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_config_color: return color value of option
- */
-
static int
weechat_tcl_api_config_color (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2020,10 +1753,6 @@ weechat_tcl_api_config_color (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_config_color_default: return default color value of option
- */
-
static int
weechat_tcl_api_config_color_default (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2041,10 +1770,6 @@ weechat_tcl_api_config_color_default (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_config_write_option: write an option in configuration file
- */
-
static int
weechat_tcl_api_config_write_option (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2066,10 +1791,6 @@ weechat_tcl_api_config_write_option (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_write_line: write a line in configuration file
- */
-
static int
weechat_tcl_api_config_write_line (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2092,10 +1813,6 @@ weechat_tcl_api_config_write_line (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_write: write configuration file
- */
-
static int
weechat_tcl_api_config_write (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2113,10 +1830,6 @@ weechat_tcl_api_config_write (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_read: read configuration file
- */
-
static int
weechat_tcl_api_config_read (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2134,10 +1847,6 @@ weechat_tcl_api_config_read (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_reload: reload configuration file
- */
-
static int
weechat_tcl_api_config_reload (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2155,10 +1864,6 @@ weechat_tcl_api_config_reload (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_option_free: free an option in configuration file
- */
-
static int
weechat_tcl_api_config_option_free (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2177,11 +1882,6 @@ weechat_tcl_api_config_option_free (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_section_free_options: free all options of a section
- * in configuration file
- */
-
static int
weechat_tcl_api_config_section_free_options (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2200,10 +1900,6 @@ weechat_tcl_api_config_section_free_options (ClientData clientData, Tcl_Interp *
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_section_free: free section in configuration file
- */
-
static int
weechat_tcl_api_config_section_free (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2222,10 +1918,6 @@ weechat_tcl_api_config_section_free (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_free: free configuration file
- */
-
static int
weechat_tcl_api_config_free (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2244,10 +1936,6 @@ weechat_tcl_api_config_free (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_get: get config option
- */
-
static int
weechat_tcl_api_config_get (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2265,10 +1953,6 @@ weechat_tcl_api_config_get (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_config_get_plugin: get value of a plugin option
- */
-
static int
weechat_tcl_api_config_get_plugin (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2288,10 +1972,6 @@ weechat_tcl_api_config_get_plugin (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_config_is_set_plugin: check if a plugin option is set
- */
-
static int
weechat_tcl_api_config_is_set_plugin (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2313,10 +1993,6 @@ weechat_tcl_api_config_is_set_plugin (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_set_plugin: set value of a plugin option
- */
-
static int
weechat_tcl_api_config_set_plugin (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2340,10 +2016,6 @@ weechat_tcl_api_config_set_plugin (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_config_set_desc_plugin: set description of a plugin option
- */
-
static int
weechat_tcl_api_config_set_desc_plugin (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2367,10 +2039,6 @@ weechat_tcl_api_config_set_desc_plugin (ClientData clientData, Tcl_Interp *inter
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_config_set_plugin: unset plugin option
- */
-
static int
weechat_tcl_api_config_unset_plugin (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2392,10 +2060,6 @@ weechat_tcl_api_config_unset_plugin (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_key_bind: bind key(s)
- */
-
static int
weechat_tcl_api_key_bind (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2423,10 +2087,6 @@ weechat_tcl_api_key_bind (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(num_keys);
}
-/*
- * weechat_tcl_api_key_unbind: unbind key(s)
- */
-
static int
weechat_tcl_api_key_unbind (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2447,10 +2107,6 @@ weechat_tcl_api_key_unbind (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(num_keys);
}
-/*
- * weechat_tcl_api_prefix: get a prefix, used for display
- */
-
static int
weechat_tcl_api_prefix (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2468,10 +2124,6 @@ weechat_tcl_api_prefix (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_color: get a color code, used for display
- */
-
static int
weechat_tcl_api_color (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2489,10 +2141,6 @@ weechat_tcl_api_color (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_print: print message in a buffer
- */
-
static int
weechat_tcl_api_print (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2516,11 +2164,6 @@ weechat_tcl_api_print (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_print_date_tags: print message in a buffer with optional
- * date and tags
- */
-
static int
weechat_tcl_api_print_date_tags (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2550,10 +2193,6 @@ weechat_tcl_api_print_date_tags (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_print_y: print message in a buffer with free content
- */
-
static int
weechat_tcl_api_print_y (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2581,10 +2220,6 @@ weechat_tcl_api_print_y (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_log_print: print message in WeeChat log file
- */
-
static int
weechat_tcl_api_log_print (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2607,10 +2242,6 @@ weechat_tcl_api_log_print (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_hook_command_cb: callback for command hooked
- */
-
int
weechat_tcl_api_hook_command_cb (void *data, struct t_gui_buffer *buffer,
int argc, char **argv, char **argv_eol)
@@ -2652,10 +2283,6 @@ weechat_tcl_api_hook_command_cb (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_command: hook a command
- */
-
static int
weechat_tcl_api_hook_command (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2691,10 +2318,6 @@ weechat_tcl_api_hook_command (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_command_run_cb: callback for command_run hooked
- */
-
int
weechat_tcl_api_hook_command_run_cb (void *data, struct t_gui_buffer *buffer,
const char *command)
@@ -2733,10 +2356,6 @@ weechat_tcl_api_hook_command_run_cb (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_command_run: hook a command_run
- */
-
static int
weechat_tcl_api_hook_command_run (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2763,10 +2382,6 @@ weechat_tcl_api_hook_command_run (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_timer_cb: callback for timer hooked
- */
-
int
weechat_tcl_api_hook_timer_cb (void *data, int remaining_calls)
{
@@ -2804,10 +2419,6 @@ weechat_tcl_api_hook_timer_cb (void *data, int remaining_calls)
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_timer: hook a timer
- */
-
static int
weechat_tcl_api_hook_timer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2838,10 +2449,6 @@ weechat_tcl_api_hook_timer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_fd_cb: callback for fd hooked
- */
-
int
weechat_tcl_api_hook_fd_cb (void *data, int fd)
{
@@ -2878,10 +2485,6 @@ weechat_tcl_api_hook_fd_cb (void *data, int fd)
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_fd: hook a fd
- */
-
static int
weechat_tcl_api_hook_fd (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2913,10 +2516,6 @@ weechat_tcl_api_hook_fd (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_process_cb: callback for process hooked
- */
-
int
weechat_tcl_api_hook_process_cb (void *data,
const char *command, int return_code,
@@ -2956,10 +2555,6 @@ weechat_tcl_api_hook_process_cb (void *data,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_process: hook a process
- */
-
static int
weechat_tcl_api_hook_process (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -2990,11 +2585,6 @@ weechat_tcl_api_hook_process (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_process_hashtable: hook a process with options in
- * a hashtable
- */
-
static int
weechat_tcl_api_hook_process_hashtable (ClientData clientData,
Tcl_Interp *interp,
@@ -3035,10 +2625,6 @@ weechat_tcl_api_hook_process_hashtable (ClientData clientData,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_connect_cb: callback for connect hooked
- */
-
int
weechat_tcl_api_hook_connect_cb (void *data, int status, int gnutls_rc,
int sock, const char *error,
@@ -3084,10 +2670,6 @@ weechat_tcl_api_hook_connect_cb (void *data, int status, int gnutls_rc,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_connect: hook a connection
- */
-
static int
weechat_tcl_api_hook_connect (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3130,10 +2712,6 @@ weechat_tcl_api_hook_connect (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_print_cb: callback for print hooked
- */
-
int
weechat_tcl_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
time_t date,
@@ -3194,10 +2772,6 @@ weechat_tcl_api_hook_print_cb (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_print: hook a print
- */
-
static int
weechat_tcl_api_hook_print (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3232,10 +2806,6 @@ weechat_tcl_api_hook_print (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_signal_cb: callback for signal hooked
- */
-
int
weechat_tcl_api_hook_signal_cb (void *data, const char *signal, const char *type_data,
void *signal_data)
@@ -3292,10 +2862,6 @@ weechat_tcl_api_hook_signal_cb (void *data, const char *signal, const char *type
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_signal: hook a signal
- */
-
static int
weechat_tcl_api_hook_signal (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3322,10 +2888,6 @@ weechat_tcl_api_hook_signal (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_signal_send: send a signal
- */
-
static int
weechat_tcl_api_hook_signal_send (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3370,10 +2932,6 @@ weechat_tcl_api_hook_signal_send (ClientData clientData, Tcl_Interp *interp,
API_RETURN_ERROR;
}
-/*
- * weechat_tcl_api_hook_hsignal_cb: callback for hsignal hooked
- */
-
int
weechat_tcl_api_hook_hsignal_cb (void *data, const char *signal,
struct t_hashtable *hashtable)
@@ -3410,10 +2968,6 @@ weechat_tcl_api_hook_hsignal_cb (void *data, const char *signal,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_hsignal: hook a hsignal
- */
-
static int
weechat_tcl_api_hook_hsignal (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3440,10 +2994,6 @@ weechat_tcl_api_hook_hsignal (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_hsignal_send: send a hsignal
- */
-
static int
weechat_tcl_api_hook_hsignal_send (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3471,10 +3021,6 @@ weechat_tcl_api_hook_hsignal_send (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_hook_config_cb: callback for config option hooked
- */
-
int
weechat_tcl_api_hook_config_cb (void *data, const char *option, const char *value)
{
@@ -3510,10 +3056,6 @@ weechat_tcl_api_hook_config_cb (void *data, const char *option, const char *valu
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_config: hook a config option
- */
-
static int
weechat_tcl_api_hook_config (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3540,10 +3082,6 @@ weechat_tcl_api_hook_config (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_completion_cb: callback for completion hooked
- */
-
int
weechat_tcl_api_hook_completion_cb (void *data, const char *completion_item,
struct t_gui_buffer *buffer,
@@ -3586,10 +3124,6 @@ weechat_tcl_api_hook_completion_cb (void *data, const char *completion_item,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_hook_completion: hook a completion
- */
-
static int
weechat_tcl_api_hook_completion (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3618,10 +3152,6 @@ weechat_tcl_api_hook_completion (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_completion_list_add: add a word to list for a completion
- */
-
static int
weechat_tcl_api_hook_completion_list_add (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3649,10 +3179,6 @@ weechat_tcl_api_hook_completion_list_add (ClientData clientData, Tcl_Interp *int
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_hook_modifier_cb: callback for modifier hooked
- */
-
char *
weechat_tcl_api_hook_modifier_cb (void *data, const char *modifier,
const char *modifier_data, const char *string)
@@ -3679,10 +3205,6 @@ weechat_tcl_api_hook_modifier_cb (void *data, const char *modifier,
return NULL;
}
-/*
- * weechat_tcl_api_hook_modifier: hook a modifier
- */
-
static int
weechat_tcl_api_hook_modifier (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3709,10 +3231,6 @@ weechat_tcl_api_hook_modifier (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_modifier_exec: execute a modifier hook
- */
-
static int
weechat_tcl_api_hook_modifier_exec (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3734,10 +3252,6 @@ weechat_tcl_api_hook_modifier_exec (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_info_cb: callback for info hooked
- */
-
const char *
weechat_tcl_api_hook_info_cb (void *data, const char *info_name,
const char *arguments)
@@ -3763,10 +3277,6 @@ weechat_tcl_api_hook_info_cb (void *data, const char *info_name,
return NULL;
}
-/*
- * weechat_tcl_api_hook_info: hook an info
- */
-
static int
weechat_tcl_api_hook_info (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3797,10 +3307,6 @@ weechat_tcl_api_hook_info (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_info_hashtable_cb: callback for info_hashtable hooked
- */
-
struct t_hashtable *
weechat_tcl_api_hook_info_hashtable_cb (void *data, const char *info_name,
struct t_hashtable *hashtable)
@@ -3826,10 +3332,6 @@ weechat_tcl_api_hook_info_hashtable_cb (void *data, const char *info_name,
return NULL;
}
-/*
- * weechat_tcl_api_hook_info_hashtable: hook an info_hashtable
- */
-
static int
weechat_tcl_api_hook_info_hashtable (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3863,10 +3365,6 @@ weechat_tcl_api_hook_info_hashtable (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_infolist_cb: callback for infolist hooked
- */
-
struct t_infolist *
weechat_tcl_api_hook_infolist_cb (void *data, const char *infolist_name,
void *pointer, const char *arguments)
@@ -3899,10 +3397,6 @@ weechat_tcl_api_hook_infolist_cb (void *data, const char *infolist_name,
return NULL;
}
-/*
- * weechat_tcl_api_hook_infolist: hook an infolist
- */
-
static int
weechat_tcl_api_hook_infolist (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3936,10 +3430,6 @@ weechat_tcl_api_hook_infolist (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hook_focus_cb: callback for focus hooked
- */
-
struct t_hashtable *
weechat_tcl_api_hook_focus_cb (void *data,
struct t_hashtable *info)
@@ -3964,10 +3454,6 @@ weechat_tcl_api_hook_focus_cb (void *data,
return NULL;
}
-/*
- * weechat_tcl_api_hook_focus: hook a focus
- */
-
static int
weechat_tcl_api_hook_focus (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -3994,10 +3480,6 @@ weechat_tcl_api_hook_focus (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_unhook: unhook something
- */
-
static int
weechat_tcl_api_unhook (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4016,10 +3498,6 @@ weechat_tcl_api_unhook (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_unhook_all: unhook all for script
- */
-
static int
weechat_tcl_api_unhook_all (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4038,10 +3516,6 @@ weechat_tcl_api_unhook_all (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_input_data_cb: callback for input data in a buffer
- */
-
int
weechat_tcl_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer,
const char *input_data)
@@ -4079,10 +3553,6 @@ weechat_tcl_api_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_buffer_close_cb: callback for buffer closed
- */
-
int
weechat_tcl_api_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
{
@@ -4118,10 +3588,6 @@ weechat_tcl_api_buffer_close_cb (void *data, struct t_gui_buffer *buffer)
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_buffer_new: create a new buffer
- */
-
static int
weechat_tcl_api_buffer_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4154,10 +3620,6 @@ weechat_tcl_api_buffer_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_buffer_search: search a buffer
- */
-
static int
weechat_tcl_api_buffer_search (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4178,10 +3640,6 @@ weechat_tcl_api_buffer_search (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_buffer_search_main: search main buffer (WeeChat core buffer)
- */
-
static int
weechat_tcl_api_buffer_search_main (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4201,10 +3659,6 @@ weechat_tcl_api_buffer_search_main (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_current_buffer: get current buffer
- */
-
static int
weechat_tcl_api_current_buffer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4224,10 +3678,6 @@ weechat_tcl_api_current_buffer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_buffer_clear: clear a buffer
- */
-
static int
weechat_tcl_api_buffer_clear (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4244,10 +3694,6 @@ weechat_tcl_api_buffer_clear (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_close: close a buffer
- */
-
static int
weechat_tcl_api_buffer_close (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4266,10 +3712,6 @@ weechat_tcl_api_buffer_close (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_merge: merge a buffer to another buffer
- */
-
static int
weechat_tcl_api_buffer_merge (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4287,11 +3729,6 @@ weechat_tcl_api_buffer_merge (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_unmerge: unmerge a buffer from a group of merged
- * buffers
- */
-
static int
weechat_tcl_api_buffer_unmerge (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4312,10 +3749,6 @@ weechat_tcl_api_buffer_unmerge (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_get_integer: get a buffer property as integer
- */
-
static int
weechat_tcl_api_buffer_get_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4337,10 +3770,6 @@ weechat_tcl_api_buffer_get_integer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_buffer_get_string: get a buffer property as string
- */
-
static int
weechat_tcl_api_buffer_get_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4362,10 +3791,6 @@ weechat_tcl_api_buffer_get_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_buffer_get_pointer: get a buffer property as pointer
- */
-
static int
weechat_tcl_api_buffer_get_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4387,10 +3812,6 @@ weechat_tcl_api_buffer_get_pointer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_buffer_set: set a buffer property
- */
-
static int
weechat_tcl_api_buffer_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4412,11 +3833,6 @@ weechat_tcl_api_buffer_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_buffer_string_replace_local_var: replace local variables ($var) in a string,
- * using value of local variables
- */
-
static int
weechat_tcl_api_buffer_string_replace_local_var (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4437,10 +3853,6 @@ weechat_tcl_api_buffer_string_replace_local_var (ClientData clientData, Tcl_Inte
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_buffer_match_list: return 1 if buffers matches list of buffers
- */
-
static int
weechat_tcl_api_buffer_match_list (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4462,10 +3874,6 @@ weechat_tcl_api_buffer_match_list (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_current_window: get current window
- */
-
static int
weechat_tcl_api_current_window (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4485,11 +3893,6 @@ weechat_tcl_api_current_window (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_window_search_with_buffer: search a window with buffer
- * pointer
- */
-
static int
weechat_tcl_api_window_search_with_buffer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4509,10 +3912,6 @@ weechat_tcl_api_window_search_with_buffer (ClientData clientData, Tcl_Interp *in
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_window_get_integer: get a window property as integer
- */
-
static int
weechat_tcl_api_window_get_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4534,10 +3933,6 @@ weechat_tcl_api_window_get_integer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_window_get_string: get a window property as string
- */
-
static int
weechat_tcl_api_window_get_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4559,10 +3954,6 @@ weechat_tcl_api_window_get_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_window_get_pointer: get a window property as pointer
- */
-
static int
weechat_tcl_api_window_get_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4584,10 +3975,6 @@ weechat_tcl_api_window_get_pointer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_window_set_title: set window title
- */
-
static int
weechat_tcl_api_window_set_title (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4607,10 +3994,6 @@ weechat_tcl_api_window_set_title (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_nicklist_add_group: add a group in nicklist
- */
-
static int
weechat_tcl_api_nicklist_add_group (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4640,10 +4023,6 @@ weechat_tcl_api_nicklist_add_group (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_search_group: search a group in nicklist
- */
-
static int
weechat_tcl_api_nicklist_search_group (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4667,10 +4046,6 @@ weechat_tcl_api_nicklist_search_group (ClientData clientData, Tcl_Interp *interp
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_add_nick: add a nick in nicklist
- */
-
static int
weechat_tcl_api_nicklist_add_nick (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4704,10 +4079,6 @@ weechat_tcl_api_nicklist_add_nick (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_search_nick: search a nick in nicklist
- */
-
static int
weechat_tcl_api_nicklist_search_nick (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4731,10 +4102,6 @@ weechat_tcl_api_nicklist_search_nick (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_remove_group: remove a group from nicklist
- */
-
static int
weechat_tcl_api_nicklist_remove_group (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4756,10 +4123,6 @@ weechat_tcl_api_nicklist_remove_group (ClientData clientData, Tcl_Interp *interp
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_nicklist_remove_nick: remove a nick from nicklist
- */
-
static int
weechat_tcl_api_nicklist_remove_nick (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4781,10 +4144,6 @@ weechat_tcl_api_nicklist_remove_nick (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_nicklist_remove_all: remove all groups/nicks from nicklist
- */
-
static int
weechat_tcl_api_nicklist_remove_all (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4801,10 +4160,6 @@ weechat_tcl_api_nicklist_remove_all (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_nicklist_group_get_integer: get a group property as integer
- */
-
static int
weechat_tcl_api_nicklist_group_get_integer (ClientData clientData,
Tcl_Interp *interp,
@@ -4830,10 +4185,6 @@ weechat_tcl_api_nicklist_group_get_integer (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_nicklist_group_get_string: get a group property as string
- */
-
static int
weechat_tcl_api_nicklist_group_get_string (ClientData clientData,
Tcl_Interp *interp,
@@ -4859,10 +4210,6 @@ weechat_tcl_api_nicklist_group_get_string (ClientData clientData,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_nicklist_group_get_pointer: get a group property as pointer
- */
-
static int
weechat_tcl_api_nicklist_group_get_pointer (ClientData clientData,
Tcl_Interp *interp,
@@ -4887,10 +4234,6 @@ weechat_tcl_api_nicklist_group_get_pointer (ClientData clientData,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_group_set: set a group property
- */
-
static int
weechat_tcl_api_nicklist_group_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -4916,10 +4259,6 @@ weechat_tcl_api_nicklist_group_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_nicklist_nick_get_integer: get a nick property as integer
- */
-
static int
weechat_tcl_api_nicklist_nick_get_integer (ClientData clientData,
Tcl_Interp *interp,
@@ -4945,10 +4284,6 @@ weechat_tcl_api_nicklist_nick_get_integer (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_nicklist_nick_get_string: get a nick property as string
- */
-
static int
weechat_tcl_api_nicklist_nick_get_string (ClientData clientData,
Tcl_Interp *interp,
@@ -4974,10 +4309,6 @@ weechat_tcl_api_nicklist_nick_get_string (ClientData clientData,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_nicklist_nick_get_pointer: get a nick property as pointer
- */
-
static int
weechat_tcl_api_nicklist_nick_get_pointer (ClientData clientData,
Tcl_Interp *interp,
@@ -5002,10 +4333,6 @@ weechat_tcl_api_nicklist_nick_get_pointer (ClientData clientData,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_nicklist_nick_set: set a nick property
- */
-
static int
weechat_tcl_api_nicklist_nick_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5031,10 +4358,6 @@ weechat_tcl_api_nicklist_nick_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_bar_item_search: search a bar item
- */
-
static int
weechat_tcl_api_bar_item_search (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5052,10 +4375,6 @@ weechat_tcl_api_bar_item_search (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_bar_item_build_cb: callback for building bar item
- */
-
char *
weechat_tcl_api_bar_item_build_cb (void *data, struct t_gui_bar_item *item,
struct t_gui_window *window)
@@ -5088,10 +4407,6 @@ weechat_tcl_api_bar_item_build_cb (void *data, struct t_gui_bar_item *item,
return NULL;
}
-/*
- * weechat_tcl_api_bar_item_new: add a new bar item
- */
-
static int
weechat_tcl_api_bar_item_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5118,10 +4433,6 @@ weechat_tcl_api_bar_item_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_bar_item_update: update a bar item on screen
- */
-
static int
weechat_tcl_api_bar_item_update (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5138,10 +4449,6 @@ weechat_tcl_api_bar_item_update (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_bar_item_remove: remove a bar item
- */
-
static int
weechat_tcl_api_bar_item_remove (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5160,10 +4467,6 @@ weechat_tcl_api_bar_item_remove (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_bar_search: search a bar
- */
-
static int
weechat_tcl_api_bar_search (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5181,10 +4484,6 @@ weechat_tcl_api_bar_search (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_bar_new: add a new bar
- */
-
static int
weechat_tcl_api_bar_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5234,10 +4533,6 @@ weechat_tcl_api_bar_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_bar_set: set a bar property
- */
-
static int
weechat_tcl_api_bar_set (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5259,10 +4554,6 @@ weechat_tcl_api_bar_set (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_bar_update: update a bar on screen
- */
-
static int
weechat_tcl_api_bar_update (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5279,10 +4570,6 @@ weechat_tcl_api_bar_update (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_bar_remove: remove a bar
- */
-
static int
weechat_tcl_api_bar_remove (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5299,10 +4586,6 @@ weechat_tcl_api_bar_remove (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_command: execute a command on a buffer
- */
-
static int
weechat_tcl_api_command (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5326,10 +4609,6 @@ weechat_tcl_api_command (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_info_get: get info (as string)
- */
-
static int
weechat_tcl_api_info_get (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5348,10 +4627,6 @@ weechat_tcl_api_info_get (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_info_get_hashtable: get info (as hashtable)
- */
-
static int
weechat_tcl_api_info_get_hashtable (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5381,10 +4656,6 @@ weechat_tcl_api_info_get_hashtable (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OBJ(result_dict);
}
-/*
- * weechat_tcl_api_infolist_new: create a new infolist
- */
-
static int
weechat_tcl_api_infolist_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5404,10 +4675,6 @@ weechat_tcl_api_infolist_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_new_item: create new item in infolist
- */
-
static int
weechat_tcl_api_infolist_new_item (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5425,11 +4692,6 @@ weechat_tcl_api_infolist_new_item (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_new_var_integer: create new integer variable in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_new_var_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5452,11 +4714,6 @@ weechat_tcl_api_infolist_new_var_integer (ClientData clientData, Tcl_Interp *int
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_new_var_string: create new string variable in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_new_var_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5476,10 +4733,6 @@ weechat_tcl_api_infolist_new_var_string (ClientData clientData, Tcl_Interp *inte
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_new_var_pointer: create new pointer variable in infolist
- */
-
static int
weechat_tcl_api_infolist_new_var_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5499,10 +4752,6 @@ weechat_tcl_api_infolist_new_var_pointer (ClientData clientData, Tcl_Interp *int
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_new_var_time: create new time variable in infolist
- */
-
static int
weechat_tcl_api_infolist_new_var_time (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5525,10 +4774,6 @@ weechat_tcl_api_infolist_new_var_time (ClientData clientData, Tcl_Interp *interp
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_get: get list with infos
- */
-
static int
weechat_tcl_api_infolist_get (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5552,10 +4797,6 @@ weechat_tcl_api_infolist_get (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_next: move item pointer to next item in infolist
- */
-
static int
weechat_tcl_api_infolist_next (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5572,11 +4813,6 @@ weechat_tcl_api_infolist_next (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_infolist_prev: move item pointer to previous item in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_prev (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5593,11 +4829,6 @@ weechat_tcl_api_infolist_prev (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_infolist_reset_item_cursor: reset pointer to current item in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_reset_item_cursor (ClientData clientData,
Tcl_Interp *interp,
@@ -5615,11 +4846,6 @@ weechat_tcl_api_infolist_reset_item_cursor (ClientData clientData,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_infolist_fields: get list of fields for current item of
- * infolist
- */
-
static int
weechat_tcl_api_infolist_fields (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5637,11 +4863,6 @@ weechat_tcl_api_infolist_fields (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_infolist_integer: get integer value of a variable in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5662,10 +4883,6 @@ weechat_tcl_api_infolist_integer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_infolist_string: get string value of a variable in infolist
- */
-
static int
weechat_tcl_api_infolist_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5687,11 +4904,6 @@ weechat_tcl_api_infolist_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_infolist_pointer: get pointer value of a variable in
- * infolist
- */
-
static int
weechat_tcl_api_infolist_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5712,10 +4924,6 @@ weechat_tcl_api_infolist_pointer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_time: get time value of a variable in infolist
- */
-
static int
weechat_tcl_api_infolist_time (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5743,10 +4951,6 @@ weechat_tcl_api_infolist_time (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_infolist_free: free infolist
- */
-
static int
weechat_tcl_api_infolist_free (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5763,10 +4967,6 @@ weechat_tcl_api_infolist_free (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OK;
}
-/*
- * weechat_tcl_api_hdata_get: get hdata
- */
-
static int
weechat_tcl_api_hdata_get (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5786,10 +4986,6 @@ weechat_tcl_api_hdata_get (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hdata_get_var_offset: get offset of variable in hdata
- */
-
static int
weechat_tcl_api_hdata_get_var_offset (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5810,11 +5006,6 @@ weechat_tcl_api_hdata_get_var_offset (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_hdata_get_var_type_string: get type of variable as string in
- * hdata
- */
-
static int
weechat_tcl_api_hdata_get_var_type_string (ClientData clientData,
Tcl_Interp *interp,
@@ -5837,11 +5028,6 @@ weechat_tcl_api_hdata_get_var_type_string (ClientData clientData,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_hdata_get_var_array_size: get array_size for variable in
- * hdata
- */
-
static int
weechat_tcl_api_hdata_get_var_array_size (ClientData clientData,
Tcl_Interp *interp,
@@ -5866,11 +5052,6 @@ weechat_tcl_api_hdata_get_var_array_size (ClientData clientData,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_hdata_get_var_array_size_string: get array size for variable
- * in hdata (as string)
- */
-
static int
weechat_tcl_api_hdata_get_var_array_size_string (ClientData clientData,
Tcl_Interp *interp,
@@ -5896,10 +5077,6 @@ weechat_tcl_api_hdata_get_var_array_size_string (ClientData clientData,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_hdata_get_var_hdata: get hdata for variable in hdata
- */
-
static int
weechat_tcl_api_hdata_get_var_hdata (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5921,10 +5098,6 @@ weechat_tcl_api_hdata_get_var_hdata (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_hdata_get_list: get list pointer in hdata
- */
-
static int
weechat_tcl_api_hdata_get_list (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5946,10 +5119,6 @@ weechat_tcl_api_hdata_get_list (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hdata_check_pointer: check pointer with hdata/list
- */
-
static int
weechat_tcl_api_hdata_check_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -5973,10 +5142,6 @@ weechat_tcl_api_hdata_check_pointer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_hdata_move: move pointer to another element in list
- */
-
static int
weechat_tcl_api_hdata_move (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6002,11 +5167,6 @@ weechat_tcl_api_hdata_move (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hdata_char: get char value of a variable in structure
- * using hdata
- */
-
static int
weechat_tcl_api_hdata_char (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6030,11 +5190,6 @@ weechat_tcl_api_hdata_char (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_hdata_integer: get integer value of a variable in structure
- * using hdata
- */
-
static int
weechat_tcl_api_hdata_integer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6058,11 +5213,6 @@ weechat_tcl_api_hdata_integer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(result);
}
-/*
- * weechat_tcl_api_hdata_long: get long value of a variable in structure using
- * hdata
- */
-
static int
weechat_tcl_api_hdata_long (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6086,11 +5236,6 @@ weechat_tcl_api_hdata_long (ClientData clientData, Tcl_Interp *interp,
API_RETURN_LONG(result);
}
-/*
- * weechat_tcl_api_hdata_string: get string value of a variable in structure
- * using hdata
- */
-
static int
weechat_tcl_api_hdata_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6115,11 +5260,6 @@ weechat_tcl_api_hdata_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_hdata_pointer: get pointer value of a variable in structure
- * using hdata
- */
-
static int
weechat_tcl_api_hdata_pointer (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6143,11 +5283,6 @@ weechat_tcl_api_hdata_pointer (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hdata_time: get time value of a variable in structure using
- * hdata
- */
-
static int
weechat_tcl_api_hdata_time (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6175,11 +5310,6 @@ weechat_tcl_api_hdata_time (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_hdata_hashtable: get hashtable value of a variable in
- * structure using hdata
- */
-
static int
weechat_tcl_api_hdata_hashtable (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6205,10 +5335,6 @@ weechat_tcl_api_hdata_hashtable (ClientData clientData, Tcl_Interp *interp,
API_RETURN_OBJ(result_dict);
}
-/*
- * weechat_tcl_api_hdata_update: update data in a hdata
- */
-
static int
weechat_tcl_api_hdata_update (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6239,10 +5365,6 @@ weechat_tcl_api_hdata_update (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(value);
}
-/*
- * weechat_tcl_api_hdata_get_string: get hdata property as string
- */
-
static int
weechat_tcl_api_hdata_get_string (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6264,10 +5386,6 @@ weechat_tcl_api_hdata_get_string (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING(result);
}
-/*
- * weechat_tcl_api_upgrade_new: create an upgrade file
- */
-
static int
weechat_tcl_api_upgrade_new (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6290,10 +5408,6 @@ weechat_tcl_api_upgrade_new (ClientData clientData, Tcl_Interp *interp,
API_RETURN_STRING_FREE(result);
}
-/*
- * weechat_tcl_api_upgrade_write_object: write object in upgrade file
- */
-
static int
weechat_tcl_api_upgrade_write_object (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6319,10 +5433,6 @@ weechat_tcl_api_upgrade_write_object (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_upgrade_read_cb: callback for reading an object in upgrade file
- */
-
int
weechat_tcl_api_upgrade_read_cb (void *data,
struct t_upgrade_file *upgrade_file,
@@ -6368,10 +5478,6 @@ weechat_tcl_api_upgrade_read_cb (void *data,
return WEECHAT_RC_ERROR;
}
-/*
- * weechat_tcl_api_upgrade_read: read upgrade file
- */
-
static int
weechat_tcl_api_upgrade_read (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6398,10 +5504,6 @@ weechat_tcl_api_upgrade_read (ClientData clientData, Tcl_Interp *interp,
API_RETURN_INT(rc);
}
-/*
- * weechat_tcl_api_upgrade_close: close upgrade file
- */
-
static int
weechat_tcl_api_upgrade_close (ClientData clientData, Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
@@ -6422,7 +5524,7 @@ weechat_tcl_api_upgrade_close (ClientData clientData, Tcl_Interp *interp,
}
/*
- * weechat_tcl_api_init: initialize subroutines
+ * Initializes tcl functions and constants.
*/
void weechat_tcl_api_init (Tcl_Interp *interp)
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index 95a55fe71..aec7ffc54 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -72,8 +72,7 @@ Tcl_Interp* cinterp;
/*
- * weechat_tcl_hashtable_map_cb: callback called for each key/value in a
- * hashtable
+ * Callback called for each key/value in a hashtable.
*/
void
@@ -99,7 +98,7 @@ weechat_tcl_hashtable_map_cb (void *data,
}
/*
- * weechat_tcl_hashtable_to_dict: get tcl dict with a WeeChat hashtable
+ * Gets tcl dict with a WeeChat hashtable.
*/
Tcl_Obj *
@@ -124,9 +123,9 @@ weechat_tcl_hashtable_to_dict (Tcl_Interp *interp,
}
/*
- * weechat_tcl_dict_to_hashtable: get WeeChat hashtable with tcl dict
- * Note: hashtable has to be released after
- * use with call to weechat_hashtable_free()
+ * Gets WeeChat hashtable with tcl dict.
+ *
+ * Note: hashtable must be freed after use.
*/
struct t_hashtable *
@@ -173,7 +172,7 @@ weechat_tcl_dict_to_hashtable (Tcl_Interp *interp, Tcl_Obj *dict,
}
/*
- * weechat_tcl_exec: execute a tcl function
+ * Executes a tcl function.
*/
void *
@@ -284,7 +283,11 @@ weechat_tcl_exec (struct t_plugin_script *script,
}
/*
- * weechat_tcl_load: load a Tcl script
+ * Loads a tcl script.
+ *
+ * Returns:
+ * 1: OK
+ * 0: error
*/
int
@@ -362,7 +365,7 @@ weechat_tcl_load (const char *filename)
}
/*
- * weechat_tcl_load_cb: callback for weechat_script_auto_load() function
+ * Callback for weechat_script_auto_load() function.
*/
void
@@ -375,7 +378,7 @@ weechat_tcl_load_cb (void *data, const char *filename)
}
/*
- * weechat_tcl_unload: unload a Tcl script
+ * Unloads a tcl script.
*/
void
@@ -420,7 +423,7 @@ weechat_tcl_unload (struct t_plugin_script *script)
}
/*
- * weechat_tcl_unload_name: unload a Tcl script by name
+ * Unloads a tcl script by name.
*/
void
@@ -448,7 +451,7 @@ weechat_tcl_unload_name (const char *name)
}
/*
- * weechat_tcl_unload_all: unload all Tcl scripts
+ * Unloads all tcl scripts.
*/
void
@@ -461,7 +464,7 @@ weechat_tcl_unload_all ()
}
/*
- * weechat_tcl_reload_name: reload a Tcl script by name
+ * Reloads a tcl script by name.
*/
void
@@ -496,7 +499,7 @@ weechat_tcl_reload_name (const char *name)
}
/*
- * weechat_tcl_command_cb: callback for "/tcl" command
+ * Callback for command "/tcl".
*/
int
@@ -568,7 +571,7 @@ weechat_tcl_command_cb (void *data, struct t_gui_buffer *buffer,
}
if (weechat_strcasecmp (argv[1], "load") == 0)
{
- /* load Tcl script */
+ /* load tcl script */
path_script = plugin_script_search_path (weechat_tcl_plugin,
ptr_name);
weechat_tcl_load ((path_script) ? path_script : ptr_name);
@@ -577,12 +580,12 @@ weechat_tcl_command_cb (void *data, struct t_gui_buffer *buffer,
}
else if (weechat_strcasecmp (argv[1], "reload") == 0)
{
- /* reload one Tcl script */
+ /* reload one tcl script */
weechat_tcl_reload_name (ptr_name);
}
else if (weechat_strcasecmp (argv[1], "unload") == 0)
{
- /* unload Tcl script */
+ /* unload tcl script */
weechat_tcl_unload_name (ptr_name);
}
tcl_quiet = 0;
@@ -600,7 +603,7 @@ weechat_tcl_command_cb (void *data, struct t_gui_buffer *buffer,
}
/*
- * weechat_tcl_completion_cb: callback for script completion
+ * Adds tcl scripts to completion list.
*/
int
@@ -619,7 +622,7 @@ weechat_tcl_completion_cb (void *data, const char *completion_item,
}
/*
- * weechat_tcl_hdata_cb: callback for hdata
+ * Returns hdata for tcl scripts.
*/
struct t_hdata *
@@ -634,7 +637,7 @@ weechat_tcl_hdata_cb (void *data, const char *hdata_name)
}
/*
- * weechat_tcl_infolist_cb: callback for infolist
+ * Returns infolist with tcl scripts.
*/
struct t_infolist *
@@ -658,7 +661,7 @@ weechat_tcl_infolist_cb (void *data, const char *infolist_name,
}
/*
- * weechat_tcl_signal_debug_dump_cb: dump Tcl plugin data in WeeChat log file
+ * Dumps tcl plugin data in WeeChat log file.
*/
int
@@ -680,7 +683,7 @@ weechat_tcl_signal_debug_dump_cb (void *data, const char *signal,
}
/*
- * weechat_tcl_signal_buffer_closed_cb: callback called when a buffer is closed
+ * Callback called when a buffer is closed.
*/
int
@@ -699,7 +702,7 @@ weechat_tcl_signal_buffer_closed_cb (void *data, const char *signal,
}
/*
- * weechat_tcl_timer_action_cb: timer for executing actions
+ * Timer for executing actions.
*/
int
@@ -733,8 +736,7 @@ weechat_tcl_timer_action_cb (void *data, int remaining_calls)
}
/*
- * weechat_tcl_signal_script_action_cb: callback called when a script action
- * is asked (install/remove a script)
+ * Callback called when a script action is asked (install/remove a script).
*/
int
@@ -769,7 +771,7 @@ weechat_tcl_signal_script_action_cb (void *data, const char *signal,
}
/*
- * weechat_plugin_init: initialize Tcl plugin
+ * Initializes tcl plugin.
*/
int
@@ -800,7 +802,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
}
/*
- * weechat_plugin_end: end Tcl plugin
+ * Ends tcl plugin.
*/
int