mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 17:23:15 +02:00
core: remove value for first #define in headers, add "PLUGIN" in plugin headers
This commit is contained in:
@@ -17,10 +17,10 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_BAR_ITEM_H
|
||||
#define WEECHAT_IRC_BAR_ITEM_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_BAR_ITEM_H
|
||||
#define WEECHAT_PLUGIN_IRC_BAR_ITEM_H
|
||||
|
||||
extern void irc_bar_item_update_channel ();
|
||||
extern void irc_bar_item_init ();
|
||||
|
||||
#endif /* WEECHAT_IRC_BAR_ITEM_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_BAR_ITEM_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_BUFFER_H
|
||||
#define WEECHAT_IRC_BUFFER_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_BUFFER_H
|
||||
#define WEECHAT_PLUGIN_IRC_BUFFER_H
|
||||
|
||||
#define IRC_BUFFER_GET_SERVER(__buffer) \
|
||||
struct t_weechat_plugin *buffer_plugin = NULL; \
|
||||
@@ -56,4 +56,4 @@ extern int irc_buffer_nickcmp_cb (const void *pointer, void *data,
|
||||
extern struct t_gui_buffer *irc_buffer_search_server_lowest_number ();
|
||||
extern struct t_gui_buffer *irc_buffer_search_private_lowest_number (struct t_irc_server *server);
|
||||
|
||||
#endif /* WEECHAT_IRC_BUFFER_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_BUFFER_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_CHANNEL_H
|
||||
#define WEECHAT_IRC_CHANNEL_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_CHANNEL_H
|
||||
#define WEECHAT_PLUGIN_IRC_CHANNEL_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -168,4 +168,4 @@ extern int irc_channel_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_irc_channel *channel);
|
||||
extern void irc_channel_print_log (struct t_irc_channel *channel);
|
||||
|
||||
#endif /* WEECHAT_IRC_CHANNEL_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_CHANNEL_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_COLOR_H
|
||||
#define WEECHAT_IRC_COLOR_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_COLOR_H
|
||||
#define WEECHAT_PLUGIN_IRC_COLOR_H
|
||||
|
||||
#define IRC_NUM_COLORS 100
|
||||
|
||||
@@ -114,4 +114,4 @@ extern char *irc_color_for_tags (const char *color);
|
||||
extern int irc_color_weechat_add_to_infolist (struct t_infolist *infolist);
|
||||
extern void irc_color_end ();
|
||||
|
||||
#endif /* WEECHAT_IRC_COLOR_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_COLOR_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_COMMAND_H
|
||||
#define WEECHAT_IRC_COMMAND_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_COMMAND_H
|
||||
#define WEECHAT_PLUGIN_IRC_COMMAND_H
|
||||
|
||||
struct t_irc_server;
|
||||
struct t_irc_channel;
|
||||
@@ -77,4 +77,4 @@ extern void irc_command_quit_server (struct t_irc_server *server,
|
||||
const char *arguments);
|
||||
extern void irc_command_init ();
|
||||
|
||||
#endif /* WEECHAT_IRC_COMMAND_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_COMMAND_H */
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_COMPLETION_H
|
||||
#define WEECHAT_IRC_COMPLETION_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_COMPLETION_H
|
||||
#define WEECHAT_PLUGIN_IRC_COMPLETION_H
|
||||
|
||||
extern void irc_completion_init ();
|
||||
|
||||
#endif /* WEECHAT_IRC_COMPLETION_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_COMPLETION_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_CONFIG_H
|
||||
#define WEECHAT_IRC_CONFIG_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_CONFIG_H
|
||||
#define WEECHAT_PLUGIN_IRC_CONFIG_H
|
||||
|
||||
#define IRC_CONFIG_NAME "irc"
|
||||
|
||||
@@ -215,4 +215,4 @@ extern int irc_config_read ();
|
||||
extern int irc_config_write (int write_temp_servers);
|
||||
extern void irc_config_free ();
|
||||
|
||||
#endif /* WEECHAT_IRC_CONFIG_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_CONFIG_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_CTCP_H
|
||||
#define WEECHAT_IRC_CTCP_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_CTCP_H
|
||||
#define WEECHAT_PLUGIN_IRC_CTCP_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -44,4 +44,4 @@ extern void irc_ctcp_recv (struct t_irc_server *server, time_t date,
|
||||
const char *remote_nick, char *arguments,
|
||||
char *message);
|
||||
|
||||
#endif /* WEECHAT_IRC_CTCP_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_CTCP_H */
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_DEBUG_H
|
||||
#define WEECHAT_IRC_DEBUG_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_DEBUG_H
|
||||
#define WEECHAT_PLUGIN_IRC_DEBUG_H
|
||||
|
||||
extern void irc_debug_init ();
|
||||
|
||||
#endif /* WEECHAT_IRC_DEBUG_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_DEBUG_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_IGNORE_H
|
||||
#define WEECHAT_IRC_IGNORE_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_IGNORE_H
|
||||
#define WEECHAT_PLUGIN_IRC_IGNORE_H
|
||||
|
||||
#include <regex.h>
|
||||
|
||||
@@ -58,4 +58,4 @@ extern int irc_ignore_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_irc_ignore *ignore);
|
||||
extern void irc_ignore_print_log ();
|
||||
|
||||
#endif /* WEECHAT_IRC_IGNORE_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_IGNORE_H */
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_INFO_H
|
||||
#define WEECHAT_IRC_INFO_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_INFO_H
|
||||
#define WEECHAT_PLUGIN_IRC_INFO_H
|
||||
|
||||
extern void irc_info_init ();
|
||||
|
||||
#endif /* WEECHAT_IRC_INFO_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_INFO_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_INPUT_H
|
||||
#define WEECHAT_IRC_INPUT_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_INPUT_H
|
||||
#define WEECHAT_PLUGIN_IRC_INPUT_H
|
||||
|
||||
struct t_gui_buffer;
|
||||
|
||||
@@ -31,4 +31,4 @@ extern int irc_input_send_cb (const void *pointer, void *data,
|
||||
const char *signal, const char *type_data,
|
||||
void *signal_data);
|
||||
|
||||
#endif /* WEECHAT_IRC_INPUT_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_INPUT_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_MESSAGE_H
|
||||
#define WEECHAT_IRC_MESSAGE_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_MESSAGE_H
|
||||
#define WEECHAT_PLUGIN_IRC_MESSAGE_H
|
||||
|
||||
struct t_irc_server;
|
||||
struct t_irc_channel;
|
||||
@@ -43,4 +43,4 @@ extern char *irc_message_replace_vars (struct t_irc_server *server,
|
||||
extern struct t_hashtable *irc_message_split (struct t_irc_server *server,
|
||||
const char *message);
|
||||
|
||||
#endif /* WEECHAT_IRC_MESSAGE_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_MESSAGE_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_MODE_H
|
||||
#define WEECHAT_IRC_MODE_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_MODE_H
|
||||
#define WEECHAT_PLUGIN_IRC_MODE_H
|
||||
|
||||
struct t_irc_server;
|
||||
struct t_irc_channel;
|
||||
@@ -31,4 +31,4 @@ extern int irc_mode_channel_set (struct t_irc_server *server,
|
||||
extern void irc_mode_user_set (struct t_irc_server *server, const char *modes,
|
||||
int reset_modes);
|
||||
|
||||
#endif /* WEECHAT_IRC_MODE_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_MODE_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_MSGBUFFER_H
|
||||
#define WEECHAT_IRC_MSGBUFFER_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_MSGBUFFER_H
|
||||
#define WEECHAT_PLUGIN_IRC_MSGBUFFER_H
|
||||
|
||||
enum t_irc_msgbuffer_target
|
||||
{
|
||||
@@ -38,4 +38,4 @@ extern struct t_gui_buffer *irc_msgbuffer_get_target_buffer (struct t_irc_server
|
||||
const char *alias,
|
||||
struct t_gui_buffer *default_buffer);
|
||||
|
||||
#endif /* WEECHAT_IRC_MSGBUFFER_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_MSGBUFFER_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_NICK_H
|
||||
#define WEECHAT_IRC_NICK_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_NICK_H
|
||||
#define WEECHAT_PLUGIN_IRC_NICK_H
|
||||
|
||||
#define IRC_NICK_VALID_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHI" \
|
||||
"JKLMNOPQRSTUVWXYZ0123456789-[]\\`_^{|}"
|
||||
@@ -109,4 +109,4 @@ extern int irc_nick_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_irc_nick *nick);
|
||||
extern void irc_nick_print_log (struct t_irc_nick *nick);
|
||||
|
||||
#endif /* WEECHAT_IRC_NICK_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_NICK_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_NOTIFY_H
|
||||
#define WEECHAT_IRC_NOTIFY_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_NOTIFY_H
|
||||
#define WEECHAT_PLUGIN_IRC_NOTIFY_H
|
||||
|
||||
struct t_irc_server;
|
||||
|
||||
@@ -75,4 +75,4 @@ extern void irc_notify_hook_timer_whois ();
|
||||
extern void irc_notify_init ();
|
||||
extern void irc_notify_end ();
|
||||
|
||||
#endif /* WEECHAT_IRC_NOTIFY_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_NOTIFY_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_PROTOCOL_H
|
||||
#define WEECHAT_IRC_PROTOCOL_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_PROTOCOL_H
|
||||
#define WEECHAT_PLUGIN_IRC_PROTOCOL_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -91,4 +91,4 @@ extern void irc_protocol_recv_command (struct t_irc_server *server,
|
||||
const char *msg_command,
|
||||
const char *msg_channel);
|
||||
|
||||
#endif /* WEECHAT_IRC_PROTOCOL_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_PROTOCOL_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_RAW_H
|
||||
#define WEECHAT_IRC_RAW_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_RAW_H
|
||||
#define WEECHAT_PLUGIN_IRC_RAW_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -61,4 +61,4 @@ extern void irc_raw_message_free_all ();
|
||||
extern int irc_raw_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_irc_raw_message *raw_message);
|
||||
|
||||
#endif /* WEECHAT_IRC_RAW_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_RAW_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_REDIRECT_H
|
||||
#define WEECHAT_IRC_REDIRECT_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_REDIRECT_H
|
||||
#define WEECHAT_PLUGIN_IRC_REDIRECT_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -132,4 +132,4 @@ extern int irc_redirect_command_hsignal_cb (const void *pointer, void *data,
|
||||
extern void irc_redirect_init ();
|
||||
extern void irc_redirect_end ();
|
||||
|
||||
#endif /* WEECHAT_IRC_REDIRECT_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_REDIRECT_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_SASL_H
|
||||
#define WEECHAT_IRC_SASL_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_SASL_H
|
||||
#define WEECHAT_PLUGIN_IRC_SASL_H
|
||||
|
||||
struct t_irc_server;
|
||||
|
||||
@@ -50,4 +50,4 @@ extern char *irc_sasl_mechanism_dh_aes (const char *data_base64,
|
||||
const char *sasl_username,
|
||||
const char *sasl_password);
|
||||
|
||||
#endif /* WEECHAT_IRC_SASL_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_SASL_H */
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_SERVER_H
|
||||
#define WEECHAT_IRC_SERVER_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_SERVER_H
|
||||
#define WEECHAT_PLUGIN_IRC_SERVER_H
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
@@ -377,4 +377,4 @@ extern int irc_server_add_to_infolist (struct t_infolist *infolist,
|
||||
struct t_irc_server *server);
|
||||
extern void irc_server_print_log ();
|
||||
|
||||
#endif /* WEECHAT_IRC_SERVER_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_SERVER_H */
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_UPGRADE_H
|
||||
#define WEECHAT_IRC_UPGRADE_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_UPGRADE_H
|
||||
#define WEECHAT_PLUGIN_IRC_UPGRADE_H
|
||||
|
||||
#define IRC_UPGRADE_FILENAME "irc"
|
||||
|
||||
@@ -38,4 +38,4 @@ enum t_irc_upgrade_type
|
||||
extern int irc_upgrade_save ();
|
||||
extern int irc_upgrade_load ();
|
||||
|
||||
#endif /* WEECHAT_IRC_UPGRADE_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_UPGRADE_H */
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef WEECHAT_IRC_H
|
||||
#define WEECHAT_IRC_H 1
|
||||
#ifndef WEECHAT_PLUGIN_IRC_H
|
||||
#define WEECHAT_PLUGIN_IRC_H
|
||||
|
||||
#define weechat_plugin weechat_irc_plugin
|
||||
#define IRC_PLUGIN_NAME "irc"
|
||||
@@ -28,4 +28,4 @@ extern struct t_weechat_plugin *weechat_irc_plugin;
|
||||
|
||||
extern int irc_signal_upgrade_received;
|
||||
|
||||
#endif /* WEECHAT_IRC_H */
|
||||
#endif /* WEECHAT_PLUGIN_IRC_H */
|
||||
|
||||
Reference in New Issue
Block a user