1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

php: sort functions by topic, remove unused API functions, fix compiler warning

Functions removed (not in scripting API):

- weechat_string_replace
- weechat_hdata_get_var
- weechat_hdata_get_var_type
This commit is contained in:
Sébastien Helleu
2017-09-04 21:00:53 +02:00
parent e317a6856c
commit 28811c7ebd
4 changed files with 4326 additions and 3727 deletions
File diff suppressed because it is too large Load Diff
+171 -173
View File
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2006-2017 Adam Saponara <as@php.net>
* Copyright (C) 2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
@@ -26,199 +27,196 @@ extern struct t_php_const weechat_php_api_consts[];
extern int weechat_php_buffer_new_input_callback(const void *pointer, void *data, struct t_gui_buffer *buffer, const char *input_data);
extern int weechat_php_buffer_new_close_callback(const void *pointer, void *data, struct t_gui_buffer *buffer);
PHP_FUNCTION(weechat_bar_item_new);
PHP_FUNCTION(weechat_bar_item_remove);
PHP_FUNCTION(weechat_bar_item_search);
PHP_FUNCTION(weechat_bar_item_update);
PHP_FUNCTION(weechat_bar_new);
PHP_FUNCTION(weechat_bar_remove);
PHP_FUNCTION(weechat_bar_search);
PHP_FUNCTION(weechat_bar_set);
PHP_FUNCTION(weechat_bar_update);
PHP_FUNCTION(weechat_buffer_clear);
PHP_FUNCTION(weechat_buffer_close);
PHP_FUNCTION(weechat_buffer_get_integer);
PHP_FUNCTION(weechat_buffer_get_pointer);
PHP_FUNCTION(weechat_buffer_get_string);
PHP_FUNCTION(weechat_buffer_match_list);
PHP_FUNCTION(weechat_buffer_merge);
PHP_FUNCTION(weechat_buffer_new);
PHP_FUNCTION(weechat_buffer_search);
PHP_FUNCTION(weechat_buffer_search_main);
PHP_FUNCTION(weechat_buffer_set);
PHP_FUNCTION(weechat_buffer_string_replace_local_var);
PHP_FUNCTION(weechat_buffer_unmerge);
PHP_FUNCTION(weechat_register);
PHP_FUNCTION(weechat_plugin_get_name);
PHP_FUNCTION(weechat_charset_set);
PHP_FUNCTION(weechat_color);
PHP_FUNCTION(weechat_command);
PHP_FUNCTION(weechat_config_boolean);
PHP_FUNCTION(weechat_config_boolean_default);
PHP_FUNCTION(weechat_config_color);
PHP_FUNCTION(weechat_config_color_default);
PHP_FUNCTION(weechat_config_free);
PHP_FUNCTION(weechat_config_get);
PHP_FUNCTION(weechat_config_get_plugin);
PHP_FUNCTION(weechat_config_integer);
PHP_FUNCTION(weechat_config_integer_default);
PHP_FUNCTION(weechat_config_is_set_plugin);
PHP_FUNCTION(weechat_iconv_to_internal);
PHP_FUNCTION(weechat_iconv_from_internal);
PHP_FUNCTION(weechat_gettext);
PHP_FUNCTION(weechat_ngettext);
PHP_FUNCTION(weechat_strlen_screen);
PHP_FUNCTION(weechat_string_match);
PHP_FUNCTION(weechat_string_has_highlight);
PHP_FUNCTION(weechat_string_has_highlight_regex);
PHP_FUNCTION(weechat_string_mask_to_regex);
PHP_FUNCTION(weechat_string_remove_color);
PHP_FUNCTION(weechat_string_is_command_char);
PHP_FUNCTION(weechat_string_input_for_buffer);
PHP_FUNCTION(weechat_string_eval_expression);
PHP_FUNCTION(weechat_string_eval_path_home);
PHP_FUNCTION(weechat_mkdir_home);
PHP_FUNCTION(weechat_mkdir);
PHP_FUNCTION(weechat_mkdir_parents);
PHP_FUNCTION(weechat_list_new);
PHP_FUNCTION(weechat_list_add);
PHP_FUNCTION(weechat_list_search);
PHP_FUNCTION(weechat_list_search_pos);
PHP_FUNCTION(weechat_list_casesearch);
PHP_FUNCTION(weechat_list_casesearch_pos);
PHP_FUNCTION(weechat_list_get);
PHP_FUNCTION(weechat_list_set);
PHP_FUNCTION(weechat_list_next);
PHP_FUNCTION(weechat_list_prev);
PHP_FUNCTION(weechat_list_string);
PHP_FUNCTION(weechat_list_size);
PHP_FUNCTION(weechat_list_remove);
PHP_FUNCTION(weechat_list_remove_all);
PHP_FUNCTION(weechat_list_free);
PHP_FUNCTION(weechat_config_new);
PHP_FUNCTION(weechat_config_new_option);
PHP_FUNCTION(weechat_config_new_section);
PHP_FUNCTION(weechat_config_option_default_is_null);
PHP_FUNCTION(weechat_config_option_free);
PHP_FUNCTION(weechat_config_option_is_null);
PHP_FUNCTION(weechat_config_option_rename);
PHP_FUNCTION(weechat_config_search_section);
PHP_FUNCTION(weechat_config_new_option);
PHP_FUNCTION(weechat_config_search_option);
PHP_FUNCTION(weechat_config_string_to_boolean);
PHP_FUNCTION(weechat_config_option_reset);
PHP_FUNCTION(weechat_config_option_set);
PHP_FUNCTION(weechat_config_option_set_null);
PHP_FUNCTION(weechat_config_option_unset);
PHP_FUNCTION(weechat_config_read);
PHP_FUNCTION(weechat_config_reload);
PHP_FUNCTION(weechat_config_search_option);
PHP_FUNCTION(weechat_config_search_section);
PHP_FUNCTION(weechat_config_section_free);
PHP_FUNCTION(weechat_config_section_free_options);
PHP_FUNCTION(weechat_config_set_desc_plugin);
PHP_FUNCTION(weechat_config_set_plugin);
PHP_FUNCTION(weechat_config_option_rename);
PHP_FUNCTION(weechat_config_option_is_null);
PHP_FUNCTION(weechat_config_option_default_is_null);
PHP_FUNCTION(weechat_config_boolean);
PHP_FUNCTION(weechat_config_boolean_default);
PHP_FUNCTION(weechat_config_integer);
PHP_FUNCTION(weechat_config_integer_default);
PHP_FUNCTION(weechat_config_string);
PHP_FUNCTION(weechat_config_string_default);
PHP_FUNCTION(weechat_config_string_to_boolean);
PHP_FUNCTION(weechat_config_unset_plugin);
PHP_FUNCTION(weechat_config_write);
PHP_FUNCTION(weechat_config_write_line);
PHP_FUNCTION(weechat_config_color);
PHP_FUNCTION(weechat_config_color_default);
PHP_FUNCTION(weechat_config_write_option);
PHP_FUNCTION(weechat_gettext);
PHP_FUNCTION(weechat_hdata_char);
PHP_FUNCTION(weechat_hdata_check_pointer);
PHP_FUNCTION(weechat_hdata_compare);
PHP_FUNCTION(weechat_hdata_get);
PHP_FUNCTION(weechat_hdata_get_list);
PHP_FUNCTION(weechat_hdata_get_string);
PHP_FUNCTION(weechat_hdata_get_var);
PHP_FUNCTION(weechat_hdata_get_var_array_size);
PHP_FUNCTION(weechat_hdata_get_var_array_size_string);
PHP_FUNCTION(weechat_hdata_get_var_hdata);
PHP_FUNCTION(weechat_hdata_get_var_offset);
PHP_FUNCTION(weechat_hdata_get_var_type);
PHP_FUNCTION(weechat_hdata_get_var_type_string);
PHP_FUNCTION(weechat_hdata_hashtable);
PHP_FUNCTION(weechat_hdata_integer);
PHP_FUNCTION(weechat_hdata_long);
PHP_FUNCTION(weechat_hdata_move);
PHP_FUNCTION(weechat_hdata_pointer);
PHP_FUNCTION(weechat_hdata_search);
PHP_FUNCTION(weechat_hdata_string);
PHP_FUNCTION(weechat_hdata_time);
PHP_FUNCTION(weechat_hdata_update);
PHP_FUNCTION(weechat_hook_command);
PHP_FUNCTION(weechat_hook_command_run);
PHP_FUNCTION(weechat_hook_completion);
PHP_FUNCTION(weechat_hook_completion_get_string);
PHP_FUNCTION(weechat_hook_completion_list_add);
PHP_FUNCTION(weechat_hook_config);
PHP_FUNCTION(weechat_hook_connect);
PHP_FUNCTION(weechat_hook_fd);
PHP_FUNCTION(weechat_hook_focus);
PHP_FUNCTION(weechat_hook_hsignal);
PHP_FUNCTION(weechat_hook_hsignal_send);
PHP_FUNCTION(weechat_hook_info);
PHP_FUNCTION(weechat_hook_info_hashtable);
PHP_FUNCTION(weechat_hook_infolist);
PHP_FUNCTION(weechat_hook_modifier);
PHP_FUNCTION(weechat_hook_modifier_exec);
PHP_FUNCTION(weechat_hook_print);
PHP_FUNCTION(weechat_hook_process);
PHP_FUNCTION(weechat_hook_process_hashtable);
PHP_FUNCTION(weechat_hook_set);
PHP_FUNCTION(weechat_hook_signal);
PHP_FUNCTION(weechat_hook_signal_send);
PHP_FUNCTION(weechat_hook_timer);
PHP_FUNCTION(weechat_iconv_from_internal);
PHP_FUNCTION(weechat_iconv_to_internal);
PHP_FUNCTION(weechat_info_get);
PHP_FUNCTION(weechat_info_get_hashtable);
PHP_FUNCTION(weechat_infolist_fields);
PHP_FUNCTION(weechat_infolist_free);
PHP_FUNCTION(weechat_infolist_get);
PHP_FUNCTION(weechat_infolist_integer);
PHP_FUNCTION(weechat_infolist_new);
PHP_FUNCTION(weechat_infolist_new_item);
PHP_FUNCTION(weechat_infolist_new_var_integer);
PHP_FUNCTION(weechat_infolist_new_var_pointer);
PHP_FUNCTION(weechat_infolist_new_var_string);
PHP_FUNCTION(weechat_infolist_new_var_time);
PHP_FUNCTION(weechat_infolist_next);
PHP_FUNCTION(weechat_infolist_pointer);
PHP_FUNCTION(weechat_infolist_prev);
PHP_FUNCTION(weechat_infolist_reset_item_cursor);
PHP_FUNCTION(weechat_infolist_search_var);
PHP_FUNCTION(weechat_infolist_string);
PHP_FUNCTION(weechat_infolist_time);
PHP_FUNCTION(weechat_config_write_line);
PHP_FUNCTION(weechat_config_write);
PHP_FUNCTION(weechat_config_read);
PHP_FUNCTION(weechat_config_reload);
PHP_FUNCTION(weechat_config_option_free);
PHP_FUNCTION(weechat_config_section_free_options);
PHP_FUNCTION(weechat_config_section_free);
PHP_FUNCTION(weechat_config_free);
PHP_FUNCTION(weechat_config_get);
PHP_FUNCTION(weechat_config_get_plugin);
PHP_FUNCTION(weechat_config_is_set_plugin);
PHP_FUNCTION(weechat_config_set_plugin);
PHP_FUNCTION(weechat_config_set_desc_plugin);
PHP_FUNCTION(weechat_config_unset_plugin);
PHP_FUNCTION(weechat_key_bind);
PHP_FUNCTION(weechat_key_unbind);
PHP_FUNCTION(weechat_list_add);
PHP_FUNCTION(weechat_list_casesearch);
PHP_FUNCTION(weechat_list_casesearch_pos);
PHP_FUNCTION(weechat_list_free);
PHP_FUNCTION(weechat_list_get);
PHP_FUNCTION(weechat_list_new);
PHP_FUNCTION(weechat_list_next);
PHP_FUNCTION(weechat_list_prev);
PHP_FUNCTION(weechat_list_remove);
PHP_FUNCTION(weechat_list_remove_all);
PHP_FUNCTION(weechat_list_search);
PHP_FUNCTION(weechat_list_search_pos);
PHP_FUNCTION(weechat_list_set);
PHP_FUNCTION(weechat_list_size);
PHP_FUNCTION(weechat_list_string);
PHP_FUNCTION(weechat_log_printf);
PHP_FUNCTION(weechat_mkdir);
PHP_FUNCTION(weechat_mkdir_home);
PHP_FUNCTION(weechat_mkdir_parents);
PHP_FUNCTION(weechat_ngettext);
PHP_FUNCTION(weechat_nicklist_add_group);
PHP_FUNCTION(weechat_nicklist_add_nick);
PHP_FUNCTION(weechat_nicklist_group_get_integer);
PHP_FUNCTION(weechat_nicklist_group_get_pointer);
PHP_FUNCTION(weechat_nicklist_group_get_string);
PHP_FUNCTION(weechat_nicklist_group_set);
PHP_FUNCTION(weechat_nicklist_nick_get_integer);
PHP_FUNCTION(weechat_nicklist_nick_get_pointer);
PHP_FUNCTION(weechat_nicklist_nick_get_string);
PHP_FUNCTION(weechat_nicklist_nick_set);
PHP_FUNCTION(weechat_nicklist_remove_all);
PHP_FUNCTION(weechat_nicklist_remove_group);
PHP_FUNCTION(weechat_nicklist_remove_nick);
PHP_FUNCTION(weechat_nicklist_search_group);
PHP_FUNCTION(weechat_nicklist_search_nick);
PHP_FUNCTION(weechat_plugin_get_name);
PHP_FUNCTION(weechat_prefix);
PHP_FUNCTION(weechat_color);
PHP_FUNCTION(weechat_printf);
PHP_FUNCTION(weechat_printf_date_tags);
PHP_FUNCTION(weechat_printf_y);
PHP_FUNCTION(weechat_register);
PHP_FUNCTION(weechat_string_eval_expression);
PHP_FUNCTION(weechat_string_eval_path_home);
PHP_FUNCTION(weechat_string_has_highlight);
PHP_FUNCTION(weechat_string_has_highlight_regex);
PHP_FUNCTION(weechat_string_input_for_buffer);
PHP_FUNCTION(weechat_string_is_command_char);
PHP_FUNCTION(weechat_string_mask_to_regex);
PHP_FUNCTION(weechat_string_match);
PHP_FUNCTION(weechat_string_remove_color);
PHP_FUNCTION(weechat_string_replace);
PHP_FUNCTION(weechat_strlen_screen);
PHP_FUNCTION(weechat_log_printf);
PHP_FUNCTION(weechat_hook_command);
PHP_FUNCTION(weechat_hook_completion);
PHP_FUNCTION(weechat_hook_completion_get_string);
PHP_FUNCTION(weechat_hook_completion_list_add);
PHP_FUNCTION(weechat_hook_command_run);
PHP_FUNCTION(weechat_hook_timer);
PHP_FUNCTION(weechat_hook_fd);
PHP_FUNCTION(weechat_hook_process);
PHP_FUNCTION(weechat_hook_process_hashtable);
PHP_FUNCTION(weechat_hook_connect);
PHP_FUNCTION(weechat_hook_print);
PHP_FUNCTION(weechat_hook_signal);
PHP_FUNCTION(weechat_hook_signal_send);
PHP_FUNCTION(weechat_hook_hsignal);
PHP_FUNCTION(weechat_hook_hsignal_send);
PHP_FUNCTION(weechat_hook_config);
PHP_FUNCTION(weechat_hook_modifier);
PHP_FUNCTION(weechat_hook_modifier_exec);
PHP_FUNCTION(weechat_hook_info);
PHP_FUNCTION(weechat_hook_info_hashtable);
PHP_FUNCTION(weechat_hook_infolist);
PHP_FUNCTION(weechat_hook_focus);
PHP_FUNCTION(weechat_hook_set);
PHP_FUNCTION(weechat_unhook);
PHP_FUNCTION(weechat_unhook_all);
PHP_FUNCTION(weechat_upgrade_close);
PHP_FUNCTION(weechat_upgrade_new);
PHP_FUNCTION(weechat_upgrade_read);
PHP_FUNCTION(weechat_upgrade_write_object);
PHP_FUNCTION(weechat_window_get_integer);
PHP_FUNCTION(weechat_window_get_pointer);
PHP_FUNCTION(weechat_window_get_string);
PHP_FUNCTION(weechat_buffer_new);
PHP_FUNCTION(weechat_buffer_search);
PHP_FUNCTION(weechat_buffer_search_main);
PHP_FUNCTION(weechat_buffer_clear);
PHP_FUNCTION(weechat_buffer_close);
PHP_FUNCTION(weechat_buffer_merge);
PHP_FUNCTION(weechat_buffer_unmerge);
PHP_FUNCTION(weechat_buffer_get_integer);
PHP_FUNCTION(weechat_buffer_get_string);
PHP_FUNCTION(weechat_buffer_get_pointer);
PHP_FUNCTION(weechat_buffer_set);
PHP_FUNCTION(weechat_buffer_string_replace_local_var);
PHP_FUNCTION(weechat_buffer_match_list);
PHP_FUNCTION(weechat_window_search_with_buffer);
PHP_FUNCTION(weechat_window_get_integer);
PHP_FUNCTION(weechat_window_get_string);
PHP_FUNCTION(weechat_window_get_pointer);
PHP_FUNCTION(weechat_window_set_title);
PHP_FUNCTION(weechat_nicklist_add_group);
PHP_FUNCTION(weechat_nicklist_search_group);
PHP_FUNCTION(weechat_nicklist_add_nick);
PHP_FUNCTION(weechat_nicklist_search_nick);
PHP_FUNCTION(weechat_nicklist_remove_group);
PHP_FUNCTION(weechat_nicklist_remove_nick);
PHP_FUNCTION(weechat_nicklist_remove_all);
PHP_FUNCTION(weechat_nicklist_group_get_integer);
PHP_FUNCTION(weechat_nicklist_group_get_string);
PHP_FUNCTION(weechat_nicklist_group_get_pointer);
PHP_FUNCTION(weechat_nicklist_group_set);
PHP_FUNCTION(weechat_nicklist_nick_get_integer);
PHP_FUNCTION(weechat_nicklist_nick_get_string);
PHP_FUNCTION(weechat_nicklist_nick_get_pointer);
PHP_FUNCTION(weechat_nicklist_nick_set);
PHP_FUNCTION(weechat_bar_item_search);
PHP_FUNCTION(weechat_bar_item_new);
PHP_FUNCTION(weechat_bar_item_update);
PHP_FUNCTION(weechat_bar_item_remove);
PHP_FUNCTION(weechat_bar_search);
PHP_FUNCTION(weechat_bar_new);
PHP_FUNCTION(weechat_bar_set);
PHP_FUNCTION(weechat_bar_update);
PHP_FUNCTION(weechat_bar_remove);
PHP_FUNCTION(weechat_command);
PHP_FUNCTION(weechat_info_get);
PHP_FUNCTION(weechat_info_get_hashtable);
PHP_FUNCTION(weechat_infolist_new);
PHP_FUNCTION(weechat_infolist_new_item);
PHP_FUNCTION(weechat_infolist_new_var_integer);
PHP_FUNCTION(weechat_infolist_new_var_string);
PHP_FUNCTION(weechat_infolist_new_var_pointer);
PHP_FUNCTION(weechat_infolist_new_var_time);
PHP_FUNCTION(weechat_infolist_search_var);
PHP_FUNCTION(weechat_infolist_get);
PHP_FUNCTION(weechat_infolist_next);
PHP_FUNCTION(weechat_infolist_prev);
PHP_FUNCTION(weechat_infolist_reset_item_cursor);
PHP_FUNCTION(weechat_infolist_fields);
PHP_FUNCTION(weechat_infolist_integer);
PHP_FUNCTION(weechat_infolist_string);
PHP_FUNCTION(weechat_infolist_pointer);
PHP_FUNCTION(weechat_infolist_time);
PHP_FUNCTION(weechat_infolist_free);
PHP_FUNCTION(weechat_hdata_get);
PHP_FUNCTION(weechat_hdata_get_var_offset);
PHP_FUNCTION(weechat_hdata_get_var_type_string);
PHP_FUNCTION(weechat_hdata_get_var_array_size);
PHP_FUNCTION(weechat_hdata_get_var_array_size_string);
PHP_FUNCTION(weechat_hdata_get_var_hdata);
PHP_FUNCTION(weechat_hdata_get_list);
PHP_FUNCTION(weechat_hdata_check_pointer);
PHP_FUNCTION(weechat_hdata_move);
PHP_FUNCTION(weechat_hdata_search);
PHP_FUNCTION(weechat_hdata_char);
PHP_FUNCTION(weechat_hdata_integer);
PHP_FUNCTION(weechat_hdata_long);
PHP_FUNCTION(weechat_hdata_string);
PHP_FUNCTION(weechat_hdata_pointer);
PHP_FUNCTION(weechat_hdata_time);
PHP_FUNCTION(weechat_hdata_hashtable);
PHP_FUNCTION(weechat_hdata_compare);
PHP_FUNCTION(weechat_hdata_update);
PHP_FUNCTION(weechat_hdata_get_string);
PHP_FUNCTION(weechat_upgrade_new);
PHP_FUNCTION(weechat_upgrade_write_object);
PHP_FUNCTION(weechat_upgrade_read);
PHP_FUNCTION(weechat_upgrade_close);
PHP_FUNCTION(forget_class);
PHP_FUNCTION(forget_function);
+171 -174
View File
@@ -2,6 +2,7 @@
* weechat-php.c - PHP plugin for WeeChat
*
* Copyright (C) 2006-2017 Adam Saponara <as@php.net>
* Copyright (C) 2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
@@ -71,199 +72,196 @@ char *php_action_remove_list = NULL;
char *php_action_autoload_list = NULL;
const zend_function_entry weechat_functions[] = {
PHP_FE(weechat_bar_item_new, NULL)
PHP_FE(weechat_bar_item_remove, NULL)
PHP_FE(weechat_bar_item_search, NULL)
PHP_FE(weechat_bar_item_update, NULL)
PHP_FE(weechat_bar_new, NULL)
PHP_FE(weechat_bar_remove, NULL)
PHP_FE(weechat_bar_search, NULL)
PHP_FE(weechat_bar_set, NULL)
PHP_FE(weechat_bar_update, NULL)
PHP_FE(weechat_buffer_clear, NULL)
PHP_FE(weechat_buffer_close, NULL)
PHP_FE(weechat_buffer_get_integer, NULL)
PHP_FE(weechat_buffer_get_pointer, NULL)
PHP_FE(weechat_buffer_get_string, NULL)
PHP_FE(weechat_buffer_match_list, NULL)
PHP_FE(weechat_buffer_merge, NULL)
PHP_FE(weechat_buffer_new, NULL)
PHP_FE(weechat_buffer_search_main, NULL)
PHP_FE(weechat_buffer_search, NULL)
PHP_FE(weechat_buffer_set, NULL)
PHP_FE(weechat_buffer_string_replace_local_var, NULL)
PHP_FE(weechat_buffer_unmerge, NULL)
PHP_FE(weechat_register, NULL)
PHP_FE(weechat_plugin_get_name, NULL)
PHP_FE(weechat_charset_set, NULL)
PHP_FE(weechat_color, NULL)
PHP_FE(weechat_command, NULL)
PHP_FE(weechat_config_boolean_default, NULL)
PHP_FE(weechat_config_boolean, NULL)
PHP_FE(weechat_config_color_default, NULL)
PHP_FE(weechat_config_color, NULL)
PHP_FE(weechat_config_free, NULL)
PHP_FE(weechat_config_get, NULL)
PHP_FE(weechat_config_get_plugin, NULL)
PHP_FE(weechat_config_integer_default, NULL)
PHP_FE(weechat_config_integer, NULL)
PHP_FE(weechat_config_is_set_plugin, NULL)
PHP_FE(weechat_iconv_to_internal, NULL)
PHP_FE(weechat_iconv_from_internal, NULL)
PHP_FE(weechat_gettext, NULL)
PHP_FE(weechat_ngettext, NULL)
PHP_FE(weechat_strlen_screen, NULL)
PHP_FE(weechat_string_match, NULL)
PHP_FE(weechat_string_has_highlight, NULL)
PHP_FE(weechat_string_has_highlight_regex, NULL)
PHP_FE(weechat_string_mask_to_regex, NULL)
PHP_FE(weechat_string_remove_color, NULL)
PHP_FE(weechat_string_is_command_char, NULL)
PHP_FE(weechat_string_input_for_buffer, NULL)
PHP_FE(weechat_string_eval_expression, NULL)
PHP_FE(weechat_string_eval_path_home, NULL)
PHP_FE(weechat_mkdir_home, NULL)
PHP_FE(weechat_mkdir, NULL)
PHP_FE(weechat_mkdir_parents, NULL)
PHP_FE(weechat_list_new, NULL)
PHP_FE(weechat_list_add, NULL)
PHP_FE(weechat_list_search, NULL)
PHP_FE(weechat_list_search_pos, NULL)
PHP_FE(weechat_list_casesearch, NULL)
PHP_FE(weechat_list_casesearch_pos, NULL)
PHP_FE(weechat_list_get, NULL)
PHP_FE(weechat_list_set, NULL)
PHP_FE(weechat_list_next, NULL)
PHP_FE(weechat_list_prev, NULL)
PHP_FE(weechat_list_string, NULL)
PHP_FE(weechat_list_size, NULL)
PHP_FE(weechat_list_remove, NULL)
PHP_FE(weechat_list_remove_all, NULL)
PHP_FE(weechat_list_free, NULL)
PHP_FE(weechat_config_new, NULL)
PHP_FE(weechat_config_new_option, NULL)
PHP_FE(weechat_config_new_section, NULL)
PHP_FE(weechat_config_option_default_is_null, NULL)
PHP_FE(weechat_config_option_free, NULL)
PHP_FE(weechat_config_option_is_null, NULL)
PHP_FE(weechat_config_option_rename, NULL)
PHP_FE(weechat_config_search_section, NULL)
PHP_FE(weechat_config_new_option, NULL)
PHP_FE(weechat_config_search_option, NULL)
PHP_FE(weechat_config_string_to_boolean, NULL)
PHP_FE(weechat_config_option_reset, NULL)
PHP_FE(weechat_config_option_set, NULL)
PHP_FE(weechat_config_option_set_null, NULL)
PHP_FE(weechat_config_option_unset, NULL)
PHP_FE(weechat_config_read, NULL)
PHP_FE(weechat_config_reload, NULL)
PHP_FE(weechat_config_search_option, NULL)
PHP_FE(weechat_config_search_section, NULL)
PHP_FE(weechat_config_section_free, NULL)
PHP_FE(weechat_config_section_free_options, NULL)
PHP_FE(weechat_config_set_desc_plugin, NULL)
PHP_FE(weechat_config_set_plugin, NULL)
PHP_FE(weechat_config_string_default, NULL)
PHP_FE(weechat_config_option_rename, NULL)
PHP_FE(weechat_config_option_is_null, NULL)
PHP_FE(weechat_config_option_default_is_null, NULL)
PHP_FE(weechat_config_boolean, NULL)
PHP_FE(weechat_config_boolean_default, NULL)
PHP_FE(weechat_config_integer, NULL)
PHP_FE(weechat_config_integer_default, NULL)
PHP_FE(weechat_config_string, NULL)
PHP_FE(weechat_config_string_to_boolean, NULL)
PHP_FE(weechat_config_unset_plugin, NULL)
PHP_FE(weechat_config_string_default, NULL)
PHP_FE(weechat_config_color, NULL)
PHP_FE(weechat_config_color_default, NULL)
PHP_FE(weechat_config_write_option, NULL)
PHP_FE(weechat_config_write_line, NULL)
PHP_FE(weechat_config_write, NULL)
PHP_FE(weechat_config_write_option, NULL)
PHP_FE(weechat_gettext, NULL)
PHP_FE(weechat_hdata_char, NULL)
PHP_FE(weechat_hdata_check_pointer, NULL)
PHP_FE(weechat_hdata_compare, NULL)
PHP_FE(weechat_hdata_get_list, NULL)
PHP_FE(weechat_config_read, NULL)
PHP_FE(weechat_config_reload, NULL)
PHP_FE(weechat_config_option_free, NULL)
PHP_FE(weechat_config_section_free_options, NULL)
PHP_FE(weechat_config_section_free, NULL)
PHP_FE(weechat_config_free, NULL)
PHP_FE(weechat_config_get, NULL)
PHP_FE(weechat_config_get_plugin, NULL)
PHP_FE(weechat_config_is_set_plugin, NULL)
PHP_FE(weechat_config_set_plugin, NULL)
PHP_FE(weechat_config_set_desc_plugin, NULL)
PHP_FE(weechat_config_unset_plugin, NULL)
PHP_FE(weechat_key_bind, NULL)
PHP_FE(weechat_key_unbind, NULL)
PHP_FE(weechat_prefix, NULL)
PHP_FE(weechat_color, NULL)
PHP_FE(weechat_printf, NULL)
PHP_FE(weechat_printf_date_tags, NULL)
PHP_FE(weechat_printf_y, NULL)
PHP_FE(weechat_log_printf, NULL)
PHP_FE(weechat_hook_command, NULL)
PHP_FE(weechat_hook_completion, NULL)
PHP_FE(weechat_hook_completion_get_string, NULL)
PHP_FE(weechat_hook_completion_list_add, NULL)
PHP_FE(weechat_hook_command_run, NULL)
PHP_FE(weechat_hook_timer, NULL)
PHP_FE(weechat_hook_fd, NULL)
PHP_FE(weechat_hook_process, NULL)
PHP_FE(weechat_hook_process_hashtable, NULL)
PHP_FE(weechat_hook_connect, NULL)
PHP_FE(weechat_hook_print, NULL)
PHP_FE(weechat_hook_signal, NULL)
PHP_FE(weechat_hook_signal_send, NULL)
PHP_FE(weechat_hook_hsignal, NULL)
PHP_FE(weechat_hook_hsignal_send, NULL)
PHP_FE(weechat_hook_config, NULL)
PHP_FE(weechat_hook_modifier, NULL)
PHP_FE(weechat_hook_modifier_exec, NULL)
PHP_FE(weechat_hook_info, NULL)
PHP_FE(weechat_hook_info_hashtable, NULL)
PHP_FE(weechat_hook_infolist, NULL)
PHP_FE(weechat_hook_focus, NULL)
PHP_FE(weechat_hook_set, NULL)
PHP_FE(weechat_unhook, NULL)
PHP_FE(weechat_unhook_all, NULL)
PHP_FE(weechat_buffer_new, NULL)
PHP_FE(weechat_buffer_search, NULL)
PHP_FE(weechat_buffer_search_main, NULL)
PHP_FE(weechat_buffer_clear, NULL)
PHP_FE(weechat_buffer_close, NULL)
PHP_FE(weechat_buffer_merge, NULL)
PHP_FE(weechat_buffer_unmerge, NULL)
PHP_FE(weechat_buffer_get_integer, NULL)
PHP_FE(weechat_buffer_get_string, NULL)
PHP_FE(weechat_buffer_get_pointer, NULL)
PHP_FE(weechat_buffer_set, NULL)
PHP_FE(weechat_buffer_string_replace_local_var, NULL)
PHP_FE(weechat_buffer_match_list, NULL)
PHP_FE(weechat_window_search_with_buffer, NULL)
PHP_FE(weechat_window_get_integer, NULL)
PHP_FE(weechat_window_get_string, NULL)
PHP_FE(weechat_window_get_pointer, NULL)
PHP_FE(weechat_window_set_title, NULL)
PHP_FE(weechat_nicklist_add_group, NULL)
PHP_FE(weechat_nicklist_search_group, NULL)
PHP_FE(weechat_nicklist_add_nick, NULL)
PHP_FE(weechat_nicklist_search_nick, NULL)
PHP_FE(weechat_nicklist_remove_group, NULL)
PHP_FE(weechat_nicklist_remove_nick, NULL)
PHP_FE(weechat_nicklist_remove_all, NULL)
PHP_FE(weechat_nicklist_group_get_integer, NULL)
PHP_FE(weechat_nicklist_group_get_string, NULL)
PHP_FE(weechat_nicklist_group_get_pointer, NULL)
PHP_FE(weechat_nicklist_group_set, NULL)
PHP_FE(weechat_nicklist_nick_get_integer, NULL)
PHP_FE(weechat_nicklist_nick_get_string, NULL)
PHP_FE(weechat_nicklist_nick_get_pointer, NULL)
PHP_FE(weechat_nicklist_nick_set, NULL)
PHP_FE(weechat_bar_item_search, NULL)
PHP_FE(weechat_bar_item_new, NULL)
PHP_FE(weechat_bar_item_update, NULL)
PHP_FE(weechat_bar_item_remove, NULL)
PHP_FE(weechat_bar_search, NULL)
PHP_FE(weechat_bar_new, NULL)
PHP_FE(weechat_bar_set, NULL)
PHP_FE(weechat_bar_update, NULL)
PHP_FE(weechat_bar_remove, NULL)
PHP_FE(weechat_command, NULL)
PHP_FE(weechat_info_get, NULL)
PHP_FE(weechat_info_get_hashtable, NULL)
PHP_FE(weechat_infolist_new, NULL)
PHP_FE(weechat_infolist_new_item, NULL)
PHP_FE(weechat_infolist_new_var_integer, NULL)
PHP_FE(weechat_infolist_new_var_string, NULL)
PHP_FE(weechat_infolist_new_var_pointer, NULL)
PHP_FE(weechat_infolist_new_var_time, NULL)
PHP_FE(weechat_infolist_search_var, NULL)
PHP_FE(weechat_infolist_get, NULL)
PHP_FE(weechat_infolist_next, NULL)
PHP_FE(weechat_infolist_prev, NULL)
PHP_FE(weechat_infolist_reset_item_cursor, NULL)
PHP_FE(weechat_infolist_fields, NULL)
PHP_FE(weechat_infolist_integer, NULL)
PHP_FE(weechat_infolist_string, NULL)
PHP_FE(weechat_infolist_pointer, NULL)
PHP_FE(weechat_infolist_time, NULL)
PHP_FE(weechat_infolist_free, NULL)
PHP_FE(weechat_hdata_get, NULL)
PHP_FE(weechat_hdata_get_string, NULL)
PHP_FE(weechat_hdata_get_var_offset, NULL)
PHP_FE(weechat_hdata_get_var_type_string, NULL)
PHP_FE(weechat_hdata_get_var_array_size, NULL)
PHP_FE(weechat_hdata_get_var_array_size_string, NULL)
PHP_FE(weechat_hdata_get_var_hdata, NULL)
PHP_FE(weechat_hdata_get_var, NULL)
PHP_FE(weechat_hdata_get_var_offset, NULL)
PHP_FE(weechat_hdata_get_var_type, NULL)
PHP_FE(weechat_hdata_get_var_type_string, NULL)
PHP_FE(weechat_hdata_hashtable, NULL)
PHP_FE(weechat_hdata_get_list, NULL)
PHP_FE(weechat_hdata_check_pointer, NULL)
PHP_FE(weechat_hdata_move, NULL)
PHP_FE(weechat_hdata_search, NULL)
PHP_FE(weechat_hdata_char, NULL)
PHP_FE(weechat_hdata_integer, NULL)
PHP_FE(weechat_hdata_long, NULL)
PHP_FE(weechat_hdata_move, NULL)
PHP_FE(weechat_hdata_pointer, NULL)
PHP_FE(weechat_hdata_search, NULL)
PHP_FE(weechat_hdata_string, NULL)
PHP_FE(weechat_hdata_pointer, NULL)
PHP_FE(weechat_hdata_time, NULL)
PHP_FE(weechat_hdata_hashtable, NULL)
PHP_FE(weechat_hdata_compare, NULL)
PHP_FE(weechat_hdata_update, NULL)
PHP_FE(weechat_hook_command, NULL)
PHP_FE(weechat_hook_command_run, NULL)
PHP_FE(weechat_hook_completion_get_string, NULL)
PHP_FE(weechat_hook_completion_list_add, NULL)
PHP_FE(weechat_hook_completion, NULL)
PHP_FE(weechat_hook_config, NULL)
PHP_FE(weechat_hook_connect, NULL)
PHP_FE(weechat_hook_fd, NULL)
PHP_FE(weechat_hook_focus, NULL)
PHP_FE(weechat_hook_hsignal, NULL)
PHP_FE(weechat_hook_hsignal_send, NULL)
PHP_FE(weechat_hook_info_hashtable, NULL)
PHP_FE(weechat_hook_infolist, NULL)
PHP_FE(weechat_hook_info, NULL)
PHP_FE(weechat_hook_modifier_exec, NULL)
PHP_FE(weechat_hook_modifier, NULL)
PHP_FE(weechat_hook_print, NULL)
PHP_FE(weechat_hook_process_hashtable, NULL)
PHP_FE(weechat_hook_process, NULL)
PHP_FE(weechat_hook_set, NULL)
PHP_FE(weechat_hook_signal, NULL)
PHP_FE(weechat_hook_signal_send, NULL)
PHP_FE(weechat_hook_timer, NULL)
PHP_FE(weechat_iconv_from_internal, NULL)
PHP_FE(weechat_iconv_to_internal, NULL)
PHP_FE(weechat_info_get_hashtable, NULL)
PHP_FE(weechat_info_get, NULL)
PHP_FE(weechat_infolist_fields, NULL)
PHP_FE(weechat_infolist_free, NULL)
PHP_FE(weechat_infolist_get, NULL)
PHP_FE(weechat_infolist_integer, NULL)
PHP_FE(weechat_infolist_new_item, NULL)
PHP_FE(weechat_infolist_new, NULL)
PHP_FE(weechat_infolist_new_var_integer, NULL)
PHP_FE(weechat_infolist_new_var_pointer, NULL)
PHP_FE(weechat_infolist_new_var_string, NULL)
PHP_FE(weechat_infolist_new_var_time, NULL)
PHP_FE(weechat_infolist_next, NULL)
PHP_FE(weechat_infolist_pointer, NULL)
PHP_FE(weechat_infolist_prev, NULL)
PHP_FE(weechat_infolist_reset_item_cursor, NULL)
PHP_FE(weechat_infolist_search_var, NULL)
PHP_FE(weechat_infolist_string, NULL)
PHP_FE(weechat_infolist_time, NULL)
PHP_FE(weechat_key_bind, NULL)
PHP_FE(weechat_key_unbind, NULL)
PHP_FE(weechat_list_add, NULL)
PHP_FE(weechat_list_casesearch, NULL)
PHP_FE(weechat_list_casesearch_pos, NULL)
PHP_FE(weechat_list_free, NULL)
PHP_FE(weechat_list_get, NULL)
PHP_FE(weechat_list_new, NULL)
PHP_FE(weechat_list_next, NULL)
PHP_FE(weechat_list_prev, NULL)
PHP_FE(weechat_list_remove_all, NULL)
PHP_FE(weechat_list_remove, NULL)
PHP_FE(weechat_list_search, NULL)
PHP_FE(weechat_list_search_pos, NULL)
PHP_FE(weechat_list_set, NULL)
PHP_FE(weechat_list_size, NULL)
PHP_FE(weechat_list_string, NULL)
PHP_FE(weechat_log_printf, NULL)
PHP_FE(weechat_mkdir_home, NULL)
PHP_FE(weechat_mkdir, NULL)
PHP_FE(weechat_mkdir_parents, NULL)
PHP_FE(weechat_ngettext, NULL)
PHP_FE(weechat_nicklist_add_group, NULL)
PHP_FE(weechat_nicklist_add_nick, NULL)
PHP_FE(weechat_nicklist_group_get_integer, NULL)
PHP_FE(weechat_nicklist_group_get_pointer, NULL)
PHP_FE(weechat_nicklist_group_get_string, NULL)
PHP_FE(weechat_nicklist_group_set, NULL)
PHP_FE(weechat_nicklist_nick_get_integer, NULL)
PHP_FE(weechat_nicklist_nick_get_pointer, NULL)
PHP_FE(weechat_nicklist_nick_get_string, NULL)
PHP_FE(weechat_nicklist_nick_set, NULL)
PHP_FE(weechat_nicklist_remove_all, NULL)
PHP_FE(weechat_nicklist_remove_group, NULL)
PHP_FE(weechat_nicklist_remove_nick, NULL)
PHP_FE(weechat_nicklist_search_group, NULL)
PHP_FE(weechat_nicklist_search_nick, NULL)
PHP_FE(weechat_plugin_get_name, NULL)
PHP_FE(weechat_prefix, NULL)
PHP_FE(weechat_printf_date_tags, NULL)
PHP_FE(weechat_printf, NULL)
PHP_FE(weechat_printf_y, NULL)
PHP_FE(weechat_register, NULL)
PHP_FE(weechat_string_eval_expression, NULL)
PHP_FE(weechat_string_eval_path_home, NULL)
PHP_FE(weechat_string_has_highlight, NULL)
PHP_FE(weechat_string_has_highlight_regex, NULL)
PHP_FE(weechat_string_input_for_buffer, NULL)
PHP_FE(weechat_string_is_command_char, NULL)
PHP_FE(weechat_string_mask_to_regex, NULL)
PHP_FE(weechat_string_match, NULL)
PHP_FE(weechat_string_remove_color, NULL)
PHP_FE(weechat_string_replace, NULL)
PHP_FE(weechat_strlen_screen, NULL)
PHP_FE(weechat_unhook_all, NULL)
PHP_FE(weechat_unhook, NULL)
PHP_FE(weechat_upgrade_close, NULL)
PHP_FE(weechat_hdata_get_string, NULL)
PHP_FE(weechat_upgrade_new, NULL)
PHP_FE(weechat_upgrade_read, NULL)
PHP_FE(weechat_upgrade_write_object, NULL)
PHP_FE(weechat_window_get_integer, NULL)
PHP_FE(weechat_window_get_pointer, NULL)
PHP_FE(weechat_window_get_string, NULL)
PHP_FE(weechat_window_search_with_buffer, NULL)
PHP_FE(weechat_window_set_title, NULL)
PHP_FE(weechat_upgrade_read, NULL)
PHP_FE(weechat_upgrade_close, NULL)
PHP_FE(forget_class, NULL)
PHP_FE(forget_function, NULL)
PHP_FE_END
@@ -1090,9 +1088,8 @@ php_weechat_sapi_error (int type, const char *format, ...)
}
void
php_weechat_log_message (char *message, int syslog_type_int)
php_weechat_log_message (char *message)
{
(void) syslog_type_int;
php_weechat_ub_write (message, strlen (message));
}
+3 -1
View File
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2006-2017 Adam Saponara <as@php.net>
* Copyright (C) 2017 Sébastien Helleu <flashcode@flashtux.org>
*
* This file is part of WeeChat, the extensible chat client.
*
@@ -44,7 +45,8 @@ extern struct t_plugin_script *php_current_script;
extern struct t_plugin_script *php_registered_script;
extern const char *php_current_script_filename;
extern void weechat_php_hashtable_to_array (struct t_hashtable *hashtable, zval *arr);
extern void weechat_php_hashtable_to_array (struct t_hashtable *hashtable,
zval *arr);
extern struct t_hashtable *weechat_php_array_to_hashtable (zval* arr,
int size,
const char *type_keys,