mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 02:25:41 +02:00
core, plugins: fix typos in comments on functions, use imperative
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -35,7 +35,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* Runs an action.
|
||||
* Run an action.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -313,7 +313,7 @@ script_command_script (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Hooks script command.
|
||||
* Hook script command.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* Adds script languages (python, perl, ruby, ...) to completion list.
|
||||
* Add script languages (python, perl, ruby, ...) to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -60,7 +60,7 @@ script_completion_languages_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds script extensions (py, pl, rb, ...) to completion list.
|
||||
* Add script extensions (py, pl, rb, ...) to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -88,7 +88,7 @@ script_completion_extensions_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds scripts to completion list.
|
||||
* Add scripts to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -117,7 +117,7 @@ script_completion_scripts_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds installed scripts to completion list.
|
||||
* Add installed scripts to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -149,7 +149,7 @@ script_completion_scripts_installed_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds files in script directories to completion list.
|
||||
* Add files in script directories to completion list.
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -182,7 +182,7 @@ script_completion_exec_file_cb (void *data, const char *filename)
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds files in script directories to completion list.
|
||||
* Add files in script directories to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -235,7 +235,7 @@ script_completion_scripts_files_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Adds tags from scripts in repository to completion list.
|
||||
* Add tags from scripts in repository to completion list.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -285,7 +285,7 @@ script_completion_tags_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Hooks completions.
|
||||
* Hook completions.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -95,11 +95,11 @@ struct t_config_option *script_config_scripts_url = NULL;
|
||||
|
||||
|
||||
/*
|
||||
* Gets the diff command (option "script.look.diff_command").
|
||||
* Get the diff command (option "script.look.diff_command").
|
||||
*
|
||||
* If option is "auto", try to find git, and fallbacks on "diff" if not found.
|
||||
*
|
||||
* Returns NULL if no diff command is set.
|
||||
* Return NULL if no diff command is set.
|
||||
*/
|
||||
|
||||
const char *
|
||||
@@ -155,7 +155,7 @@ script_config_get_diff_command (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets filename with list of scripts.
|
||||
* Get filename with list of scripts.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -182,8 +182,8 @@ script_config_get_xml_filename (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets filename for a script to download.
|
||||
* If suffix is not NULL, it is added to filename.
|
||||
* Get filename for a script to download.
|
||||
* If suffix is not NULL, add it to the filename.
|
||||
*
|
||||
* Note: result must be freed after use.
|
||||
*/
|
||||
@@ -289,7 +289,7 @@ script_config_change_hold_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Holds a script.
|
||||
* Hold a script.
|
||||
*
|
||||
* Note: the option is changed, but the status "held" in script is NOT updated
|
||||
* by this function.
|
||||
@@ -337,7 +337,7 @@ script_config_hold (const char *name_with_extension)
|
||||
}
|
||||
|
||||
/*
|
||||
* Unholds a script.
|
||||
* Unhold a script.
|
||||
*
|
||||
* Note: the option is changed, but the status "held" in script is NOT updated
|
||||
* by this function.
|
||||
@@ -382,7 +382,7 @@ script_config_unhold (const char *name_with_extension)
|
||||
}
|
||||
|
||||
/*
|
||||
* Reloads script configuration file.
|
||||
* Reload script configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -397,9 +397,9 @@ script_config_reload (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes script configuration file.
|
||||
* Initialize script configuration file.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: OK
|
||||
* 0: error
|
||||
*/
|
||||
@@ -796,7 +796,7 @@ script_config_init (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Reads script configuration file.
|
||||
* Read script configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -806,7 +806,7 @@ script_config_read (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Writes script configuration file.
|
||||
* Write script configuration file.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -816,7 +816,7 @@ script_config_write (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Frees script configuration file.
|
||||
* Free script configuration file.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
|
||||
/*
|
||||
* Returns script info "script_info".
|
||||
* Return script info "script_info".
|
||||
*/
|
||||
|
||||
char *
|
||||
@@ -109,7 +109,7 @@ end:
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns script info "script_loaded".
|
||||
* Return script info "script_loaded".
|
||||
*/
|
||||
|
||||
char *
|
||||
@@ -160,7 +160,7 @@ script_info_info_script_loaded_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns script infolist "script_script".
|
||||
* Return script infolist "script_script".
|
||||
*/
|
||||
|
||||
struct t_infolist *
|
||||
@@ -218,7 +218,7 @@ script_info_infolist_script_script_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Hooks infolist and hdata.
|
||||
* Hook infolist and hdata.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
@@ -113,9 +113,9 @@ script_mouse_focus_chat_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes mouse.
|
||||
* Initialize mouse.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 1: OK
|
||||
* 0: error
|
||||
*/
|
||||
@@ -161,7 +161,7 @@ script_mouse_init (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Ends mouse.
|
||||
* End mouse.
|
||||
*/
|
||||
|
||||
void
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+10
-10
@@ -59,9 +59,9 @@ struct t_hook *script_timer_refresh = NULL;
|
||||
|
||||
|
||||
/*
|
||||
* Searches for a language.
|
||||
* Search for a language.
|
||||
*
|
||||
* Returns index of language, -1 if not found.
|
||||
* Return index of language, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -83,9 +83,9 @@ script_language_search (const char *language)
|
||||
}
|
||||
|
||||
/*
|
||||
* Searches for a language by extension.
|
||||
* Search for a language by extension.
|
||||
*
|
||||
* Returns index of language, -1 if not found.
|
||||
* Return index of language, -1 if not found.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -107,9 +107,9 @@ script_language_search_by_extension (const char *extension)
|
||||
}
|
||||
|
||||
/*
|
||||
* Checks if download of scripts is enabled.
|
||||
* Check if download of scripts is enabled.
|
||||
*
|
||||
* Returns:
|
||||
* Return:
|
||||
* 0: download NOT enabled (an error is displayed if display_error is 1)
|
||||
* 1: download enabled
|
||||
*/
|
||||
@@ -133,7 +133,7 @@ script_download_enabled (int display_error)
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets loaded plugins (in array of integers).
|
||||
* Get loaded plugins (in array of integers).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -161,7 +161,7 @@ script_get_loaded_plugins (void)
|
||||
}
|
||||
|
||||
/*
|
||||
* Gets scripts (in hashtable).
|
||||
* Get scripts (in hashtable).
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -326,7 +326,7 @@ script_signal_script_cb (const void *pointer, void *data,
|
||||
}
|
||||
|
||||
/*
|
||||
* Initializes script plugin.
|
||||
* Initialize script plugin.
|
||||
*/
|
||||
|
||||
int
|
||||
@@ -379,7 +379,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
|
||||
}
|
||||
|
||||
/*
|
||||
* Ends script plugin.
|
||||
* End script plugin.
|
||||
*/
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user