1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

core, plugins: fix typos in comments on functions, use imperative

This commit is contained in:
Sébastien Helleu
2026-03-23 20:45:36 +01:00
parent d34eb40187
commit f53e7fb9ef
342 changed files with 6669 additions and 6729 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ typing_bar_item_nicks_map_cb (void *data,
}
/*
* Returns content of bar item "typing": users currently typing on the buffer.
* Return content of bar item "typing": users currently typing on the buffer.
*/
char *
@@ -127,7 +127,7 @@ typing_bar_item_typing (const void *pointer, void *data,
}
/*
* Initializes typing bar items.
* Initialize typing bar items.
*/
void
+6 -6
View File
@@ -51,7 +51,7 @@ struct t_config_option *typing_config_look_item_text = NULL;
/*
* Reloads typing configuration file.
* Reload typing configuration file.
*/
int
@@ -121,9 +121,9 @@ typing_config_change_item_text (const void *pointer, void *data,
}
/*
* Initializes typing configuration file.
* Initialize typing configuration file.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -221,7 +221,7 @@ typing_config_init (void)
}
/*
* Reads typing configuration file.
* Read typing configuration file.
*/
int
@@ -231,7 +231,7 @@ typing_config_read (void)
}
/*
* Writes typing configuration file.
* Write typing configuration file.
*/
int
@@ -241,7 +241,7 @@ typing_config_write (void)
}
/*
* Frees typing configuration.
* Free typing configuration.
*/
void
+16 -16
View File
@@ -45,9 +45,9 @@ struct t_hashtable *typing_status_nicks = NULL;
/*
* Searches a state by name.
* Search a state by name.
*
* Returns index of stats in enum t_typing_status_state, -1 if not found.
* Return index of stats in enum t_typing_status_state, -1 if not found.
*/
int
@@ -68,7 +68,7 @@ typing_status_search_state (const char *state)
}
/*
* Removes self typing status for a buffer: key is a buffer pointer, value
* Remove self typing status for a buffer: key is a buffer pointer, value
* is a t_typing_status pointer.
*/
@@ -101,9 +101,9 @@ typing_status_self_free_value_cb (struct t_hashtable *hashtable,
}
/*
* Adds a new self typing status.
* Add a new self typing status.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -156,9 +156,9 @@ typing_status_self_add (struct t_gui_buffer *buffer, int state, int last_typed)
}
/*
* Searches a self typing status for a buffer.
* Search a self typing status for a buffer.
*
* Returns pointer to t_typing_status found, NULL if not found.
* Return pointer to t_typing_status found, NULL if not found.
*/
struct t_typing_status *
@@ -171,7 +171,7 @@ typing_status_self_search (struct t_gui_buffer *buffer)
}
/*
* Removes nicks typing status: key is a buffer pointer, value is a hashtable
* Remove nicks typing status: key is a buffer pointer, value is a hashtable
* pointer.
*/
@@ -204,7 +204,7 @@ typing_status_nicks_free_value_cb (struct t_hashtable *hashtable,
}
/*
* Removes a nick typing status: key is a nick (string), value is a
* Remove a nick typing status: key is a nick (string), value is a
* t_typing_status pointer.
*/
@@ -228,9 +228,9 @@ typing_status_nick_free_value_cb (struct t_hashtable *hashtable,
}
/*
* Adds a nick typing status for a buffer.
* Add a nick typing status for a buffer.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -303,9 +303,9 @@ typing_status_nick_add (struct t_gui_buffer *buffer, const char *nick,
}
/*
* Searches a nick typing status for a buffer.
* Search a nick typing status for a buffer.
*
* Returns pointer to t_typing_status found, NULL if not found.
* Return pointer to t_typing_status found, NULL if not found.
*/
struct t_typing_status *
@@ -324,9 +324,9 @@ typing_status_nick_search (struct t_gui_buffer *buffer, const char *nick)
}
/*
* Removes a nick typing status from a buffer.
* Remove a nick typing status from a buffer.
*
* Returns:
* Return:
* 1: OK
* 0: error
*/
@@ -347,7 +347,7 @@ typing_status_nick_remove (struct t_gui_buffer *buffer, const char *nick)
}
/*
* Ends typing status.
* End typing status.
*/
void
+6 -6
View File
@@ -53,9 +53,9 @@ int typing_update_item = 0;
/*
* Sends a "typing" signal.
* Send a "typing" signal.
*
* Returns code of last callback executed.
* Return code of last callback executed.
*/
int
@@ -480,7 +480,7 @@ typing_typing_reset_buffer_signal_cb (const void *pointer, void *data,
}
/*
* Creates or removes hooks, according to options "typing.look.enabled_*".
* Create or remove hooks, according to options "typing.look.enabled_*".
*/
void
@@ -582,7 +582,7 @@ typing_setup_hooks (void)
}
/*
* Removes all hooks.
* Remove all hooks.
*/
void
@@ -621,7 +621,7 @@ typing_remove_hooks (void)
}
/*
* Initializes typing plugin.
* Initialize typing plugin.
*/
int
@@ -646,7 +646,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
}
/*
* Ends typing plugin.
* End typing plugin.
*/
int