mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
Fix function prototypes for list of arguments
At the moment, building WeeChat triggers several thousand -Wstrict-prototypes diagnostics. This is due to its source code using an empty argument list for functions and function pointers that take no arguments, instead of explicitly declaring that they take no arguments by using a void list. This commit replaces all empty argument lists with a void list. Note that Ruby's headers also suffer the same problem, which WeeChat can't do anything to fix. Thus, building WeeChat with the Ruby plugin enabled will still issue approximately 30 such diagnostics.
This commit is contained in:
committed by
Sébastien Helleu
parent
20b2bdedc2
commit
f5038bccbc
@@ -149,7 +149,7 @@ weechat_backtrace_addr2line (int number, void *address, const char *symbol)
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_backtrace ()
|
||||
weechat_backtrace (void)
|
||||
{
|
||||
#ifdef HAVE_BACKTRACE
|
||||
void *trace[BACKTRACE_MAX];
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
#define BACKTRACE_MAX 128
|
||||
|
||||
extern void weechat_backtrace ();
|
||||
extern void weechat_backtrace (void);
|
||||
|
||||
#endif /* WEECHAT_BACKTRACE_H */
|
||||
|
||||
@@ -3057,7 +3057,7 @@ command_help_list_commands (int verbose)
|
||||
*/
|
||||
|
||||
const char *
|
||||
command_help_option_color_values ()
|
||||
command_help_option_color_values (void)
|
||||
{
|
||||
return _("a WeeChat color name (default, black, "
|
||||
"(dark)gray, white, (light)red, (light)green, "
|
||||
@@ -5740,7 +5740,7 @@ COMMAND_CALLBACK(print)
|
||||
*/
|
||||
|
||||
void
|
||||
command_proxy_list ()
|
||||
command_proxy_list (void)
|
||||
{
|
||||
struct t_proxy *ptr_proxy;
|
||||
const char *ipv6_status;
|
||||
@@ -8292,7 +8292,7 @@ COMMAND_CALLBACK(window)
|
||||
*/
|
||||
|
||||
void
|
||||
command_init ()
|
||||
command_init (void)
|
||||
{
|
||||
struct t_hook *ptr_hook;
|
||||
|
||||
|
||||
@@ -96,13 +96,13 @@ struct t_command_repeat
|
||||
int index; /* current index (starts at 1) */
|
||||
};
|
||||
|
||||
extern const char *command_help_option_color_values ();
|
||||
extern const char *command_help_option_color_values (void);
|
||||
extern void command_version_display (struct t_gui_buffer *buffer,
|
||||
int send_to_buffer_as_input,
|
||||
int translated_string,
|
||||
int display_git_version,
|
||||
int display_upgrades);
|
||||
extern void command_init ();
|
||||
extern void command_init (void);
|
||||
extern void command_startup (int plugins_loaded);
|
||||
|
||||
#endif /* WEECHAT_COMMAND_H */
|
||||
|
||||
@@ -2227,7 +2227,7 @@ completion_list_add_eval_variables_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
completion_init ()
|
||||
completion_init (void)
|
||||
{
|
||||
hook_completion (NULL, "buffers_names", /* formerly "%b" */
|
||||
N_("names of buffers"),
|
||||
|
||||
@@ -28,6 +28,6 @@ extern int completion_list_add_filename_cb (const void *pointer,
|
||||
const char *completion_item,
|
||||
struct t_gui_buffer *buffer,
|
||||
struct t_gui_completion *completion);
|
||||
extern void completion_init ();
|
||||
extern void completion_init (void);
|
||||
|
||||
#endif /* WEECHAT_COMPLETION_H */
|
||||
|
||||
@@ -311,7 +311,7 @@ config_file_arraylist_cmp_config_cb (void *data,
|
||||
*/
|
||||
|
||||
struct t_arraylist *
|
||||
config_file_get_configs_by_priority ()
|
||||
config_file_get_configs_by_priority (void)
|
||||
{
|
||||
struct t_arraylist *list;
|
||||
struct t_config_file *ptr_config;
|
||||
@@ -633,7 +633,7 @@ config_file_option_insert_in_section (struct t_config_option *option)
|
||||
*/
|
||||
|
||||
struct t_config_option *
|
||||
config_file_option_malloc ()
|
||||
config_file_option_malloc (void)
|
||||
{
|
||||
struct t_config_option *new_option;
|
||||
|
||||
@@ -4150,7 +4150,7 @@ config_file_free (struct t_config_file *config_file)
|
||||
*/
|
||||
|
||||
void
|
||||
config_file_free_all ()
|
||||
config_file_free_all (void)
|
||||
{
|
||||
while (config_files)
|
||||
{
|
||||
@@ -4497,7 +4497,7 @@ config_file_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
config_file_print_log ()
|
||||
config_file_print_log (void)
|
||||
{
|
||||
struct t_config_file *ptr_config_file;
|
||||
struct t_config_section *ptr_section;
|
||||
|
||||
@@ -205,7 +205,7 @@ extern int config_file_set_version (struct t_config_file *config_file,
|
||||
struct t_hashtable *data_read),
|
||||
const void *callback_update_pointer,
|
||||
void *callback_update_data);
|
||||
extern struct t_arraylist *config_file_get_configs_by_priority ();
|
||||
extern struct t_arraylist *config_file_get_configs_by_priority (void);
|
||||
extern struct t_config_section *config_file_new_section (struct t_config_file *config_file,
|
||||
const char *name,
|
||||
int user_can_add_options,
|
||||
@@ -340,7 +340,7 @@ extern void config_file_option_free (struct t_config_option *option,
|
||||
extern void config_file_section_free_options (struct t_config_section *section);
|
||||
extern void config_file_section_free (struct t_config_section *section);
|
||||
extern void config_file_free (struct t_config_file *config_file);
|
||||
extern void config_file_free_all ();
|
||||
extern void config_file_free_all (void);
|
||||
extern void config_file_free_all_plugin (struct t_weechat_plugin *plugin);
|
||||
extern struct t_hdata *config_file_hdata_config_file_cb (const void *pointer,
|
||||
void *data,
|
||||
@@ -353,6 +353,6 @@ extern struct t_hdata *config_file_hdata_config_option_cb (const void *pointer,
|
||||
const char *hdata_name);
|
||||
extern int config_file_add_to_infolist (struct t_infolist *infolist,
|
||||
const char *option_name);
|
||||
extern void config_file_print_log ();
|
||||
extern void config_file_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_CONFIG_FILE_H */
|
||||
|
||||
+11
-11
@@ -433,7 +433,7 @@ config_check_config_permissions (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
config_change_save_config_layout_on_exit ()
|
||||
config_change_save_config_layout_on_exit (void)
|
||||
{
|
||||
if (gui_init_ok && !CONFIG_BOOLEAN(config_look_save_config_on_exit)
|
||||
&& (CONFIG_ENUM(config_look_save_layout_on_exit) != CONFIG_LOOK_SAVE_LAYOUT_ON_EXIT_NONE))
|
||||
@@ -766,7 +766,7 @@ config_change_buffer_time_same (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
config_compute_prefix_max_length_all_buffers ()
|
||||
config_compute_prefix_max_length_all_buffers (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -785,7 +785,7 @@ config_compute_prefix_max_length_all_buffers ()
|
||||
*/
|
||||
|
||||
void
|
||||
config_set_nick_colors ()
|
||||
config_set_nick_colors (void)
|
||||
{
|
||||
if (config_nick_colors)
|
||||
{
|
||||
@@ -864,7 +864,7 @@ config_change_look_nick_color_force (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
config_set_eval_syntax_colors ()
|
||||
config_set_eval_syntax_colors (void)
|
||||
{
|
||||
if (config_eval_syntax_colors)
|
||||
{
|
||||
@@ -1656,7 +1656,7 @@ config_day_change_timer_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
config_weechat_init_after_read ()
|
||||
config_weechat_init_after_read (void)
|
||||
{
|
||||
int context;
|
||||
|
||||
@@ -2011,7 +2011,7 @@ config_weechat_debug_get (const char *plugin_name)
|
||||
*/
|
||||
|
||||
void
|
||||
config_weechat_debug_set_all ()
|
||||
config_weechat_debug_set_all (void)
|
||||
{
|
||||
struct t_config_option *ptr_option;
|
||||
struct t_weechat_plugin *ptr_plugin;
|
||||
@@ -3231,7 +3231,7 @@ config_weechat_key_delete_option_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_init_options ()
|
||||
config_weechat_init_options (void)
|
||||
{
|
||||
int context;
|
||||
char section_name[128];
|
||||
@@ -5592,7 +5592,7 @@ config_weechat_init_options ()
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_init ()
|
||||
config_weechat_init (void)
|
||||
{
|
||||
int rc;
|
||||
struct timeval tv_time;
|
||||
@@ -5655,7 +5655,7 @@ config_weechat_init ()
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_read ()
|
||||
config_weechat_read (void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -5678,7 +5678,7 @@ config_weechat_read ()
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_write ()
|
||||
config_weechat_write (void)
|
||||
{
|
||||
return config_file_write (weechat_config_file);
|
||||
}
|
||||
@@ -5688,7 +5688,7 @@ config_weechat_write ()
|
||||
*/
|
||||
|
||||
void
|
||||
config_weechat_free ()
|
||||
config_weechat_free (void)
|
||||
{
|
||||
config_file_free (weechat_config_file);
|
||||
|
||||
|
||||
@@ -416,20 +416,20 @@ extern struct t_hashtable *config_hashtable_completion_partial_templates;
|
||||
extern char **config_hotlist_sort_fields;
|
||||
extern int config_num_hotlist_sort_fields;
|
||||
|
||||
extern void config_set_nick_colors ();
|
||||
extern void config_set_nick_colors (void);
|
||||
extern struct t_config_option *config_weechat_debug_get (const char *plugin_name);
|
||||
extern int config_weechat_debug_set (const char *plugin_name,
|
||||
const char *value);
|
||||
extern void config_weechat_debug_set_all ();
|
||||
extern void config_weechat_debug_set_all (void);
|
||||
extern int config_weechat_buffer_set (struct t_gui_buffer *buffer,
|
||||
const char *property, const char *value);
|
||||
extern int config_weechat_notify_set (struct t_gui_buffer *buffer,
|
||||
const char *notify);
|
||||
extern void config_get_item_time (char *text_time, int max_length);
|
||||
extern int config_weechat_get_key_context (struct t_config_section *section);
|
||||
extern int config_weechat_init ();
|
||||
extern int config_weechat_read ();
|
||||
extern int config_weechat_write ();
|
||||
extern void config_weechat_free ();
|
||||
extern int config_weechat_init (void);
|
||||
extern int config_weechat_read (void);
|
||||
extern int config_weechat_write (void);
|
||||
extern void config_weechat_free (void);
|
||||
|
||||
#endif /* WEECHAT_CONFIG_H */
|
||||
|
||||
@@ -93,7 +93,7 @@ long long debug_long_callbacks = 0; /* callbacks taking more than */
|
||||
*/
|
||||
|
||||
void
|
||||
debug_build_info ()
|
||||
debug_build_info (void)
|
||||
{
|
||||
/* display version and compilation date/time */
|
||||
string_fprintf (
|
||||
@@ -343,7 +343,7 @@ debug_windows_tree_display (struct t_gui_window_tree *tree, int indent)
|
||||
*/
|
||||
|
||||
void
|
||||
debug_windows_tree ()
|
||||
debug_windows_tree (void)
|
||||
{
|
||||
gui_chat_printf (NULL, "");
|
||||
gui_chat_printf (NULL, _("Windows tree:"));
|
||||
@@ -355,7 +355,7 @@ debug_windows_tree ()
|
||||
*/
|
||||
|
||||
void
|
||||
debug_memory ()
|
||||
debug_memory (void)
|
||||
{
|
||||
#ifdef HAVE_MALLINFO2
|
||||
struct mallinfo2 info;
|
||||
@@ -501,7 +501,7 @@ debug_hdata_map_cb (void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
debug_hdata ()
|
||||
debug_hdata (void)
|
||||
{
|
||||
int count;
|
||||
|
||||
@@ -519,7 +519,7 @@ debug_hdata ()
|
||||
*/
|
||||
|
||||
void
|
||||
debug_hooks ()
|
||||
debug_hooks (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -653,7 +653,7 @@ debug_hooks_plugin_types (const char *plugin_mask, const char **hook_types)
|
||||
*/
|
||||
|
||||
void
|
||||
debug_infolists ()
|
||||
debug_infolists (void)
|
||||
{
|
||||
struct t_infolist *ptr_infolist;
|
||||
struct t_infolist_item *ptr_item;
|
||||
@@ -817,7 +817,7 @@ debug_libs_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
debug_directories ()
|
||||
debug_directories (void)
|
||||
{
|
||||
char *extra_libdir, str_temp[1024];
|
||||
|
||||
@@ -1026,7 +1026,7 @@ debug_unicode (const char *string)
|
||||
*/
|
||||
|
||||
void
|
||||
debug_init ()
|
||||
debug_init (void)
|
||||
{
|
||||
/*
|
||||
* hook signals with high priority, to be sure they will be used before
|
||||
@@ -1042,6 +1042,6 @@ debug_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
debug_end ()
|
||||
debug_end (void)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -26,22 +26,22 @@ struct t_gui_window_tree;
|
||||
|
||||
extern long long debug_long_callbacks;
|
||||
|
||||
extern void debug_build_info ();
|
||||
extern void debug_build_info (void);
|
||||
extern void debug_sigsegv_cb (int signo);
|
||||
extern void debug_windows_tree ();
|
||||
extern void debug_memory ();
|
||||
extern void debug_hdata ();
|
||||
extern void debug_hooks ();
|
||||
extern void debug_windows_tree (void);
|
||||
extern void debug_memory (void);
|
||||
extern void debug_hdata (void);
|
||||
extern void debug_hooks (void);
|
||||
extern void debug_hooks_plugin_types (const char *plugin_name,
|
||||
const char **hook_types);
|
||||
extern void debug_infolists ();
|
||||
extern void debug_directories ();
|
||||
extern void debug_infolists (void);
|
||||
extern void debug_directories (void);
|
||||
extern void debug_display_time_elapsed (struct timeval *time1,
|
||||
struct timeval *time2,
|
||||
const char *message,
|
||||
int display);
|
||||
extern void debug_unicode (const char *string);
|
||||
extern void debug_init ();
|
||||
extern void debug_end ();
|
||||
extern void debug_init (void);
|
||||
extern void debug_end (void);
|
||||
|
||||
#endif /* WEECHAT_DEBUG_H */
|
||||
|
||||
+6
-6
@@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
char *
|
||||
dir_get_temp_dir ()
|
||||
dir_get_temp_dir (void)
|
||||
{
|
||||
char *tmpdir;
|
||||
struct stat buf;
|
||||
@@ -380,7 +380,7 @@ end:
|
||||
*/
|
||||
|
||||
int
|
||||
dir_create_home_temp_dir ()
|
||||
dir_create_home_temp_dir (void)
|
||||
{
|
||||
char *temp_dir, *temp_home_template, *ptr_weechat_home;
|
||||
int rc, add_separator;
|
||||
@@ -599,7 +599,7 @@ error:
|
||||
*/
|
||||
|
||||
int
|
||||
dir_find_home_dirs ()
|
||||
dir_find_home_dirs (void)
|
||||
{
|
||||
char *ptr_home, *ptr_weechat_home, *config_weechat_home;
|
||||
char *config_dir, *data_dir, *state_dir, *cache_dir, *runtime_dir;
|
||||
@@ -738,7 +738,7 @@ dir_create_home_dir (char *path)
|
||||
*/
|
||||
|
||||
void
|
||||
dir_create_home_dirs ()
|
||||
dir_create_home_dirs (void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -772,7 +772,7 @@ error:
|
||||
*/
|
||||
|
||||
void
|
||||
dir_remove_home_dirs ()
|
||||
dir_remove_home_dirs (void)
|
||||
{
|
||||
dir_rmtree (weechat_config_dir);
|
||||
if (strcmp (weechat_config_dir, weechat_data_dir) != 0)
|
||||
@@ -798,7 +798,7 @@ dir_remove_home_dirs ()
|
||||
*/
|
||||
|
||||
char *
|
||||
dir_get_string_home_dirs ()
|
||||
dir_get_string_home_dirs (void)
|
||||
{
|
||||
char *dirs[6];
|
||||
|
||||
|
||||
+4
-4
@@ -20,14 +20,14 @@
|
||||
#ifndef WEECHAT_DIR_H
|
||||
#define WEECHAT_DIR_H
|
||||
|
||||
extern char *dir_get_temp_dir();
|
||||
extern char *dir_get_temp_dir (void);
|
||||
extern int dir_mkdir_home (const char *directory, int mode);
|
||||
extern int dir_mkdir (const char *directory, int mode);
|
||||
extern int dir_mkdir_parents (const char *directory, int mode);
|
||||
extern int dir_rmtree (const char *directory);
|
||||
extern void dir_create_home_dirs ();
|
||||
extern void dir_remove_home_dirs ();
|
||||
extern char *dir_get_string_home_dirs ();
|
||||
extern void dir_create_home_dirs (void);
|
||||
extern void dir_remove_home_dirs (void);
|
||||
extern char *dir_get_string_home_dirs (void);
|
||||
extern void dir_exec_on_files (const char *directory, int recurse_subdirs,
|
||||
int hidden_files,
|
||||
void (*callback)(void *data,
|
||||
|
||||
@@ -1467,7 +1467,7 @@ hdata_free_all_plugin (struct t_weechat_plugin *plugin)
|
||||
*/
|
||||
|
||||
void
|
||||
hdata_free_all ()
|
||||
hdata_free_all (void)
|
||||
{
|
||||
hashtable_remove_all (weechat_hdata);
|
||||
}
|
||||
@@ -1540,7 +1540,7 @@ hdata_print_log_map_cb (void *data, struct t_hashtable *hashtable,
|
||||
*/
|
||||
|
||||
void
|
||||
hdata_print_log ()
|
||||
hdata_print_log (void)
|
||||
{
|
||||
hashtable_map (weechat_hdata, &hdata_print_log_map_cb, NULL);
|
||||
}
|
||||
@@ -1565,7 +1565,7 @@ hdata_free_hdata_cb (struct t_hashtable *hashtable,
|
||||
*/
|
||||
|
||||
void
|
||||
hdata_init ()
|
||||
hdata_init (void)
|
||||
{
|
||||
weechat_hdata = hashtable_new (32,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
@@ -1580,7 +1580,7 @@ hdata_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
hdata_end ()
|
||||
hdata_end (void)
|
||||
{
|
||||
hdata_free_all ();
|
||||
hashtable_free (weechat_hdata);
|
||||
|
||||
@@ -151,9 +151,9 @@ extern int hdata_update (struct t_hdata *hdata, void *pointer,
|
||||
extern const char *hdata_get_string (struct t_hdata *hdata,
|
||||
const char *property);
|
||||
extern void hdata_free_all_plugin (struct t_weechat_plugin *plugin);
|
||||
extern void hdata_free_all ();
|
||||
extern void hdata_print_log ();
|
||||
extern void hdata_init ();
|
||||
extern void hdata_end ();
|
||||
extern void hdata_free_all (void);
|
||||
extern void hdata_print_log (void);
|
||||
extern void hdata_init (void);
|
||||
extern void hdata_end (void);
|
||||
|
||||
#endif /* WEECHAT_HDATA_H */
|
||||
|
||||
@@ -159,7 +159,7 @@ t_callback_hook *hook_callback_print_log[HOOK_NUM_TYPES] =
|
||||
*/
|
||||
|
||||
void
|
||||
hook_init ()
|
||||
hook_init (void)
|
||||
{
|
||||
int type, sock[2], rc;
|
||||
|
||||
@@ -367,7 +367,7 @@ hook_remove_from_list (struct t_hook *hook)
|
||||
*/
|
||||
|
||||
void
|
||||
hook_remove_deleted ()
|
||||
hook_remove_deleted (void)
|
||||
{
|
||||
int type;
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
@@ -458,7 +458,7 @@ hook_valid (struct t_hook *hook)
|
||||
*/
|
||||
|
||||
void
|
||||
hook_exec_start ()
|
||||
hook_exec_start (void)
|
||||
{
|
||||
hook_exec_recursion++;
|
||||
}
|
||||
@@ -468,7 +468,7 @@ hook_exec_start ()
|
||||
*/
|
||||
|
||||
void
|
||||
hook_exec_end ()
|
||||
hook_exec_end (void)
|
||||
{
|
||||
if (hook_exec_recursion > 0)
|
||||
hook_exec_recursion--;
|
||||
@@ -774,7 +774,7 @@ unhook_all_plugin (struct t_weechat_plugin *plugin, const char *subplugin)
|
||||
*/
|
||||
|
||||
void
|
||||
unhook_all ()
|
||||
unhook_all (void)
|
||||
{
|
||||
int type;
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
@@ -939,7 +939,7 @@ hook_add_to_infolist (struct t_infolist *infolist, struct t_hook *pointer,
|
||||
*/
|
||||
|
||||
void
|
||||
hook_print_log ()
|
||||
hook_print_log (void)
|
||||
{
|
||||
int type;
|
||||
struct t_hook *ptr_hook;
|
||||
|
||||
@@ -130,15 +130,15 @@ extern long long hook_debug_long_callbacks;
|
||||
|
||||
/* hook functions */
|
||||
|
||||
extern void hook_init ();
|
||||
extern void hook_init (void);
|
||||
extern void hook_add_to_list (struct t_hook *new_hook);
|
||||
extern void hook_init_data (struct t_hook *hook,
|
||||
struct t_weechat_plugin *plugin,
|
||||
int type, int priority,
|
||||
const void *callback_pointer, void *callback_data);
|
||||
extern int hook_valid (struct t_hook *hook);
|
||||
extern void hook_exec_start ();
|
||||
extern void hook_exec_end ();
|
||||
extern void hook_exec_start (void);
|
||||
extern void hook_exec_end (void);
|
||||
extern void hook_callback_start (struct t_hook *hook,
|
||||
struct t_hook_exec_cb *hook_exec_cb);
|
||||
extern void hook_callback_end (struct t_hook *hook,
|
||||
@@ -150,10 +150,10 @@ extern void hook_schedule_clean_process (pid_t pid);
|
||||
extern void unhook (struct t_hook *hook);
|
||||
extern void unhook_all_plugin (struct t_weechat_plugin *plugin,
|
||||
const char *subplugin);
|
||||
extern void unhook_all ();
|
||||
extern void unhook_all (void);
|
||||
extern int hook_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_hook *hook,
|
||||
const char *arguments);
|
||||
extern void hook_print_log ();
|
||||
extern void hook_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_HOOK_H */
|
||||
|
||||
@@ -720,7 +720,7 @@ infolist_free_all_plugin (struct t_weechat_plugin *plugin)
|
||||
*/
|
||||
|
||||
void
|
||||
infolist_print_log ()
|
||||
infolist_print_log (void)
|
||||
{
|
||||
struct t_infolist *ptr_infolist;
|
||||
struct t_infolist_item *ptr_item;
|
||||
|
||||
@@ -111,6 +111,6 @@ extern time_t infolist_time (struct t_infolist *infolist,
|
||||
const char *var);
|
||||
extern void infolist_free (struct t_infolist *infolist);
|
||||
extern void infolist_free_all_plugin (struct t_weechat_plugin *plugin);
|
||||
extern void infolist_print_log ();
|
||||
extern void infolist_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_INFOLIST_H */
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
struct t_weelist *
|
||||
weelist_new ()
|
||||
weelist_new (void)
|
||||
{
|
||||
struct t_weelist *new_weelist;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ struct t_weelist
|
||||
int size; /* number of items in list */
|
||||
};
|
||||
|
||||
extern struct t_weelist *weelist_new ();
|
||||
extern struct t_weelist *weelist_new (void);
|
||||
extern struct t_weelist_item *weelist_add (struct t_weelist *weelist,
|
||||
const char *data, const char *where,
|
||||
void *user_data);
|
||||
|
||||
+3
-3
@@ -117,7 +117,7 @@ log_open (const char *filename, const char *mode)
|
||||
*/
|
||||
|
||||
void
|
||||
log_init ()
|
||||
log_init (void)
|
||||
{
|
||||
if (!log_open (NULL, "w"))
|
||||
{
|
||||
@@ -228,7 +228,7 @@ log_printf_hexa (const char *spaces, const char *string)
|
||||
*/
|
||||
|
||||
void
|
||||
log_close ()
|
||||
log_close (void)
|
||||
{
|
||||
/* close log file */
|
||||
if (weechat_log_file)
|
||||
@@ -256,7 +256,7 @@ log_close ()
|
||||
*/
|
||||
|
||||
int
|
||||
log_crash_rename ()
|
||||
log_crash_rename (void)
|
||||
{
|
||||
char *old_name, *new_name;
|
||||
time_t time_now;
|
||||
|
||||
+3
-3
@@ -26,10 +26,10 @@ extern char *weechat_log_filename;
|
||||
extern FILE *weechat_log_file;
|
||||
extern int weechat_log_use_time;
|
||||
|
||||
extern void log_init ();
|
||||
extern void log_close ();
|
||||
extern void log_init (void);
|
||||
extern void log_close (void);
|
||||
extern void log_printf (const char *message, ...);
|
||||
extern void log_printf_hexa (const char *spaces, const char *string);
|
||||
extern int log_crash_rename ();
|
||||
extern int log_crash_rename (void);
|
||||
|
||||
#endif /* WEECHAT_LOG_H */
|
||||
|
||||
@@ -81,7 +81,7 @@ gnutls_certificate_credentials_t gnutls_xcred; /* GnuTLS client credentials */
|
||||
*/
|
||||
|
||||
void
|
||||
network_init_gcrypt ()
|
||||
network_init_gcrypt (void)
|
||||
{
|
||||
if (weechat_no_gcrypt)
|
||||
return;
|
||||
@@ -96,7 +96,7 @@ network_init_gcrypt ()
|
||||
*/
|
||||
|
||||
void
|
||||
network_allocate_credentials ()
|
||||
network_allocate_credentials (void)
|
||||
{
|
||||
gnutls_certificate_allocate_credentials (&gnutls_xcred);
|
||||
gnutls_certificate_set_verify_function (gnutls_xcred,
|
||||
@@ -279,7 +279,7 @@ network_reload_ca_files (int force_display)
|
||||
*/
|
||||
|
||||
void
|
||||
network_init_gnutls ()
|
||||
network_init_gnutls (void)
|
||||
{
|
||||
if (!weechat_no_gnutls)
|
||||
{
|
||||
@@ -296,7 +296,7 @@ network_init_gnutls ()
|
||||
*/
|
||||
|
||||
void
|
||||
network_end ()
|
||||
network_end (void)
|
||||
{
|
||||
if (network_init_gnutls_ok)
|
||||
{
|
||||
|
||||
@@ -48,11 +48,11 @@ extern int network_num_certs_system;
|
||||
extern int network_num_certs_user;
|
||||
extern int network_num_certs;
|
||||
|
||||
extern void network_init_gcrypt ();
|
||||
extern void network_init_gcrypt (void);
|
||||
extern void network_load_ca_files (int force_display);
|
||||
extern void network_reload_ca_files (int force_display);
|
||||
extern void network_init_gnutls ();
|
||||
extern void network_end ();
|
||||
extern void network_init_gnutls (void);
|
||||
extern void network_end (void);
|
||||
extern int network_pass_proxy (const char *proxy, int sock,
|
||||
const char *address, int port);
|
||||
extern int network_connect_to (const char *proxy, struct sockaddr *address,
|
||||
|
||||
@@ -472,7 +472,7 @@ proxy_new (const char *name, const char *type, const char *ipv6,
|
||||
*/
|
||||
|
||||
void
|
||||
proxy_use_temp_proxies ()
|
||||
proxy_use_temp_proxies (void)
|
||||
{
|
||||
struct t_proxy *ptr_temp_proxy, *next_temp_proxy;
|
||||
int i, num_options_ok;
|
||||
@@ -566,7 +566,7 @@ proxy_free (struct t_proxy *proxy)
|
||||
*/
|
||||
|
||||
void
|
||||
proxy_free_all ()
|
||||
proxy_free_all (void)
|
||||
{
|
||||
while (weechat_proxies)
|
||||
{
|
||||
@@ -647,7 +647,7 @@ proxy_add_to_infolist (struct t_infolist *infolist, struct t_proxy *proxy)
|
||||
*/
|
||||
|
||||
void
|
||||
proxy_print_log ()
|
||||
proxy_print_log (void)
|
||||
{
|
||||
struct t_proxy *ptr_proxy;
|
||||
|
||||
|
||||
@@ -89,14 +89,14 @@ extern struct t_proxy *proxy_new (const char *name,
|
||||
const char *port,
|
||||
const char *username,
|
||||
const char *password);
|
||||
extern void proxy_use_temp_proxies ();
|
||||
extern void proxy_use_temp_proxies (void);
|
||||
extern void proxy_free (struct t_proxy *proxy);
|
||||
extern void proxy_free_all ();
|
||||
extern void proxy_free_all (void);
|
||||
extern struct t_hdata *proxy_hdata_proxy_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern int proxy_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_proxy *proxy);
|
||||
extern void proxy_print_log ();
|
||||
extern void proxy_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_PROXY_H */
|
||||
|
||||
@@ -85,7 +85,7 @@ secure_buffer_display_data (void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
secure_buffer_display ()
|
||||
secure_buffer_display (void)
|
||||
{
|
||||
int line, count, count_encrypted, hash_algo;
|
||||
char str_supported[1024];
|
||||
@@ -197,7 +197,7 @@ secure_buffer_close_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
secure_buffer_assign ()
|
||||
secure_buffer_assign (void)
|
||||
{
|
||||
if (!secure_buffer)
|
||||
{
|
||||
@@ -215,7 +215,7 @@ secure_buffer_assign ()
|
||||
*/
|
||||
|
||||
void
|
||||
secure_buffer_open ()
|
||||
secure_buffer_open (void)
|
||||
{
|
||||
struct t_hashtable *properties;
|
||||
|
||||
|
||||
@@ -25,8 +25,8 @@
|
||||
extern struct t_gui_buffer *secure_buffer;
|
||||
extern int secure_buffer_display_values;
|
||||
|
||||
extern void secure_buffer_display ();
|
||||
extern void secure_buffer_assign ();
|
||||
extern void secure_buffer_open ();
|
||||
extern void secure_buffer_display (void);
|
||||
extern void secure_buffer_assign (void);
|
||||
extern void secure_buffer_open (void);
|
||||
|
||||
#endif /* WEECHAT_SECURE_BUFFER_H */
|
||||
|
||||
@@ -542,7 +542,7 @@ secure_config_data_write_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
int
|
||||
secure_config_init_options ()
|
||||
secure_config_init_options (void)
|
||||
{
|
||||
secure_config_file = config_file_new (NULL, SECURE_CONFIG_PRIO_NAME,
|
||||
&secure_config_reload_cb, NULL, NULL);
|
||||
@@ -638,7 +638,7 @@ secure_config_init_options ()
|
||||
*/
|
||||
|
||||
int
|
||||
secure_config_read ()
|
||||
secure_config_read (void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -661,7 +661,7 @@ secure_config_read ()
|
||||
*/
|
||||
|
||||
int
|
||||
secure_config_write ()
|
||||
secure_config_write (void)
|
||||
{
|
||||
return config_file_write (secure_config_file);
|
||||
}
|
||||
@@ -675,7 +675,7 @@ secure_config_write ()
|
||||
*/
|
||||
|
||||
int
|
||||
secure_config_init ()
|
||||
secure_config_init (void)
|
||||
{
|
||||
int rc;
|
||||
|
||||
@@ -695,7 +695,7 @@ secure_config_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
secure_config_free ()
|
||||
secure_config_free (void)
|
||||
{
|
||||
config_file_free (secure_config_file);
|
||||
secure_config_file = NULL;
|
||||
|
||||
@@ -31,9 +31,9 @@ extern struct t_config_option *secure_config_crypt_hash_algo;
|
||||
extern struct t_config_option *secure_config_crypt_passphrase_command;
|
||||
extern struct t_config_option *secure_config_crypt_salt;
|
||||
|
||||
extern int secure_config_read ();
|
||||
extern int secure_config_write ();
|
||||
extern int secure_config_init ();
|
||||
extern void secure_config_free ();
|
||||
extern int secure_config_read (void);
|
||||
extern int secure_config_write (void);
|
||||
extern int secure_config_init (void);
|
||||
extern void secure_config_free (void);
|
||||
|
||||
#endif /* WEECHAT_SECURE_CONFIG_H */
|
||||
|
||||
@@ -500,7 +500,7 @@ secure_decrypt_data_not_decrypted (const char *passphrase)
|
||||
*/
|
||||
|
||||
int
|
||||
secure_init ()
|
||||
secure_init (void)
|
||||
{
|
||||
char *ptr_phrase;
|
||||
|
||||
@@ -541,7 +541,7 @@ secure_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
secure_end ()
|
||||
secure_end (void)
|
||||
{
|
||||
if (secure_passphrase)
|
||||
{
|
||||
|
||||
@@ -43,7 +43,7 @@ extern int secure_decrypt_data (const char *buffer, int length_buffer,
|
||||
const char *passphrase, char **decrypted,
|
||||
int *length_decrypted);
|
||||
extern int secure_decrypt_data_not_decrypted (const char *passphrase);
|
||||
extern int secure_init ();
|
||||
extern void secure_end ();
|
||||
extern int secure_init (void);
|
||||
extern void secure_end (void);
|
||||
|
||||
#endif /* WEECHAT_SECURE_H */
|
||||
|
||||
@@ -281,7 +281,7 @@ signal_handle_number (int signal_number, int count, const char *command)
|
||||
*/
|
||||
|
||||
void
|
||||
signal_handle ()
|
||||
signal_handle (void)
|
||||
{
|
||||
/* SIGUSR1 */
|
||||
signal_handle_number (SIGUSR1, signal_sigusr1_count,
|
||||
@@ -314,7 +314,7 @@ signal_handle ()
|
||||
*/
|
||||
|
||||
void
|
||||
signal_suspend ()
|
||||
signal_suspend (void)
|
||||
{
|
||||
kill (getpid (), SIGTSTP);
|
||||
gui_window_ask_refresh (2);
|
||||
@@ -325,7 +325,7 @@ signal_suspend ()
|
||||
*/
|
||||
|
||||
void
|
||||
signal_init ()
|
||||
signal_init (void)
|
||||
{
|
||||
/* ignore some signals */
|
||||
signal_catch (SIGINT, SIG_IGN);
|
||||
|
||||
@@ -31,8 +31,8 @@ extern struct t_signal signal_list[];
|
||||
extern int signal_search_number (int signal_number);
|
||||
extern int signal_search_name (const char *name);
|
||||
extern void signal_catch (int signum, void (*handler)(int));
|
||||
extern void signal_handle ();
|
||||
extern void signal_suspend ();
|
||||
extern void signal_init ();
|
||||
extern void signal_handle (void);
|
||||
extern void signal_suspend (void);
|
||||
extern void signal_init (void);
|
||||
|
||||
#endif /* WEECHAT_SIGNAL_H */
|
||||
|
||||
@@ -4875,7 +4875,7 @@ string_concat (const char *separator, ...)
|
||||
*/
|
||||
|
||||
void
|
||||
string_init ()
|
||||
string_init (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -4890,7 +4890,7 @@ string_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
string_end ()
|
||||
string_end (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ extern int string_dyn_copy (char **string, const char *new_string);
|
||||
extern int string_dyn_concat (char **string, const char *add, int bytes);
|
||||
extern char *string_dyn_free (char **string, int free_string);
|
||||
extern const char *string_concat (const char *separator, ...);
|
||||
extern void string_init ();
|
||||
extern void string_end ();
|
||||
extern void string_init (void);
|
||||
extern void string_end (void);
|
||||
|
||||
#endif /* WEECHAT_STRING_H */
|
||||
|
||||
+3
-3
@@ -176,7 +176,7 @@ sys_setrlimit_resource (const char *resource_name, long long limit)
|
||||
*/
|
||||
|
||||
void
|
||||
sys_setrlimit ()
|
||||
sys_setrlimit (void)
|
||||
{
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
char **items, *pos, *error;
|
||||
@@ -222,7 +222,7 @@ sys_setrlimit ()
|
||||
*/
|
||||
|
||||
void
|
||||
sys_display_rlimit ()
|
||||
sys_display_rlimit (void)
|
||||
{
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
struct rlimit rlim;
|
||||
@@ -280,7 +280,7 @@ sys_display_rlimit ()
|
||||
*/
|
||||
|
||||
void
|
||||
sys_display_rusage ()
|
||||
sys_display_rusage (void)
|
||||
{
|
||||
#ifdef HAVE_SYS_RESOURCE_H
|
||||
struct rusage usage;
|
||||
|
||||
+3
-3
@@ -28,9 +28,9 @@ struct t_rlimit_resource
|
||||
};
|
||||
#endif /* HAVE_SYS_RESOURCE_H */
|
||||
|
||||
extern void sys_setrlimit ();
|
||||
extern void sys_display_rlimit ();
|
||||
extern void sys_display_rusage ();
|
||||
extern void sys_setrlimit (void);
|
||||
extern void sys_display_rlimit (void);
|
||||
extern void sys_display_rusage (void);
|
||||
extern void sys_waitpid (int number_processes);
|
||||
|
||||
#endif /* WEECHAT_SYS_H */
|
||||
|
||||
@@ -376,7 +376,7 @@ upgrade_weechat_save_layout_window (struct t_upgrade_file *upgrade_file)
|
||||
*/
|
||||
|
||||
int
|
||||
upgrade_weechat_save ()
|
||||
upgrade_weechat_save (void)
|
||||
{
|
||||
int rc;
|
||||
struct t_upgrade_file *upgrade_file;
|
||||
@@ -904,7 +904,7 @@ upgrade_weechat_read_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
int
|
||||
upgrade_weechat_load ()
|
||||
upgrade_weechat_load (void)
|
||||
{
|
||||
int rc;
|
||||
struct t_upgrade_file *upgrade_file;
|
||||
@@ -977,7 +977,7 @@ upgrade_weechat_remove_file_cb (void *data, const char *filename)
|
||||
*/
|
||||
|
||||
void
|
||||
upgrade_weechat_end ()
|
||||
upgrade_weechat_end (void)
|
||||
{
|
||||
struct timeval tv_now;
|
||||
long long time_diff;
|
||||
|
||||
@@ -37,8 +37,8 @@ enum t_upgrade_weechat_type
|
||||
UPGRADE_WEECHAT_TYPE_LAYOUT_WINDOW,
|
||||
};
|
||||
|
||||
int upgrade_weechat_save ();
|
||||
int upgrade_weechat_load ();
|
||||
void upgrade_weechat_end ();
|
||||
int upgrade_weechat_save (void);
|
||||
int upgrade_weechat_load (void);
|
||||
void upgrade_weechat_end (void);
|
||||
|
||||
#endif /* WEECHAT_UPGRADE_H */
|
||||
|
||||
+2
-2
@@ -1293,7 +1293,7 @@ weeurl_option_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
weeurl_init ()
|
||||
weeurl_init (void)
|
||||
{
|
||||
curl_global_init (CURL_GLOBAL_ALL);
|
||||
}
|
||||
@@ -1303,7 +1303,7 @@ weeurl_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
weeurl_end ()
|
||||
weeurl_end (void)
|
||||
{
|
||||
curl_global_cleanup ();
|
||||
}
|
||||
|
||||
+2
-2
@@ -62,7 +62,7 @@ extern int weeurl_download (const char *url, struct t_hashtable *options,
|
||||
struct t_hashtable *output);
|
||||
extern int weeurl_option_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_url_option *option);
|
||||
extern void weeurl_init ();
|
||||
extern void weeurl_end ();
|
||||
extern void weeurl_init (void);
|
||||
extern void weeurl_end (void);
|
||||
|
||||
#endif /* WEECHAT_URL_H */
|
||||
|
||||
@@ -46,7 +46,7 @@ int local_utf8 = 0;
|
||||
*/
|
||||
|
||||
void
|
||||
utf8_init ()
|
||||
utf8_init (void)
|
||||
{
|
||||
local_utf8 = (string_strcasecmp (weechat_local_charset, "utf-8") == 0);
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
extern int local_utf8;
|
||||
|
||||
extern void utf8_init ();
|
||||
extern void utf8_init (void);
|
||||
extern int utf8_has_8bits (const char *string);
|
||||
extern int utf8_is_valid (const char *string, int length, char **error);
|
||||
extern void utf8_normalize (char *string, char replacement);
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_name ()
|
||||
version_get_name (void)
|
||||
{
|
||||
return PACKAGE_NAME;
|
||||
}
|
||||
@@ -47,7 +47,7 @@ version_get_name ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_version ()
|
||||
version_get_version (void)
|
||||
{
|
||||
return PACKAGE_VERSION;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ version_get_version ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_name_version ()
|
||||
version_get_name_version (void)
|
||||
{
|
||||
return PACKAGE_STRING;
|
||||
}
|
||||
@@ -76,7 +76,7 @@ version_get_name_version ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_git ()
|
||||
version_get_git (void)
|
||||
{
|
||||
return PACKAGE_VERSION_GIT;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ version_get_git ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_version_with_git ()
|
||||
version_get_version_with_git (void)
|
||||
{
|
||||
const char *git_version;
|
||||
static char version[256];
|
||||
@@ -117,7 +117,7 @@ version_get_version_with_git ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_compilation_date ()
|
||||
version_get_compilation_date (void)
|
||||
{
|
||||
return __DATE__;
|
||||
}
|
||||
@@ -130,7 +130,7 @@ version_get_compilation_date ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_compilation_time ()
|
||||
version_get_compilation_time (void)
|
||||
{
|
||||
return __TIME__;
|
||||
}
|
||||
@@ -143,7 +143,7 @@ version_get_compilation_time ()
|
||||
*/
|
||||
|
||||
const char *
|
||||
version_get_compilation_date_time ()
|
||||
version_get_compilation_date_time (void)
|
||||
{
|
||||
return __DATE__ " " __TIME__;
|
||||
}
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
#ifndef WEECHAT_VERSION_H
|
||||
#define WEECHAT_VERSION_H
|
||||
|
||||
extern const char *version_get_name ();
|
||||
extern const char *version_get_version ();
|
||||
extern const char *version_get_name_version ();
|
||||
extern const char *version_get_git ();
|
||||
extern const char *version_get_version_with_git ();
|
||||
extern const char *version_get_compilation_date ();
|
||||
extern const char *version_get_compilation_time ();
|
||||
extern const char *version_get_compilation_date_time ();
|
||||
extern const char *version_get_name (void);
|
||||
extern const char *version_get_version (void);
|
||||
extern const char *version_get_name_version (void);
|
||||
extern const char *version_get_git (void);
|
||||
extern const char *version_get_version_with_git (void);
|
||||
extern const char *version_get_compilation_date (void);
|
||||
extern const char *version_get_compilation_time (void);
|
||||
extern const char *version_get_compilation_date_time (void);
|
||||
|
||||
#endif /* WEECHAT_VERSION_H */
|
||||
|
||||
@@ -89,7 +89,7 @@ hook_fd_search (int fd)
|
||||
*/
|
||||
|
||||
void
|
||||
hook_fd_realloc_pollfd ()
|
||||
hook_fd_realloc_pollfd (void)
|
||||
{
|
||||
struct pollfd *ptr_pollfd;
|
||||
int count;
|
||||
@@ -201,7 +201,7 @@ hook_fd (struct t_weechat_plugin *plugin, int fd, int flag_read,
|
||||
*/
|
||||
|
||||
void
|
||||
hook_fd_exec ()
|
||||
hook_fd_exec (void)
|
||||
{
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
struct t_hook_exec_cb hook_exec_cb;
|
||||
|
||||
@@ -50,7 +50,7 @@ extern struct t_hook *hook_fd (struct t_weechat_plugin *plugin, int fd,
|
||||
t_hook_callback_fd *callback,
|
||||
const void *callback_pointer,
|
||||
void *callback_data);
|
||||
extern void hook_fd_exec ();
|
||||
extern void hook_fd_exec (void);
|
||||
extern void hook_fd_free_data (struct t_hook *hook);
|
||||
extern int hook_fd_add_to_infolist (struct t_infolist_item *item,
|
||||
struct t_hook *hook);
|
||||
|
||||
@@ -787,7 +787,7 @@ error:
|
||||
*/
|
||||
|
||||
void
|
||||
hook_process_exec ()
|
||||
hook_process_exec (void)
|
||||
{
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
struct t_hook_exec_cb hook_exec_cb;
|
||||
|
||||
@@ -70,7 +70,7 @@ extern struct t_hook *hook_process_hashtable (struct t_weechat_plugin *plugin,
|
||||
t_hook_callback_process *callback,
|
||||
const void *callback_pointer,
|
||||
void *callback_data);
|
||||
extern void hook_process_exec ();
|
||||
extern void hook_process_exec (void);
|
||||
extern void hook_process_free_data (struct t_hook *hook);
|
||||
extern int hook_process_add_to_infolist (struct t_infolist_item *item,
|
||||
struct t_hook *hook);
|
||||
|
||||
@@ -182,7 +182,7 @@ hook_timer (struct t_weechat_plugin *plugin, long interval, int align_second,
|
||||
*/
|
||||
|
||||
void
|
||||
hook_timer_check_system_clock ()
|
||||
hook_timer_check_system_clock (void)
|
||||
{
|
||||
time_t now;
|
||||
long diff_time;
|
||||
@@ -222,7 +222,7 @@ hook_timer_check_system_clock ()
|
||||
*/
|
||||
|
||||
int
|
||||
hook_timer_get_time_to_next ()
|
||||
hook_timer_get_time_to_next (void)
|
||||
{
|
||||
struct t_hook *ptr_hook;
|
||||
int found, timeout;
|
||||
@@ -300,7 +300,7 @@ end:
|
||||
*/
|
||||
|
||||
void
|
||||
hook_timer_exec ()
|
||||
hook_timer_exec (void)
|
||||
{
|
||||
struct t_hook *ptr_hook, *next_hook;
|
||||
struct t_hook_exec_cb hook_exec_cb;
|
||||
|
||||
@@ -51,8 +51,8 @@ extern struct t_hook *hook_timer (struct t_weechat_plugin *plugin,
|
||||
t_hook_callback_timer *callback,
|
||||
const void *callback_pointer,
|
||||
void *callback_data);
|
||||
extern int hook_timer_get_time_to_next ();
|
||||
extern void hook_timer_exec ();
|
||||
extern int hook_timer_get_time_to_next (void);
|
||||
extern void hook_timer_exec (void);
|
||||
extern void hook_timer_free_data (struct t_hook *hook);
|
||||
extern int hook_timer_add_to_infolist (struct t_infolist_item *item,
|
||||
struct t_hook *hook);
|
||||
|
||||
+7
-7
@@ -142,7 +142,7 @@ int weechat_auto_load_scripts = 1; /* auto-load scripts */
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_display_copyright ()
|
||||
weechat_display_copyright (void)
|
||||
{
|
||||
string_fprintf (stdout, "\n");
|
||||
string_fprintf (
|
||||
@@ -164,7 +164,7 @@ weechat_display_copyright ()
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_display_usage ()
|
||||
weechat_display_usage (void)
|
||||
{
|
||||
weechat_display_copyright ();
|
||||
string_fprintf (stdout, "\n");
|
||||
@@ -410,7 +410,7 @@ weechat_parse_args (int argc, char *argv[])
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_startup_message ()
|
||||
weechat_startup_message (void)
|
||||
{
|
||||
if (weechat_headless)
|
||||
{
|
||||
@@ -485,7 +485,7 @@ weechat_startup_message ()
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_term_check ()
|
||||
weechat_term_check (void)
|
||||
{
|
||||
char *term, *sty, *tmux;
|
||||
const char *screen_terms = "screen-256color, screen";
|
||||
@@ -553,7 +553,7 @@ weechat_term_check ()
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_locale_check ()
|
||||
weechat_locale_check (void)
|
||||
{
|
||||
if (!weechat_locale_ok)
|
||||
{
|
||||
@@ -609,7 +609,7 @@ weechat_shutdown (int return_code, int crash)
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_init_gettext ()
|
||||
weechat_init_gettext (void)
|
||||
{
|
||||
weechat_locale_ok = (setlocale (LC_ALL, "") != NULL); /* init gettext */
|
||||
#if ENABLE_NLS == 1
|
||||
@@ -631,7 +631,7 @@ weechat_init_gettext ()
|
||||
*/
|
||||
|
||||
void
|
||||
weechat_init (int argc, char *argv[], void (*gui_init_cb)())
|
||||
weechat_init (int argc, char *argv[], void (*gui_init_cb)(void))
|
||||
{
|
||||
weechat_first_start_time = time (NULL); /* initialize start time */
|
||||
gettimeofday (&weechat_current_start_timeval, NULL);
|
||||
|
||||
+3
-3
@@ -127,10 +127,10 @@ extern struct t_weelist *weechat_startup_commands;
|
||||
extern int weechat_auto_connect;
|
||||
extern int weechat_auto_load_scripts;
|
||||
|
||||
extern void weechat_term_check ();
|
||||
extern void weechat_term_check (void);
|
||||
extern void weechat_shutdown (int return_code, int crash);
|
||||
extern void weechat_init_gettext ();
|
||||
extern void weechat_init (int argc, char *argv[], void (*gui_init_cb)());
|
||||
extern void weechat_init_gettext (void);
|
||||
extern void weechat_init (int argc, char *argv[], void (*gui_init_cb)(void));
|
||||
extern void weechat_end (void (*gui_end_cb)(int clean_exit));
|
||||
|
||||
#endif /* WEECHAT_H */
|
||||
|
||||
@@ -325,7 +325,7 @@ gui_color_assign_by_diff (int *color, const char *color_name, int diff)
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_get_weechat_colors_number ()
|
||||
gui_color_get_weechat_colors_number (void)
|
||||
{
|
||||
return GUI_CURSES_NUM_WEECHAT_COLORS;
|
||||
}
|
||||
@@ -335,7 +335,7 @@ gui_color_get_weechat_colors_number ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_get_term_colors ()
|
||||
gui_color_get_term_colors (void)
|
||||
{
|
||||
return gui_color_term_colors;
|
||||
}
|
||||
@@ -345,7 +345,7 @@ gui_color_get_term_colors ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_get_term_color_pairs ()
|
||||
gui_color_get_term_color_pairs (void)
|
||||
{
|
||||
return gui_color_term_color_pairs;
|
||||
}
|
||||
@@ -645,7 +645,7 @@ gui_color_build (int number, int foreground, int background)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_vars ()
|
||||
gui_color_init_vars (void)
|
||||
{
|
||||
gui_color_term_has_colors = (has_colors ()) ? 1 : 0;
|
||||
gui_color_term_colors = 0;
|
||||
@@ -705,7 +705,7 @@ gui_color_init_vars ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_free_vars ()
|
||||
gui_color_free_vars (void)
|
||||
{
|
||||
if (gui_color_pairs)
|
||||
{
|
||||
@@ -724,7 +724,7 @@ gui_color_free_vars ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_pairs_terminal ()
|
||||
gui_color_init_pairs_terminal (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -745,7 +745,7 @@ gui_color_init_pairs_terminal ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_pairs_weechat ()
|
||||
gui_color_init_pairs_weechat (void)
|
||||
{
|
||||
int i;
|
||||
short *foregrounds, *backgrounds;
|
||||
@@ -775,7 +775,7 @@ gui_color_init_pairs_weechat ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_display_terminal_colors ()
|
||||
gui_color_display_terminal_colors (void)
|
||||
{
|
||||
int lines, columns, line, col, color;
|
||||
char str_line[1024], str_color[64];
|
||||
@@ -833,7 +833,7 @@ gui_color_display_terminal_colors ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_buffer_display_timer ()
|
||||
gui_color_buffer_display_timer (void)
|
||||
{
|
||||
if (gui_color_buffer && gui_color_use_term_colors)
|
||||
{
|
||||
@@ -866,7 +866,7 @@ gui_color_info_term_colors (char *buffer, int size)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_buffer_display ()
|
||||
gui_color_buffer_display (void)
|
||||
{
|
||||
int y, i, lines, columns, line, col, color, max_color;
|
||||
char str_line[1024], str_color[64], str_rgb[64];
|
||||
@@ -1170,7 +1170,7 @@ gui_color_timer_cb (const void *pointer, void *data, int remaining_calls)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_switch_colors ()
|
||||
gui_color_switch_colors (void)
|
||||
{
|
||||
if (gui_color_hook_timer)
|
||||
{
|
||||
@@ -1219,7 +1219,7 @@ gui_color_switch_colors ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_reset_pairs ()
|
||||
gui_color_reset_pairs (void)
|
||||
{
|
||||
if (gui_color_pairs)
|
||||
{
|
||||
@@ -1291,7 +1291,7 @@ gui_color_buffer_close_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_buffer_assign ()
|
||||
gui_color_buffer_assign (void)
|
||||
{
|
||||
if (!gui_color_buffer)
|
||||
{
|
||||
@@ -1309,7 +1309,7 @@ gui_color_buffer_assign ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_buffer_open ()
|
||||
gui_color_buffer_open (void)
|
||||
{
|
||||
struct t_hashtable *properties;
|
||||
|
||||
@@ -1383,7 +1383,7 @@ gui_color_palette_add_alias_cb (void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_build_aliases ()
|
||||
gui_color_palette_build_aliases (void)
|
||||
{
|
||||
int i;
|
||||
struct t_gui_color_palette *color_palette;
|
||||
@@ -1540,7 +1540,7 @@ gui_color_palette_free (struct t_gui_color_palette *color_palette)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_weechat ()
|
||||
gui_color_init_weechat (void)
|
||||
{
|
||||
if (CONFIG_BOOLEAN(config_look_color_basic_force_bold)
|
||||
|| (gui_color_term_colors < 16))
|
||||
@@ -1614,7 +1614,7 @@ gui_color_init_weechat ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_alloc ()
|
||||
gui_color_alloc (void)
|
||||
{
|
||||
if (has_colors ())
|
||||
{
|
||||
@@ -1632,7 +1632,7 @@ gui_color_alloc ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_dump ()
|
||||
gui_color_dump (void)
|
||||
{
|
||||
char str_line[1024];
|
||||
int fg, bg, index;
|
||||
|
||||
@@ -39,6 +39,6 @@ extern int gui_color_buffer_refresh_needed;
|
||||
extern int gui_color_get_gui_attrs (int color);
|
||||
extern int gui_color_get_pair (int fg, int bg);
|
||||
extern int gui_color_weechat_get_pair (int weechat_color);
|
||||
extern void gui_color_alloc ();
|
||||
extern void gui_color_alloc (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_CURSES_COLOR_H */
|
||||
|
||||
@@ -163,7 +163,7 @@ gui_main_signal_sigint (int signo)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_main_init ()
|
||||
gui_main_init (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
char title[256];
|
||||
@@ -269,7 +269,7 @@ gui_main_signal_sigwinch (int signo)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_main_debug_libs ()
|
||||
gui_main_debug_libs (void)
|
||||
{
|
||||
#if defined(NCURSES_VERSION) && defined(NCURSES_VERSION_PATCH)
|
||||
gui_chat_printf (NULL, " ncurses: %s (patch %d)",
|
||||
@@ -284,7 +284,7 @@ gui_main_debug_libs ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_main_refreshes ()
|
||||
gui_main_refreshes (void)
|
||||
{
|
||||
struct t_gui_window *ptr_win;
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
@@ -391,7 +391,7 @@ gui_main_refreshes ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_main_loop ()
|
||||
gui_main_loop (void)
|
||||
{
|
||||
struct t_hook *hook_fd_keyboard;
|
||||
int send_signal_sigwinch;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
extern int gui_term_cols, gui_term_lines;
|
||||
|
||||
extern void gui_main_init ();
|
||||
extern void gui_main_loop ();
|
||||
extern void gui_main_init (void);
|
||||
extern void gui_main_loop (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_CURSES_MAIN_H */
|
||||
|
||||
@@ -86,7 +86,7 @@ char *gui_mouse_button_utf8_codes[][2] =
|
||||
*/
|
||||
|
||||
void
|
||||
gui_mouse_enable ()
|
||||
gui_mouse_enable (void)
|
||||
{
|
||||
gui_mouse_enabled = 1;
|
||||
fprintf (stderr, "\033[?1005h\033[?1006h\033[?1000h\033[?1002h");
|
||||
@@ -101,7 +101,7 @@ gui_mouse_enable ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_mouse_disable ()
|
||||
gui_mouse_disable (void)
|
||||
{
|
||||
gui_mouse_enabled = 0;
|
||||
fprintf (stderr, "\033[?1002l\033[?1000l\033[?1006l\033[?1005l");
|
||||
@@ -116,7 +116,7 @@ gui_mouse_disable ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_mouse_display_state ()
|
||||
gui_mouse_display_state (void)
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
gui_mouse_enabled ?
|
||||
@@ -143,7 +143,7 @@ gui_mouse_grab_init (int area)
|
||||
*/
|
||||
|
||||
const char *
|
||||
gui_mouse_grab_event2input ()
|
||||
gui_mouse_grab_event2input (void)
|
||||
{
|
||||
struct t_gui_focus_info *focus_info;
|
||||
static char area[256];
|
||||
|
||||
@@ -78,7 +78,7 @@ int gui_window_saved_style_index = 0; /* index in list of savec styles */
|
||||
*/
|
||||
|
||||
int
|
||||
gui_window_get_width ()
|
||||
gui_window_get_width (void)
|
||||
{
|
||||
return gui_term_cols;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ gui_window_get_width ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_window_get_height ()
|
||||
gui_window_get_height (void)
|
||||
{
|
||||
return gui_term_lines;
|
||||
}
|
||||
@@ -98,7 +98,7 @@ gui_window_get_height ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_read_terminal_size ()
|
||||
gui_window_read_terminal_size (void)
|
||||
{
|
||||
struct winsize size;
|
||||
int new_width, new_height;
|
||||
@@ -572,7 +572,7 @@ gui_window_set_custom_color_pair (WINDOW *window, int pair)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_toggle_emphasis ()
|
||||
gui_window_toggle_emphasis (void)
|
||||
{
|
||||
gui_window_current_emphasis ^= 1;
|
||||
}
|
||||
@@ -1808,7 +1808,7 @@ gui_window_auto_resize (struct t_gui_window_tree *tree,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_refresh_windows ()
|
||||
gui_window_refresh_windows (void)
|
||||
{
|
||||
struct t_gui_window *ptr_win, *old_current_window;
|
||||
struct t_gui_bar_window *ptr_bar_win;
|
||||
@@ -2685,7 +2685,7 @@ gui_window_set_bracketed_paste_mode (int enable)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_move_cursor ()
|
||||
gui_window_move_cursor (void)
|
||||
{
|
||||
if (gui_cursor_mode)
|
||||
{
|
||||
@@ -2699,7 +2699,7 @@ gui_window_move_cursor ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_term_display_infos ()
|
||||
gui_window_term_display_infos (void)
|
||||
{
|
||||
gui_chat_printf (NULL, "");
|
||||
gui_chat_printf (NULL, _("Terminal infos:"));
|
||||
|
||||
@@ -43,7 +43,7 @@ struct t_gui_window_curses_objects
|
||||
extern int gui_window_current_color_attr;
|
||||
extern int gui_window_current_emphasis;
|
||||
|
||||
extern void gui_window_read_terminal_size ();
|
||||
extern void gui_window_read_terminal_size (void);
|
||||
extern void gui_window_clear (WINDOW *window, int fg, int bg);
|
||||
extern void gui_window_clrtoeol (WINDOW *window);
|
||||
extern void gui_window_save_style (WINDOW *window);
|
||||
@@ -59,7 +59,7 @@ extern void gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg,
|
||||
extern void gui_window_set_custom_color_pair (WINDOW *window, int pair);
|
||||
extern void gui_window_set_custom_color_fg (WINDOW *window, int fg);
|
||||
extern void gui_window_set_custom_color_bg (WINDOW *window, int bg);
|
||||
extern void gui_window_toggle_emphasis ();
|
||||
extern void gui_window_toggle_emphasis (void);
|
||||
extern void gui_window_emphasize (WINDOW *window, int x, int y, int count);
|
||||
extern void gui_window_string_apply_color_fg (unsigned char **str,
|
||||
WINDOW *window);
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
void
|
||||
daemonize ()
|
||||
daemonize (void)
|
||||
{
|
||||
pid_t pid;
|
||||
int fd, i;
|
||||
|
||||
@@ -29,13 +29,13 @@ chtype acs_map[256];
|
||||
|
||||
|
||||
WINDOW *
|
||||
initscr ()
|
||||
initscr (void)
|
||||
{
|
||||
return stdscr;
|
||||
}
|
||||
|
||||
int
|
||||
endwin ()
|
||||
endwin (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
@@ -187,7 +187,7 @@ wclrtobot (WINDOW *win)
|
||||
}
|
||||
|
||||
int
|
||||
refresh ()
|
||||
refresh (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
@@ -238,31 +238,31 @@ init_pair (short pair, short f, short b)
|
||||
}
|
||||
|
||||
bool
|
||||
has_colors ()
|
||||
has_colors (void)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int
|
||||
cbreak ()
|
||||
cbreak (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
int
|
||||
start_color ()
|
||||
start_color (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
int
|
||||
noecho ()
|
||||
noecho (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
int
|
||||
clear ()
|
||||
clear (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ wclear (WINDOW *win)
|
||||
}
|
||||
|
||||
bool
|
||||
can_change_color ()
|
||||
can_change_color (void)
|
||||
{
|
||||
/* not supported in WeeChat anyway */
|
||||
return FALSE;
|
||||
@@ -402,7 +402,7 @@ mvwvline (WINDOW *win, int y, int x, chtype ch, int n)
|
||||
}
|
||||
|
||||
int
|
||||
raw ()
|
||||
raw (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
@@ -418,12 +418,12 @@ wcolor_set (WINDOW *win, short pair, void *opts)
|
||||
}
|
||||
|
||||
void
|
||||
cur_term ()
|
||||
cur_term (void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
use_default_colors ()
|
||||
use_default_colors (void)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
@@ -438,7 +438,7 @@ resizeterm (int lines, int columns)
|
||||
}
|
||||
|
||||
int
|
||||
getch ()
|
||||
getch (void)
|
||||
{
|
||||
return ERR;
|
||||
}
|
||||
|
||||
@@ -83,8 +83,8 @@ typedef struct _cchar_t cchar_t;
|
||||
extern WINDOW *stdscr;
|
||||
extern chtype acs_map[];
|
||||
|
||||
extern WINDOW *initscr ();
|
||||
extern int endwin ();
|
||||
extern WINDOW *initscr (void);
|
||||
extern int endwin (void);
|
||||
extern WINDOW *newwin (int nlines, int ncols, int begin_y, int begin_x);
|
||||
extern int delwin (WINDOW *win);
|
||||
extern int move (int y, int x);
|
||||
@@ -100,19 +100,19 @@ extern int waddnstr (WINDOW *win, const char *str, int n);
|
||||
extern int mvaddstr (int y, int x, const char *str);
|
||||
extern int mvwaddstr (WINDOW *win, int y, int x, const char *str);
|
||||
extern int wclrtobot (WINDOW *win);
|
||||
extern int refresh ();
|
||||
extern int refresh (void);
|
||||
extern int wrefresh (WINDOW *win);
|
||||
extern int wnoutrefresh (WINDOW *win);
|
||||
extern int wclrtoeol (WINDOW *win);
|
||||
extern int mvwprintw (WINDOW *win, int y, int x, const char *fmt, ...);
|
||||
extern int init_pair (short pair, short f, short b);
|
||||
extern bool has_colors ();
|
||||
extern int cbreak ();
|
||||
extern int start_color ();
|
||||
extern int noecho ();
|
||||
extern int clear ();
|
||||
extern bool has_colors (void);
|
||||
extern int cbreak (void);
|
||||
extern int start_color (void);
|
||||
extern int noecho (void);
|
||||
extern int clear (void);
|
||||
extern int wclear (WINDOW *win);
|
||||
extern bool can_change_color ();
|
||||
extern bool can_change_color (void);
|
||||
extern int curs_set (int visibility);
|
||||
extern int nodelay (WINDOW *win, bool bf);
|
||||
extern int werase (WINDOW *win);
|
||||
@@ -127,12 +127,12 @@ extern void whline (WINDOW *win, chtype ch, int n);
|
||||
extern void wvline (WINDOW *win, chtype ch, int n);
|
||||
extern int mvwhline (WINDOW *win, int y, int x, chtype ch, int n);
|
||||
extern int mvwvline (WINDOW *win, int y, int x, chtype ch, int n);
|
||||
extern int raw ();
|
||||
extern int raw (void);
|
||||
extern int wcolor_set (WINDOW *win, short pair, void *opts);
|
||||
extern void cur_term ();
|
||||
extern int use_default_colors ();
|
||||
extern void cur_term (void);
|
||||
extern int use_default_colors (void);
|
||||
extern int resizeterm (int lines, int columns);
|
||||
extern int getch ();
|
||||
extern int getch (void);
|
||||
extern int wgetch (WINDOW *win);
|
||||
|
||||
#endif /* WEECHAT_NCURSES_FAKE_H */
|
||||
|
||||
@@ -488,7 +488,7 @@ error:
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_custom_use_temp_items ()
|
||||
gui_bar_item_custom_use_temp_items (void)
|
||||
{
|
||||
struct t_gui_bar_item_custom *ptr_temp_item, *ptr_next_temp_item;
|
||||
int i;
|
||||
@@ -653,7 +653,7 @@ gui_bar_item_custom_free (struct t_gui_bar_item_custom *item)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_custom_free_all ()
|
||||
gui_bar_item_custom_free_all (void)
|
||||
{
|
||||
while (gui_custom_bar_items)
|
||||
{
|
||||
|
||||
@@ -66,11 +66,11 @@ extern struct t_gui_bar_item_custom *gui_bar_item_custom_alloc (const char *name
|
||||
extern struct t_gui_bar_item_custom *gui_bar_item_custom_new (const char *name,
|
||||
const char *conditions,
|
||||
const char *content);
|
||||
extern void gui_bar_item_custom_use_temp_items ();
|
||||
extern void gui_bar_item_custom_use_temp_items (void);
|
||||
extern int gui_bar_item_custom_rename (struct t_gui_bar_item_custom *item,
|
||||
const char *new_name);
|
||||
extern void gui_bar_item_custom_free_data (struct t_gui_bar_item_custom *item);
|
||||
extern void gui_bar_item_custom_free (struct t_gui_bar_item_custom *item);
|
||||
extern void gui_bar_item_custom_free_all ();
|
||||
extern void gui_bar_item_custom_free_all (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_BAR_ITEM_CUSTOM_H */
|
||||
|
||||
@@ -739,7 +739,7 @@ gui_bar_item_free (struct t_gui_bar_item *item)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_free_all ()
|
||||
gui_bar_item_free_all (void)
|
||||
{
|
||||
while (gui_bar_items)
|
||||
{
|
||||
@@ -2341,7 +2341,7 @@ gui_bar_item_hook_signal (const char *signal, const char *item)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_init ()
|
||||
gui_bar_item_init (void)
|
||||
{
|
||||
char name[128];
|
||||
|
||||
@@ -2553,7 +2553,7 @@ gui_bar_item_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_end ()
|
||||
gui_bar_item_end (void)
|
||||
{
|
||||
struct t_gui_bar_item_hook *next_bar_item_hook;
|
||||
|
||||
@@ -2643,7 +2643,7 @@ gui_bar_item_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_item_print_log ()
|
||||
gui_bar_item_print_log (void)
|
||||
{
|
||||
struct t_gui_bar_item *ptr_item;
|
||||
|
||||
|
||||
@@ -117,15 +117,15 @@ extern struct t_gui_bar_item *gui_bar_item_new (struct t_weechat_plugin *plugin,
|
||||
void *build_callback_data);
|
||||
extern void gui_bar_item_update (const char *name);
|
||||
extern void gui_bar_item_free (struct t_gui_bar_item *item);
|
||||
extern void gui_bar_item_free_all ();
|
||||
extern void gui_bar_item_free_all (void);
|
||||
extern void gui_bar_item_free_all_plugin (struct t_weechat_plugin *plugin);
|
||||
extern void gui_bar_item_init ();
|
||||
extern void gui_bar_item_end ();
|
||||
extern void gui_bar_item_init (void);
|
||||
extern void gui_bar_item_end (void);
|
||||
extern struct t_hdata *gui_bar_item_hdata_bar_item_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern int gui_bar_item_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_bar_item *bar_item);
|
||||
extern void gui_bar_item_print_log ();
|
||||
extern void gui_bar_item_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_BAR_ITEM_H */
|
||||
|
||||
+8
-8
@@ -1835,7 +1835,7 @@ gui_bar_new_default (enum t_gui_bar_default bar)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_use_temp_bars ()
|
||||
gui_bar_use_temp_bars (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_temp_bar, *next_temp_bar;
|
||||
int i, num_options_ok;
|
||||
@@ -1908,7 +1908,7 @@ gui_bar_use_temp_bars ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_create_default_input ()
|
||||
gui_bar_create_default_input (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_bar;
|
||||
char *buf;
|
||||
@@ -1952,7 +1952,7 @@ gui_bar_create_default_input ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_create_default_title ()
|
||||
gui_bar_create_default_title (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_bar;
|
||||
|
||||
@@ -1974,7 +1974,7 @@ gui_bar_create_default_title ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_create_default_status ()
|
||||
gui_bar_create_default_status (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_bar;
|
||||
|
||||
@@ -1996,7 +1996,7 @@ gui_bar_create_default_status ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_create_default_nicklist ()
|
||||
gui_bar_create_default_nicklist (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_bar;
|
||||
|
||||
@@ -2018,7 +2018,7 @@ gui_bar_create_default_nicklist ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_create_default ()
|
||||
gui_bar_create_default (void)
|
||||
{
|
||||
gui_bar_create_default_input ();
|
||||
gui_bar_create_default_title ();
|
||||
@@ -2213,7 +2213,7 @@ gui_bar_free (struct t_gui_bar *bar)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_free_all ()
|
||||
gui_bar_free_all (void)
|
||||
{
|
||||
while (gui_bars)
|
||||
{
|
||||
@@ -2383,7 +2383,7 @@ gui_bar_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_bar_print_log ()
|
||||
gui_bar_print_log (void)
|
||||
{
|
||||
struct t_gui_bar *ptr_bar;
|
||||
int i, j;
|
||||
|
||||
+8
-8
@@ -153,22 +153,22 @@ extern struct t_gui_bar *gui_bar_new (const char *name,
|
||||
const char *color_bg_inactive,
|
||||
const char *separator,
|
||||
const char *items);
|
||||
extern void gui_bar_use_temp_bars ();
|
||||
extern void gui_bar_create_default_input ();
|
||||
extern void gui_bar_create_default_title ();
|
||||
extern void gui_bar_create_default_status ();
|
||||
extern void gui_bar_create_default_nicklist ();
|
||||
extern void gui_bar_create_default ();
|
||||
extern void gui_bar_use_temp_bars (void);
|
||||
extern void gui_bar_create_default_input (void);
|
||||
extern void gui_bar_create_default_title (void);
|
||||
extern void gui_bar_create_default_status (void);
|
||||
extern void gui_bar_create_default_nicklist (void);
|
||||
extern void gui_bar_create_default (void);
|
||||
extern void gui_bar_update (const char *name);
|
||||
extern int gui_bar_scroll (struct t_gui_bar *bar, struct t_gui_window *window,
|
||||
const char *scroll);
|
||||
extern void gui_bar_free (struct t_gui_bar *bar);
|
||||
extern void gui_bar_free_all ();
|
||||
extern void gui_bar_free_all (void);
|
||||
extern struct t_hdata *gui_bar_hdata_bar_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern int gui_bar_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_bar *bar);
|
||||
extern void gui_bar_print_log ();
|
||||
extern void gui_bar_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_BAR_H */
|
||||
|
||||
+14
-14
@@ -387,7 +387,7 @@ gui_buffer_notify_set (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_notify_set_all ()
|
||||
gui_buffer_notify_set_all (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -617,7 +617,7 @@ gui_buffer_insert (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
long long
|
||||
gui_buffer_generate_id ()
|
||||
gui_buffer_generate_id (void)
|
||||
{
|
||||
struct timeval tv;
|
||||
long long id;
|
||||
@@ -1181,7 +1181,7 @@ gui_buffer_new_user (const char *name, enum t_gui_buffer_type buffer_type)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_user_set_callbacks ()
|
||||
gui_buffer_user_set_callbacks (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
const char *ptr_type;
|
||||
@@ -2907,7 +2907,7 @@ gui_buffer_set_pointer (struct t_gui_buffer *buffer, const char *property,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_compute_num_displayed ()
|
||||
gui_buffer_compute_num_displayed (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_gui_window *ptr_window;
|
||||
@@ -2988,7 +2988,7 @@ gui_buffer_is_main (const char *plugin_name, const char *name)
|
||||
*/
|
||||
|
||||
struct t_gui_buffer *
|
||||
gui_buffer_search_main ()
|
||||
gui_buffer_search_main (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -3411,7 +3411,7 @@ gui_buffer_clear (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_clear_all ()
|
||||
gui_buffer_clear_all (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -3517,7 +3517,7 @@ gui_buffer_get_previous_active_buffer (struct t_gui_buffer *buffer,
|
||||
*/
|
||||
|
||||
int
|
||||
gui_buffer_visited_get_index_previous ()
|
||||
gui_buffer_visited_get_index_previous (void)
|
||||
{
|
||||
if ((gui_buffers_visited_count < 2) || (gui_buffers_visited_index == 0))
|
||||
return -1;
|
||||
@@ -3535,7 +3535,7 @@ gui_buffer_visited_get_index_previous ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_buffer_visited_get_index_next ()
|
||||
gui_buffer_visited_get_index_next (void)
|
||||
{
|
||||
if ((gui_buffers_visited_count < 2)
|
||||
|| (gui_buffers_visited_index < 0)
|
||||
@@ -3645,7 +3645,7 @@ gui_buffer_visited_remove_by_buffer (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_visited_remove_all ()
|
||||
gui_buffer_visited_remove_all (void)
|
||||
{
|
||||
while (gui_buffers_visited)
|
||||
{
|
||||
@@ -4716,7 +4716,7 @@ gui_buffer_unmerge (struct t_gui_buffer *buffer, int number)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_unmerge_all ()
|
||||
gui_buffer_unmerge_all (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer, *ptr_next_buffer;
|
||||
int number;
|
||||
@@ -4761,7 +4761,7 @@ gui_buffer_hide (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_hide_all ()
|
||||
gui_buffer_hide_all (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -4794,7 +4794,7 @@ gui_buffer_unhide (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_unhide_all ()
|
||||
gui_buffer_unhide_all (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -4810,7 +4810,7 @@ gui_buffer_unhide_all ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_sort_by_layout_number ()
|
||||
gui_buffer_sort_by_layout_number (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer, *ptr_next_buffer;
|
||||
struct t_gui_buffer *extra_buffers, *last_extra_buffer;
|
||||
@@ -5720,7 +5720,7 @@ gui_buffer_dump_hexa (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_buffer_print_log ()
|
||||
gui_buffer_print_log (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_gui_line *ptr_line;
|
||||
|
||||
+11
-11
@@ -309,8 +309,8 @@ extern void gui_buffer_local_var_add (struct t_gui_buffer *buffer,
|
||||
const char *value);
|
||||
extern void gui_buffer_local_var_remove (struct t_gui_buffer *buffer,
|
||||
const char *name);
|
||||
extern void gui_buffer_notify_set_all ();
|
||||
extern long long gui_buffer_generate_id ();
|
||||
extern void gui_buffer_notify_set_all (void);
|
||||
extern long long gui_buffer_generate_id (void);
|
||||
extern int gui_buffer_is_reserved_name (const char *name);
|
||||
extern void gui_buffer_apply_config_option_property (struct t_gui_buffer *buffer,
|
||||
struct t_config_option *option);
|
||||
@@ -358,7 +358,7 @@ extern struct t_gui_buffer *gui_buffer_new (struct t_weechat_plugin *plugin,
|
||||
void *close_callback_data);
|
||||
extern struct t_gui_buffer *gui_buffer_new_user (const char *name,
|
||||
enum t_gui_buffer_type buffer_type);
|
||||
extern void gui_buffer_user_set_callbacks ();
|
||||
extern void gui_buffer_user_set_callbacks (void);
|
||||
extern int gui_buffer_valid (struct t_gui_buffer *buffer);
|
||||
extern char *gui_buffer_string_replace_local_var (struct t_gui_buffer *buffer,
|
||||
const char *string);
|
||||
@@ -399,11 +399,11 @@ extern void gui_buffer_set (struct t_gui_buffer *buffer, const char *property,
|
||||
const char *value);
|
||||
extern void gui_buffer_set_pointer (struct t_gui_buffer *buffer,
|
||||
const char *property, void *pointer);
|
||||
extern void gui_buffer_compute_num_displayed ();
|
||||
extern void gui_buffer_compute_num_displayed (void);
|
||||
extern void gui_buffer_add_value_num_displayed (struct t_gui_buffer *buffer,
|
||||
int value);
|
||||
extern int gui_buffer_is_main (const char *plugin_name, const char *name);
|
||||
extern struct t_gui_buffer *gui_buffer_search_main ();
|
||||
extern struct t_gui_buffer *gui_buffer_search_main (void);
|
||||
extern struct t_gui_buffer *gui_buffer_search_by_id (long long id);
|
||||
extern struct t_gui_buffer *gui_buffer_search_by_full_name (const char *full_name);
|
||||
extern struct t_gui_buffer *gui_buffer_search (const char *plugin, const char *name);
|
||||
@@ -413,7 +413,7 @@ extern struct t_gui_buffer *gui_buffer_search_by_number (int number);
|
||||
extern struct t_gui_buffer *gui_buffer_search_by_id_number_name (const char *string);
|
||||
extern int gui_buffer_count_merged_buffers (int number);
|
||||
extern void gui_buffer_clear (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_clear_all ();
|
||||
extern void gui_buffer_clear_all (void);
|
||||
extern void gui_buffer_close (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_switch_by_number (struct t_gui_window *window,
|
||||
int number);
|
||||
@@ -427,12 +427,12 @@ extern void gui_buffer_swap (int number1, int number2);
|
||||
extern void gui_buffer_merge (struct t_gui_buffer *buffer,
|
||||
struct t_gui_buffer *target_buffer);
|
||||
extern void gui_buffer_unmerge (struct t_gui_buffer *buffer, int number);
|
||||
extern void gui_buffer_unmerge_all ();
|
||||
extern void gui_buffer_unmerge_all (void);
|
||||
extern void gui_buffer_hide (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_hide_all ();
|
||||
extern void gui_buffer_hide_all (void);
|
||||
extern void gui_buffer_unhide (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_unhide_all ();
|
||||
extern void gui_buffer_sort_by_layout_number ();
|
||||
extern void gui_buffer_unhide_all (void);
|
||||
extern void gui_buffer_sort_by_layout_number (void);
|
||||
extern void gui_buffer_undo_snap (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_undo_snap_free (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_undo_add (struct t_gui_buffer *buffer);
|
||||
@@ -459,6 +459,6 @@ extern struct t_hdata *gui_buffer_hdata_buffer_visited_cb (const void *pointer,
|
||||
extern int gui_buffer_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_dump_hexa (struct t_gui_buffer *buffer);
|
||||
extern void gui_buffer_print_log ();
|
||||
extern void gui_buffer_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_BUFFER_H */
|
||||
|
||||
+6
-6
@@ -86,7 +86,7 @@ char *gui_chat_pipe_color_string[GUI_CHAT_PIPE_NUM_COLORS] =
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_init ()
|
||||
gui_chat_init (void)
|
||||
{
|
||||
char *default_prefix[GUI_CHAT_NUM_PREFIXES] =
|
||||
{ GUI_CHAT_PREFIX_ERROR_DEFAULT, GUI_CHAT_PREFIX_NETWORK_DEFAULT,
|
||||
@@ -114,7 +114,7 @@ gui_chat_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_prefix_build ()
|
||||
gui_chat_prefix_build (void)
|
||||
{
|
||||
const char *ptr_prefix;
|
||||
char prefix[512], *pos_color;
|
||||
@@ -525,7 +525,7 @@ gui_chat_get_time_string (time_t date, int date_usec, int highlight)
|
||||
*/
|
||||
|
||||
int
|
||||
gui_chat_get_time_length ()
|
||||
gui_chat_get_time_length (void)
|
||||
{
|
||||
struct timeval tv_now;
|
||||
char *text_time;
|
||||
@@ -553,7 +553,7 @@ gui_chat_get_time_length ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_change_time_format ()
|
||||
gui_chat_change_time_format (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_gui_line *ptr_line;
|
||||
@@ -808,7 +808,7 @@ gui_chat_pipe_handle_line (struct t_gui_line *line)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_pipe_end ()
|
||||
gui_chat_pipe_end (void)
|
||||
{
|
||||
struct t_gui_buffer *pipe_buffer;
|
||||
struct t_hashtable *hashtable;
|
||||
@@ -1492,7 +1492,7 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_chat_end ()
|
||||
gui_chat_end (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
+6
-6
@@ -98,8 +98,8 @@ extern int gui_chat_display_tags;
|
||||
|
||||
/* chat functions */
|
||||
|
||||
extern void gui_chat_init ();
|
||||
extern void gui_chat_prefix_build ();
|
||||
extern void gui_chat_init (void);
|
||||
extern void gui_chat_prefix_build (void);
|
||||
extern int gui_chat_strlen (const char *string);
|
||||
extern int gui_chat_strlen_screen (const char *string);
|
||||
extern const char *gui_chat_string_add_offset (const char *string, int offset);
|
||||
@@ -115,12 +115,12 @@ extern void gui_chat_get_word_info (struct t_gui_window *window,
|
||||
int *word_length);
|
||||
extern char *gui_chat_get_time_string (time_t date, int date_usec,
|
||||
int highlight);
|
||||
extern int gui_chat_get_time_length ();
|
||||
extern void gui_chat_change_time_format ();
|
||||
extern int gui_chat_get_time_length (void);
|
||||
extern void gui_chat_change_time_format (void);
|
||||
extern int gui_chat_buffer_valid (struct t_gui_buffer *buffer,
|
||||
int buffer_type);
|
||||
extern int gui_chat_pipe_search_color (const char *color);
|
||||
extern void gui_chat_pipe_end ();
|
||||
extern void gui_chat_pipe_end (void);
|
||||
extern void gui_chat_printf_datetime_tags (struct t_gui_buffer *buffer,
|
||||
time_t date, int date_usec,
|
||||
const char *tags,
|
||||
@@ -134,7 +134,7 @@ extern void gui_chat_print_lines_waiting_buffer (FILE *f);
|
||||
extern int gui_chat_hsignal_quote_line_cb (const void *pointer, void *data,
|
||||
const char *signal,
|
||||
struct t_hashtable *hashtable);
|
||||
extern void gui_chat_end ();
|
||||
extern void gui_chat_end (void);
|
||||
|
||||
/* chat functions (GUI dependent) */
|
||||
|
||||
|
||||
+4
-4
@@ -1918,7 +1918,7 @@ gui_color_palette_free_value_cb (struct t_hashtable *hashtable,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_alloc_structs ()
|
||||
gui_color_palette_alloc_structs (void)
|
||||
{
|
||||
if (!gui_color_hash_palette_color)
|
||||
{
|
||||
@@ -2034,7 +2034,7 @@ gui_color_palette_remove (int number)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_free_structs ()
|
||||
gui_color_palette_free_structs (void)
|
||||
{
|
||||
hashtable_free (gui_color_hash_palette_color);
|
||||
hashtable_free (gui_color_hash_palette_alias);
|
||||
@@ -2046,7 +2046,7 @@ gui_color_palette_free_structs ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init ()
|
||||
gui_color_init (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -2061,7 +2061,7 @@ gui_color_init ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_end ()
|
||||
gui_color_end (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
||||
+16
-16
@@ -206,13 +206,13 @@ extern char *gui_color_encode_ansi (const char *string);
|
||||
extern char *gui_color_emphasize (const char *string, const char *search,
|
||||
int case_sensitive, regex_t *regex);
|
||||
extern void gui_color_free (struct t_gui_color *color);
|
||||
extern void gui_color_palette_alloc_structs ();
|
||||
extern void gui_color_palette_alloc_structs (void);
|
||||
extern int gui_color_palette_get_alias (const char *alias);
|
||||
extern struct t_gui_color_palette *gui_color_palette_get (int number);
|
||||
extern void gui_color_palette_add (int number, const char *value);
|
||||
extern void gui_color_palette_remove (int number);
|
||||
extern void gui_color_init ();
|
||||
extern void gui_color_end ();
|
||||
extern void gui_color_init (void);
|
||||
extern void gui_color_end (void);
|
||||
|
||||
/* color functions (GUI dependent) */
|
||||
|
||||
@@ -222,23 +222,23 @@ extern int gui_color_get_extended_flags (int attrs);
|
||||
extern int gui_color_assign (int *color, char const *color_name);
|
||||
extern int gui_color_assign_by_diff (int *color, const char *color_name,
|
||||
int diff);
|
||||
extern int gui_color_get_weechat_colors_number ();
|
||||
extern int gui_color_get_term_colors ();
|
||||
extern int gui_color_get_term_color_pairs ();
|
||||
extern int gui_color_get_weechat_colors_number (void);
|
||||
extern int gui_color_get_term_colors (void);
|
||||
extern int gui_color_get_term_color_pairs (void);
|
||||
extern const char *gui_color_get_name (int num_color);
|
||||
extern void gui_color_free_vars ();
|
||||
extern void gui_color_init_weechat ();
|
||||
extern void gui_color_display_terminal_colors ();
|
||||
extern void gui_color_free_vars (void);
|
||||
extern void gui_color_init_weechat (void);
|
||||
extern void gui_color_display_terminal_colors (void);
|
||||
extern void gui_color_info_term_colors (char *buffer, int size);
|
||||
extern void gui_color_buffer_display ();
|
||||
extern void gui_color_switch_colors ();
|
||||
extern void gui_color_reset_pairs ();
|
||||
extern void gui_color_buffer_assign ();
|
||||
extern void gui_color_buffer_open ();
|
||||
extern void gui_color_palette_build_aliases ();
|
||||
extern void gui_color_buffer_display (void);
|
||||
extern void gui_color_switch_colors (void);
|
||||
extern void gui_color_reset_pairs (void);
|
||||
extern void gui_color_buffer_assign (void);
|
||||
extern void gui_color_buffer_open (void);
|
||||
extern void gui_color_palette_build_aliases (void);
|
||||
extern struct t_gui_color_palette *gui_color_palette_new (int number,
|
||||
const char *value);
|
||||
extern void gui_color_palette_free (struct t_gui_color_palette *color_palette);
|
||||
extern void gui_color_dump ();
|
||||
extern void gui_color_dump (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_COLOR_H */
|
||||
|
||||
@@ -1714,7 +1714,7 @@ gui_completion_list_words_print_log (struct t_arraylist *list,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_completion_print_log ()
|
||||
gui_completion_print_log (void)
|
||||
{
|
||||
struct t_gui_completion *ptr_completion;
|
||||
|
||||
|
||||
@@ -102,6 +102,6 @@ extern struct t_hdata *gui_completion_hdata_completion_cb (const void *pointer,
|
||||
extern struct t_hdata *gui_completion_hdata_completion_word_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern void gui_completion_print_log ();
|
||||
extern void gui_completion_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_COMPLETION_H */
|
||||
|
||||
@@ -52,7 +52,7 @@ int gui_cursor_y = 0; /* position of cursor in cursor mode */
|
||||
*/
|
||||
|
||||
void
|
||||
gui_cursor_mode_toggle ()
|
||||
gui_cursor_mode_toggle (void)
|
||||
{
|
||||
gui_cursor_mode ^= 1;
|
||||
|
||||
@@ -86,7 +86,7 @@ gui_cursor_mode_toggle ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_cursor_mode_stop ()
|
||||
gui_cursor_mode_stop (void)
|
||||
{
|
||||
if (gui_cursor_mode)
|
||||
gui_cursor_mode_toggle ();
|
||||
@@ -115,7 +115,7 @@ gui_cursor_debug_set (int debug)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_cursor_display_debug_info ()
|
||||
gui_cursor_display_debug_info (void)
|
||||
{
|
||||
struct t_gui_focus_info *focus_info;
|
||||
char str_info[1024];
|
||||
|
||||
@@ -29,8 +29,8 @@ extern int gui_cursor_y;
|
||||
|
||||
/* cursor functions */
|
||||
|
||||
extern void gui_cursor_mode_toggle ();
|
||||
extern void gui_cursor_mode_stop ();
|
||||
extern void gui_cursor_mode_toggle (void);
|
||||
extern void gui_cursor_mode_stop (void);
|
||||
extern void gui_cursor_debug_set (int debug);
|
||||
extern void gui_cursor_move_xy (int x, int y);
|
||||
extern void gui_cursor_move_add_xy (int add_x, int add_y);
|
||||
|
||||
@@ -214,7 +214,7 @@ gui_filter_all_buffers (struct t_gui_filter *filter)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_global_enable ()
|
||||
gui_filter_global_enable (void)
|
||||
{
|
||||
if (!gui_filters_enabled)
|
||||
{
|
||||
@@ -230,7 +230,7 @@ gui_filter_global_enable ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_global_disable ()
|
||||
gui_filter_global_disable (void)
|
||||
{
|
||||
if (gui_filters_enabled)
|
||||
{
|
||||
@@ -567,7 +567,7 @@ gui_filter_free (struct t_gui_filter *filter)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_free_all ()
|
||||
gui_filter_free_all (void)
|
||||
{
|
||||
while (gui_filters)
|
||||
{
|
||||
@@ -672,7 +672,7 @@ gui_filter_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_filter_print_log ()
|
||||
gui_filter_print_log (void)
|
||||
{
|
||||
struct t_gui_filter *ptr_filter;
|
||||
int i;
|
||||
|
||||
@@ -57,8 +57,8 @@ extern int gui_filter_check_line (struct t_gui_line_data *line_data);
|
||||
extern void gui_filter_buffer (struct t_gui_buffer *buffer,
|
||||
struct t_gui_line_data *line_data);
|
||||
extern void gui_filter_all_buffers (struct t_gui_filter *filter);
|
||||
extern void gui_filter_global_enable ();
|
||||
extern void gui_filter_global_disable ();
|
||||
extern void gui_filter_global_enable (void);
|
||||
extern void gui_filter_global_disable (void);
|
||||
extern struct t_gui_filter *gui_filter_search_by_name (const char *name);
|
||||
extern struct t_gui_filter *gui_filter_new (int enabled,
|
||||
const char *name,
|
||||
@@ -68,12 +68,12 @@ extern struct t_gui_filter *gui_filter_new (int enabled,
|
||||
extern int gui_filter_rename (struct t_gui_filter *filter,
|
||||
const char *new_name);
|
||||
extern void gui_filter_free (struct t_gui_filter *filter);
|
||||
extern void gui_filter_free_all ();
|
||||
extern void gui_filter_free_all (void);
|
||||
extern struct t_hdata *gui_filter_hdata_filter_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
extern int gui_filter_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_filter *filter);
|
||||
extern void gui_filter_print_log ();
|
||||
extern void gui_filter_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_FILTER_H */
|
||||
|
||||
@@ -118,7 +118,7 @@ gui_history_buffer_add (struct t_gui_buffer *buffer, const char *string)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_history_global_remove_oldest ()
|
||||
gui_history_global_remove_oldest (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
struct t_gui_history *ptr_history;
|
||||
@@ -300,7 +300,7 @@ gui_history_search (struct t_gui_buffer *buffer,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_history_global_free ()
|
||||
gui_history_global_free (void)
|
||||
{
|
||||
struct t_gui_history *ptr_history;
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ extern void gui_history_global_add (const char *string);
|
||||
extern void gui_history_add (struct t_gui_buffer *buffer, const char *string);
|
||||
extern int gui_history_search (struct t_gui_buffer *buffer,
|
||||
struct t_gui_history *history);
|
||||
extern void gui_history_global_free ();
|
||||
extern void gui_history_global_free (void);
|
||||
extern void gui_history_buffer_free (struct t_gui_buffer *buffer);
|
||||
extern struct t_hdata *gui_history_hdata_history_cb (const void *pointer,
|
||||
void *data,
|
||||
|
||||
@@ -525,7 +525,7 @@ gui_hotlist_restore_buffer (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_hotlist_restore_all_buffers ()
|
||||
gui_hotlist_restore_all_buffers (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -541,7 +541,7 @@ gui_hotlist_restore_all_buffers ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_hotlist_resort ()
|
||||
gui_hotlist_resort (void)
|
||||
{
|
||||
struct t_gui_hotlist *new_hotlist, *last_new_hotlist;
|
||||
struct t_gui_hotlist *ptr_hotlist, *ptr_next_hotlist, *ptr_prev_hotlist;
|
||||
@@ -841,7 +841,7 @@ gui_hotlist_add_to_infolist (struct t_infolist *infolist,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_hotlist_print_log ()
|
||||
gui_hotlist_print_log (void)
|
||||
{
|
||||
struct t_gui_hotlist *ptr_hotlist;
|
||||
int i;
|
||||
@@ -869,7 +869,7 @@ gui_hotlist_print_log ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_hotlist_end ()
|
||||
gui_hotlist_end (void)
|
||||
{
|
||||
if (gui_hotlist_hashtable_add_conditions_pointers)
|
||||
{
|
||||
|
||||
@@ -64,8 +64,8 @@ extern struct t_gui_hotlist *gui_hotlist_add (struct t_gui_buffer *buffer,
|
||||
struct timeval *creation_time,
|
||||
int check_conditions);
|
||||
extern void gui_hotlist_restore_buffer (struct t_gui_buffer *buffer);
|
||||
extern void gui_hotlist_restore_all_buffers ();
|
||||
extern void gui_hotlist_resort ();
|
||||
extern void gui_hotlist_restore_all_buffers (void);
|
||||
extern void gui_hotlist_resort (void);
|
||||
extern void gui_hotlist_clear (int level_mask);
|
||||
extern void gui_hotlist_clear_level_string (struct t_gui_buffer *buffer,
|
||||
const char *str_level_mask);
|
||||
@@ -76,7 +76,7 @@ extern struct t_hdata *gui_hotlist_hdata_hotlist_cb (const void *pointer,
|
||||
const char *hdata_name);
|
||||
extern int gui_hotlist_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_hotlist *hotlist);
|
||||
extern void gui_hotlist_print_log ();
|
||||
extern void gui_hotlist_end ();
|
||||
extern void gui_hotlist_print_log (void);
|
||||
extern void gui_hotlist_end (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_HOTLIST_H */
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@ gui_input_replace_input (struct t_gui_buffer *buffer, const char *new_input)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_input_paste_pending_signal ()
|
||||
gui_input_paste_pending_signal (void)
|
||||
{
|
||||
if (CONFIG_BOOLEAN(config_look_bare_display_exit_on_input)
|
||||
&& gui_window_bare_display)
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ extern char *gui_input_clipboard;
|
||||
|
||||
extern void gui_input_replace_input (struct t_gui_buffer *buffer,
|
||||
const char *new_input);
|
||||
extern void gui_input_paste_pending_signal ();
|
||||
extern void gui_input_paste_pending_signal (void);
|
||||
extern void gui_input_text_changed_modifier_and_signal (struct t_gui_buffer *buffer,
|
||||
int save_undo,
|
||||
int stop_completion);
|
||||
|
||||
+16
-16
@@ -111,7 +111,7 @@ time_t gui_key_last_activity_time = 0; /* last activity time (key) */
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_init ()
|
||||
gui_key_init (void)
|
||||
{
|
||||
int context;
|
||||
|
||||
@@ -168,7 +168,7 @@ gui_key_search_context (const char *context)
|
||||
*/
|
||||
|
||||
int
|
||||
gui_key_get_current_context ()
|
||||
gui_key_get_current_context (void)
|
||||
{
|
||||
if (gui_cursor_mode)
|
||||
return GUI_KEY_CONTEXT_CURSOR;
|
||||
@@ -2680,7 +2680,7 @@ gui_key_free_all (int context, struct t_gui_key **keys,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_buffer_optimize ()
|
||||
gui_key_buffer_optimize (void)
|
||||
{
|
||||
int optimal_size, *gui_key_buffer2;
|
||||
|
||||
@@ -2711,7 +2711,7 @@ gui_key_buffer_optimize ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_buffer_reset ()
|
||||
gui_key_buffer_reset (void)
|
||||
{
|
||||
if (!gui_key_buffer)
|
||||
{
|
||||
@@ -2827,7 +2827,7 @@ gui_key_buffer_remove (int index, int number)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_remove_newline ()
|
||||
gui_key_paste_remove_newline (void)
|
||||
{
|
||||
if ((gui_key_buffer_size > 0)
|
||||
&& ((gui_key_buffer[gui_key_buffer_size - 1] == '\r')
|
||||
@@ -2843,7 +2843,7 @@ gui_key_paste_remove_newline ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_replace_tabs ()
|
||||
gui_key_paste_replace_tabs (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -2859,7 +2859,7 @@ gui_key_paste_replace_tabs ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_start ()
|
||||
gui_key_paste_start (void)
|
||||
{
|
||||
gui_key_paste_pending = 1;
|
||||
gui_input_paste_pending_signal ();
|
||||
@@ -2870,7 +2870,7 @@ gui_key_paste_start ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_finish ()
|
||||
gui_key_paste_finish (void)
|
||||
{
|
||||
gui_key_paste_remove_newline ();
|
||||
gui_key_paste_replace_tabs ();
|
||||
@@ -2883,7 +2883,7 @@ gui_key_paste_finish ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_key_get_paste_lines ()
|
||||
gui_key_get_paste_lines (void)
|
||||
{
|
||||
int length;
|
||||
|
||||
@@ -2968,7 +2968,7 @@ gui_key_paste_bracketed_timer_cb (const void *pointer, void *data,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_bracketed_timer_remove ()
|
||||
gui_key_paste_bracketed_timer_remove (void)
|
||||
{
|
||||
if (gui_key_paste_bracketed_timer)
|
||||
{
|
||||
@@ -2982,7 +2982,7 @@ gui_key_paste_bracketed_timer_remove ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_bracketed_timer_add ()
|
||||
gui_key_paste_bracketed_timer_add (void)
|
||||
{
|
||||
gui_key_paste_bracketed_timer_remove ();
|
||||
gui_key_paste_bracketed_timer = hook_timer (
|
||||
@@ -2997,7 +2997,7 @@ gui_key_paste_bracketed_timer_add ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_bracketed_start ()
|
||||
gui_key_paste_bracketed_start (void)
|
||||
{
|
||||
gui_key_paste_bracketed = 1;
|
||||
gui_key_paste_bracketed_timer_add ();
|
||||
@@ -3009,7 +3009,7 @@ gui_key_paste_bracketed_start ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_bracketed_stop ()
|
||||
gui_key_paste_bracketed_stop (void)
|
||||
{
|
||||
gui_key_paste_check (1);
|
||||
gui_key_paste_bracketed = 0;
|
||||
@@ -3020,7 +3020,7 @@ gui_key_paste_bracketed_stop ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_accept ()
|
||||
gui_key_paste_accept (void)
|
||||
{
|
||||
gui_key_paste_pending = 0;
|
||||
gui_input_paste_pending_signal ();
|
||||
@@ -3032,7 +3032,7 @@ gui_key_paste_accept ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_paste_cancel ()
|
||||
gui_key_paste_cancel (void)
|
||||
{
|
||||
gui_key_buffer_reset ();
|
||||
gui_key_paste_pending = 0;
|
||||
@@ -3044,7 +3044,7 @@ gui_key_paste_cancel ()
|
||||
*/
|
||||
|
||||
void
|
||||
gui_key_end ()
|
||||
gui_key_end (void)
|
||||
{
|
||||
int context;
|
||||
|
||||
|
||||
+14
-14
@@ -90,7 +90,7 @@ extern time_t gui_key_last_activity_time;
|
||||
|
||||
/* key functions */
|
||||
|
||||
extern void gui_key_init ();
|
||||
extern void gui_key_init (void);
|
||||
extern int gui_key_search_context (const char *context);
|
||||
extern void gui_key_grab_init (int grab_command, const char *delay);
|
||||
extern int gui_key_expand (const char *key,
|
||||
@@ -128,24 +128,24 @@ extern void gui_key_free_all (int context,
|
||||
struct t_gui_key **last_key,
|
||||
int *keys_count,
|
||||
int delete_option);
|
||||
extern void gui_key_buffer_reset ();
|
||||
extern void gui_key_buffer_reset (void);
|
||||
extern void gui_key_buffer_add (unsigned char key);
|
||||
extern int gui_key_buffer_search (int start_index, int max_index,
|
||||
const char *string);
|
||||
extern void gui_key_buffer_remove (int index, int number);
|
||||
extern void gui_key_paste_remove_newline ();
|
||||
extern void gui_key_paste_replace_tabs ();
|
||||
extern void gui_key_paste_start ();
|
||||
extern void gui_key_paste_finish ();
|
||||
extern int gui_key_get_paste_lines ();
|
||||
extern void gui_key_paste_remove_newline (void);
|
||||
extern void gui_key_paste_replace_tabs (void);
|
||||
extern void gui_key_paste_start (void);
|
||||
extern void gui_key_paste_finish (void);
|
||||
extern int gui_key_get_paste_lines (void);
|
||||
extern int gui_key_paste_check (int bracketed_paste);
|
||||
extern void gui_key_paste_bracketed_timer_remove ();
|
||||
extern void gui_key_paste_bracketed_timer_add ();
|
||||
extern void gui_key_paste_bracketed_start ();
|
||||
extern void gui_key_paste_bracketed_stop ();
|
||||
extern void gui_key_paste_accept ();
|
||||
extern void gui_key_paste_cancel ();
|
||||
extern void gui_key_end ();
|
||||
extern void gui_key_paste_bracketed_timer_remove (void);
|
||||
extern void gui_key_paste_bracketed_timer_add (void);
|
||||
extern void gui_key_paste_bracketed_start (void);
|
||||
extern void gui_key_paste_bracketed_stop (void);
|
||||
extern void gui_key_paste_accept (void);
|
||||
extern void gui_key_paste_cancel (void);
|
||||
extern void gui_key_end (void);
|
||||
extern struct t_hdata *gui_key_hdata_key_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
|
||||
@@ -198,7 +198,7 @@ gui_layout_buffer_remove_all (struct t_gui_layout *layout)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_buffer_reset ()
|
||||
gui_layout_buffer_reset (void)
|
||||
{
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
|
||||
@@ -419,7 +419,7 @@ gui_layout_window_remove_all (struct t_gui_layout *layout)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_window_reset ()
|
||||
gui_layout_window_reset (void)
|
||||
{
|
||||
struct t_gui_window *ptr_win;
|
||||
|
||||
@@ -652,7 +652,7 @@ gui_layout_window_assign_buffer (struct t_gui_buffer *buffer)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_window_assign_all_buffers ()
|
||||
gui_layout_window_assign_all_buffers (void)
|
||||
{
|
||||
struct t_gui_window *ptr_win;
|
||||
struct t_gui_buffer *ptr_buffer;
|
||||
@@ -768,7 +768,7 @@ gui_layout_window_apply (struct t_gui_layout *layout,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_store_on_exit ()
|
||||
gui_layout_store_on_exit (void)
|
||||
{
|
||||
struct t_gui_layout *ptr_layout;
|
||||
|
||||
@@ -874,7 +874,7 @@ gui_layout_remove (struct t_gui_layout *layout)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_remove_all ()
|
||||
gui_layout_remove_all (void)
|
||||
{
|
||||
while (gui_layouts)
|
||||
{
|
||||
@@ -1116,7 +1116,7 @@ gui_layout_print_log_window (struct t_gui_layout_window *layout_window,
|
||||
*/
|
||||
|
||||
void
|
||||
gui_layout_print_log ()
|
||||
gui_layout_print_log (void)
|
||||
{
|
||||
struct t_gui_layout *ptr_layout;
|
||||
struct t_gui_layout_buffer *ptr_layout_buffer;
|
||||
|
||||
@@ -79,7 +79,7 @@ extern struct t_gui_layout *gui_layout_alloc (const char *name);
|
||||
extern int gui_layout_add (struct t_gui_layout *layout);
|
||||
extern void gui_layout_rename (struct t_gui_layout *layout, const char *new_name);
|
||||
extern void gui_layout_buffer_remove_all (struct t_gui_layout *layout);
|
||||
extern void gui_layout_buffer_reset ();
|
||||
extern void gui_layout_buffer_reset (void);
|
||||
extern struct t_gui_layout_buffer *gui_layout_buffer_add (struct t_gui_layout *layout,
|
||||
const char *plugin_name,
|
||||
const char *buffer_name,
|
||||
@@ -94,7 +94,7 @@ extern void gui_layout_buffer_store (struct t_gui_layout *layout);
|
||||
extern void gui_layout_buffer_apply (struct t_gui_layout *layout);
|
||||
|
||||
extern void gui_layout_window_remove_all (struct t_gui_layout *layout);
|
||||
extern void gui_layout_window_reset ();
|
||||
extern void gui_layout_window_reset (void);
|
||||
extern struct t_gui_layout_window *gui_layout_window_search_by_id (struct t_gui_layout_window *layout_window,
|
||||
int id);
|
||||
extern struct t_gui_layout_window *gui_layout_window_add (struct t_gui_layout_window **layout_window,
|
||||
@@ -109,10 +109,10 @@ extern int gui_layout_window_check_buffer (struct t_gui_window *window);
|
||||
extern void gui_layout_window_assign_buffer (struct t_gui_buffer *buffer);
|
||||
extern void gui_layout_window_apply (struct t_gui_layout *layout,
|
||||
int internal_id_current_window);
|
||||
extern void gui_layout_store_on_exit ();
|
||||
extern void gui_layout_store_on_exit (void);
|
||||
extern void gui_layout_free (struct t_gui_layout *layout);
|
||||
extern void gui_layout_remove (struct t_gui_layout *layout);
|
||||
extern void gui_layout_remove_all ();
|
||||
extern void gui_layout_remove_all (void);
|
||||
extern struct t_hdata *gui_layout_hdata_layout_buffer_cb (const void *pointer,
|
||||
void *data,
|
||||
const char *hdata_name);
|
||||
@@ -128,6 +128,6 @@ extern int gui_layout_window_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_layout_window *layout_window);
|
||||
extern int gui_layout_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_gui_layout *layout);
|
||||
extern void gui_layout_print_log ();
|
||||
extern void gui_layout_print_log (void);
|
||||
|
||||
#endif /* WEECHAT_GUI_LAYOUT_H */
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@
|
||||
*/
|
||||
|
||||
struct t_gui_lines *
|
||||
gui_line_lines_alloc ()
|
||||
gui_line_lines_alloc (void)
|
||||
{
|
||||
struct t_gui_lines *new_lines;
|
||||
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ struct t_gui_lines
|
||||
|
||||
/* line functions */
|
||||
|
||||
extern struct t_gui_lines *gui_line_lines_alloc ();
|
||||
extern struct t_gui_lines *gui_line_lines_alloc (void);
|
||||
extern void gui_line_lines_free (struct t_gui_lines *lines);
|
||||
extern void gui_line_tags_alloc (struct t_gui_line_data *line_data,
|
||||
const char *tags);
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
extern void gui_main_get_password (const char **prompt,
|
||||
char *password, int size);
|
||||
extern void gui_main_debug_libs ();
|
||||
extern void gui_main_debug_libs (void);
|
||||
extern void gui_main_end (int clean_exit);
|
||||
|
||||
/* terminal functions (GUI dependent) */
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ gui_mouse_debug_set (int debug)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_mouse_event_reset ()
|
||||
gui_mouse_event_reset (void)
|
||||
{
|
||||
gui_mouse_event_index = 0;
|
||||
gui_mouse_event_x[0] = 0;
|
||||
|
||||
+4
-4
@@ -34,13 +34,13 @@ extern char gui_mouse_event_button;
|
||||
/* mouse functions */
|
||||
|
||||
extern void gui_mouse_debug_set (int debug);
|
||||
extern void gui_mouse_event_reset ();
|
||||
extern void gui_mouse_event_reset (void);
|
||||
|
||||
/* mouse functions (GUI dependent) */
|
||||
|
||||
extern void gui_mouse_enable ();
|
||||
extern void gui_mouse_disable ();
|
||||
extern void gui_mouse_display_state ();
|
||||
extern void gui_mouse_enable (void);
|
||||
extern void gui_mouse_disable (void);
|
||||
extern void gui_mouse_display_state (void);
|
||||
extern void gui_mouse_grab_init (int area);
|
||||
extern int gui_mouse_event_size (const char *key);
|
||||
extern void gui_mouse_event_process (const char *key);
|
||||
|
||||
@@ -1541,7 +1541,7 @@ gui_nicklist_print_log (struct t_gui_nick_group *group, int indent)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_nicklist_end ()
|
||||
gui_nicklist_end (void)
|
||||
{
|
||||
if (gui_nicklist_hsignal)
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user