1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

core: fix use of reserved C identifiers in headers (closes #31)

This commit is contained in:
Sebastien Helleu
2014-03-19 10:39:13 +01:00
parent bc96d2f1ec
commit 9b380a935b
153 changed files with 461 additions and 461 deletions
+3 -3
View File
@@ -17,9 +17,9 @@
* 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_IRC_BAR_ITEM_H
#define WEECHAT_IRC_BAR_ITEM_H 1
extern void irc_bar_item_init ();
#endif /* __WEECHAT_IRC_BAR_ITEM_H */
#endif /* WEECHAT_IRC_BAR_ITEM_H */
+3 -3
View File
@@ -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_IRC_BUFFER_H
#define WEECHAT_IRC_BUFFER_H 1
#define IRC_BUFFER_GET_SERVER(__buffer) \
struct t_weechat_plugin *buffer_plugin = NULL; \
@@ -60,4 +60,4 @@ extern int irc_buffer_nickcmp_cb (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_IRC_BUFFER_H */
+3 -3
View File
@@ -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_IRC_CHANNEL_H
#define WEECHAT_IRC_CHANNEL_H 1
#define IRC_CHANNEL_DEFAULT_CHANTYPES "#&+!"
@@ -150,4 +150,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_IRC_CHANNEL_H */
+3 -3
View File
@@ -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_IRC_COLOR_H
#define WEECHAT_IRC_COLOR_H 1
#define IRC_NUM_COLORS 16
@@ -110,4 +110,4 @@ extern char *irc_color_modifier_cb (void *data, const char *modifier,
extern char *irc_color_for_tags (const char *color);
extern void irc_color_end ();
#endif /* __WEECHAT_IRC_COLOR_H */
#endif /* WEECHAT_IRC_COLOR_H */
+3 -3
View File
@@ -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_IRC_COMMAND_H
#define WEECHAT_IRC_COMMAND_H 1
struct t_irc_server;
struct t_irc_channel;
@@ -61,4 +61,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_IRC_COMMAND_H */
+3 -3
View File
@@ -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_IRC_COMPLETION_H
#define WEECHAT_IRC_COMPLETION_H 1
extern void irc_completion_init ();
#endif /* __WEECHAT_IRC_COMPLETION_H */
#endif /* WEECHAT_IRC_COMPLETION_H */
+3 -3
View File
@@ -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_IRC_CONFIG_H
#define WEECHAT_IRC_CONFIG_H 1
#define IRC_CONFIG_NAME "irc"
@@ -219,4 +219,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_IRC_CONFIG_H */
+3 -3
View File
@@ -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_IRC_CTCP_H
#define WEECHAT_IRC_CTCP_H 1
struct t_irc_server;
struct t_irc_channel;
@@ -41,4 +41,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_IRC_CTCP_H */
+3 -3
View File
@@ -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_IRC_DEBUG_H
#define WEECHAT_IRC_DEBUG_H 1
extern void irc_debug_init ();
#endif /* __WEECHAT_IRC_DEBUG_H */
#endif /* WEECHAT_IRC_DEBUG_H */
+3 -3
View File
@@ -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_IRC_IGNORE_H
#define WEECHAT_IRC_IGNORE_H 1
#include <regex.h>
@@ -57,4 +57,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_IRC_IGNORE_H */
+3 -3
View File
@@ -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_IRC_INFO_H
#define WEECHAT_IRC_INFO_H 1
extern void irc_info_init ();
#endif /* __WEECHAT_IRC_INFO_H */
#endif /* WEECHAT_IRC_INFO_H */
+3 -3
View File
@@ -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_IRC_INPUT_H
#define WEECHAT_IRC_INPUT_H 1
struct t_gui_buffer;
@@ -29,4 +29,4 @@ extern int irc_input_data_cb (void *data, struct t_gui_buffer *buffer,
extern int irc_input_send_cb (void *data, const char *signal,
const char *type_data, void *signal_data);
#endif /* __WEECHAT_IRC_INPUT_H */
#endif /* WEECHAT_IRC_INPUT_H */
+3 -3
View File
@@ -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_IRC_MESSAGE_H
#define WEECHAT_IRC_MESSAGE_H 1
struct t_irc_server;
struct t_irc_channel;
@@ -37,4 +37,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_IRC_MESSAGE_H */
+3 -3
View File
@@ -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_IRC_MODE_H
#define WEECHAT_IRC_MODE_H 1
struct t_irc_server;
struct t_irc_channel;
@@ -29,4 +29,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_IRC_MODE_H */
+3 -3
View File
@@ -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_IRC_MSGBUFFER_H
#define WEECHAT_IRC_MSGBUFFER_H 1
enum t_irc_msgbuffer_target
{
@@ -44,4 +44,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_IRC_MSGBUFFER_H */
+3 -3
View File
@@ -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_IRC_NICK_H
#define WEECHAT_IRC_NICK_H 1
#define IRC_NICK_VALID_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHI" \
"JKLMNOPQRSTUVWXYZ0123456789-[]\\`_^{|}"
@@ -108,4 +108,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_IRC_NICK_H */
+3 -3
View File
@@ -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_IRC_NOTIFY_H
#define WEECHAT_IRC_NOTIFY_H 1
struct t_irc_server;
@@ -72,4 +72,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_IRC_NOTIFY_H */
+3 -3
View File
@@ -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_IRC_PROTOCOL_H
#define WEECHAT_IRC_PROTOCOL_H 1
#define IRC_PROTOCOL_CALLBACK(__command) \
int \
@@ -89,4 +89,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_IRC_PROTOCOL_H */
+3 -3
View File
@@ -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_IRC_RAW_H
#define WEECHAT_IRC_RAW_H 1
#define IRC_RAW_BUFFER_NAME "irc_raw"
@@ -58,4 +58,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_IRC_RAW_H */
+3 -3
View File
@@ -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_IRC_REDIRECT_H
#define WEECHAT_IRC_REDIRECT_H 1
#define IRC_REDIRECT_TIMEOUT_DEFAULT 60
@@ -126,4 +126,4 @@ extern int irc_redirect_command_hsignal_cb (void *data, const char *signal,
extern void irc_redirect_init ();
extern void irc_redirect_end ();
#endif /* __WEECHAT_IRC_REDIRECT_H */
#endif /* WEECHAT_IRC_REDIRECT_H */
+3 -3
View File
@@ -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_IRC_SASL_H
#define WEECHAT_IRC_SASL_H 1
/* SASL authentication mechanisms */
@@ -43,4 +43,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_IRC_SASL_H */
+3 -3
View File
@@ -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_IRC_SERVER_H
#define WEECHAT_IRC_SERVER_H 1
#include <sys/time.h>
#include <regex.h>
@@ -326,4 +326,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_IRC_SERVER_H */
+3 -3
View File
@@ -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_IRC_UPGRADE_H
#define WEECHAT_IRC_UPGRADE_H 1
#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_IRC_UPGRADE_H */
+3 -3
View File
@@ -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_IRC_H
#define WEECHAT_IRC_H 1
#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_IRC_H */