mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 13:26:38 +02:00
Added "call" option to /key command, added new key function "insert" to insert text on command line (task #6468)
This commit is contained in:
@@ -151,7 +151,7 @@ weechat_lua_timer_handler (t_weechat_plugin *plugin,
|
||||
int argc, char **argv,
|
||||
char *handler_args, void *handler_pointer)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
int *r;
|
||||
@@ -257,7 +257,7 @@ weechat_lua_register (lua_State *L)
|
||||
const char *name, *version, *shutdown_func, *description, *charset;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_current_script = NULL;
|
||||
@@ -345,7 +345,7 @@ weechat_lua_set_charset (lua_State *L)
|
||||
const char *charset;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -390,7 +390,7 @@ weechat_lua_print (lua_State *L)
|
||||
const char *message, *channel_name, *server_name;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -449,7 +449,7 @@ weechat_lua_print_server (lua_State *L)
|
||||
const char *message;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -492,7 +492,7 @@ weechat_lua_print_infobar (lua_State *L)
|
||||
const char *message;
|
||||
int delay, n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -536,7 +536,7 @@ weechat_lua_remove_infobar (lua_State *L)
|
||||
{
|
||||
int n, how_many;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -571,7 +571,7 @@ weechat_lua_log (lua_State *L)
|
||||
const char *message, *channel_name, *server_name;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -630,7 +630,7 @@ weechat_lua_command (lua_State *L)
|
||||
const char *command, *channel_name, *server_name;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -689,7 +689,7 @@ weechat_lua_add_message_handler (lua_State *L)
|
||||
const char *irc_command, *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -742,7 +742,7 @@ weechat_lua_add_command_handler (lua_State *L)
|
||||
const char *completion_template;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -814,7 +814,7 @@ weechat_lua_add_timer_handler (lua_State *L)
|
||||
const char *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -866,7 +866,7 @@ weechat_lua_add_keyboard_handler (lua_State *L)
|
||||
const char *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -916,7 +916,7 @@ weechat_lua_add_event_handler (lua_State *L)
|
||||
const char *event, *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -968,7 +968,7 @@ weechat_lua_remove_handler (lua_State *L)
|
||||
const char *command, *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1014,7 +1014,7 @@ weechat_lua_remove_timer_handler (lua_State *L)
|
||||
const char *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1058,7 +1058,7 @@ weechat_lua_remove_keyboard_handler (lua_State *L)
|
||||
const char *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1102,7 +1102,7 @@ weechat_lua_remove_event_handler (lua_State *L)
|
||||
const char *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1146,7 +1146,7 @@ weechat_lua_add_modifier (lua_State *L)
|
||||
const char *type, *command, *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1200,7 +1200,7 @@ weechat_lua_remove_modifier (lua_State *L)
|
||||
const char *type, *command, *function;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1250,7 +1250,7 @@ weechat_lua_get_info (lua_State *L)
|
||||
char *info;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1306,7 +1306,7 @@ weechat_lua_get_dcc_info (lua_State *L)
|
||||
struct in_addr in;
|
||||
int i;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1421,7 +1421,7 @@ weechat_lua_get_config (lua_State *L)
|
||||
char *return_value;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1467,7 +1467,7 @@ weechat_lua_set_config (lua_State *L)
|
||||
const char *option, *value;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1515,7 +1515,7 @@ weechat_lua_get_plugin_config (lua_State *L)
|
||||
char *return_value;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1563,7 +1563,7 @@ weechat_lua_set_plugin_config (lua_State *L)
|
||||
const char *option, *value;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1612,7 +1612,7 @@ weechat_lua_get_server_info (lua_State *L)
|
||||
t_plugin_server_info *server_info, *ptr_server;
|
||||
char timebuffer[64];
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1759,7 +1759,7 @@ weechat_lua_get_channel_info (lua_State *L)
|
||||
const char *server;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1843,7 +1843,7 @@ weechat_lua_get_nick_info (lua_State *L)
|
||||
const char *server, *channel;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1914,7 +1914,7 @@ weechat_lua_get_irc_color (lua_State *L)
|
||||
const char *color;
|
||||
int n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -1956,7 +1956,7 @@ weechat_lua_get_window_info (lua_State *L)
|
||||
t_plugin_window_info *window_info, *ptr_window;
|
||||
int i;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -2027,7 +2027,7 @@ weechat_lua_get_buffer_info (lua_State *L)
|
||||
{
|
||||
t_plugin_buffer_info *buffer_info, *ptr_buffer;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -2099,7 +2099,7 @@ weechat_lua_get_buffer_data (lua_State *L)
|
||||
char timebuffer[64];
|
||||
int i, n;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script)
|
||||
@@ -2181,7 +2181,7 @@ weechat_lua_get_buffer_data (lua_State *L)
|
||||
static int
|
||||
weechat_lua_constant_plugin_rc_ok (lua_State *L)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_pushnumber (lua_current_interpreter, PLUGIN_RC_OK);
|
||||
@@ -2191,7 +2191,7 @@ weechat_lua_constant_plugin_rc_ok (lua_State *L)
|
||||
static int
|
||||
weechat_lua_constant_plugin_rc_ko (lua_State *L)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_pushnumber (lua_current_interpreter, PLUGIN_RC_KO);
|
||||
@@ -2201,7 +2201,7 @@ weechat_lua_constant_plugin_rc_ko (lua_State *L)
|
||||
static int
|
||||
weechat_lua_constant_plugin_rc_ok_ignore_weechat (lua_State *L)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_pushnumber (lua_current_interpreter, PLUGIN_RC_OK_IGNORE_WEECHAT);
|
||||
@@ -2211,7 +2211,7 @@ weechat_lua_constant_plugin_rc_ok_ignore_weechat (lua_State *L)
|
||||
static int
|
||||
weechat_lua_constant_plugin_rc_ok_ignore_plugins (lua_State *L)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_pushnumber (lua_current_interpreter, PLUGIN_RC_OK_IGNORE_PLUGINS);
|
||||
@@ -2221,7 +2221,7 @@ weechat_lua_constant_plugin_rc_ok_ignore_plugins (lua_State *L)
|
||||
static int
|
||||
weechat_lua_constant_plugin_rc_ok_ignore_all (lua_State *L)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
lua_pushnumber (lua_current_interpreter, PLUGIN_RC_OK_IGNORE_ALL);
|
||||
@@ -2464,7 +2464,7 @@ weechat_lua_cmd (t_weechat_plugin *plugin,
|
||||
t_plugin_handler *ptr_handler;
|
||||
t_plugin_modifier *ptr_modifier;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) handler_args;
|
||||
(void) handler_pointer;
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@ weechat_perl_timer_handler (t_weechat_plugin *plugin,
|
||||
{
|
||||
int *r, ret;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
|
||||
@@ -375,7 +375,7 @@ static XS (XS_weechat_register)
|
||||
char *name, *version, *shutdown_func, *description, *charset;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) items;
|
||||
(void) cv;
|
||||
|
||||
@@ -436,7 +436,7 @@ static XS (XS_weechat_set_charset)
|
||||
{
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -471,7 +471,7 @@ static XS (XS_weechat_print)
|
||||
char *message, *channel_name, *server_name;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -518,7 +518,7 @@ static XS (XS_weechat_print_server)
|
||||
char *message;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -553,7 +553,7 @@ static XS (XS_weechat_print_infobar)
|
||||
{
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -587,7 +587,7 @@ static XS (XS_weechat_remove_infobar)
|
||||
{
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -613,7 +613,7 @@ static XS (XS_weechat_log)
|
||||
char *message, *channel_name, *server_name;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -660,7 +660,7 @@ static XS (XS_weechat_command)
|
||||
char *channel_name, *server_name;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -705,7 +705,7 @@ static XS (XS_weechat_add_message_handler)
|
||||
char *irc_command, *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -745,7 +745,7 @@ static XS (XS_weechat_add_command_handler)
|
||||
char *completion_template;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -795,7 +795,7 @@ static XS (XS_weechat_add_timer_handler)
|
||||
char *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -834,7 +834,7 @@ static XS (XS_weechat_add_keyboard_handler)
|
||||
char *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -873,7 +873,7 @@ static XS (XS_weechat_add_event_handler)
|
||||
char *event, *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -912,7 +912,7 @@ static XS (XS_weechat_remove_handler)
|
||||
char *command, *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -949,7 +949,7 @@ static XS (XS_weechat_remove_timer_handler)
|
||||
char *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -985,7 +985,7 @@ static XS (XS_weechat_remove_keyboard_handler)
|
||||
char *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1021,7 +1021,7 @@ static XS (XS_weechat_remove_event_handler)
|
||||
char *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1057,7 +1057,7 @@ static XS (XS_weechat_add_modifier)
|
||||
char *type, *command, *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1097,7 +1097,7 @@ static XS (XS_weechat_remove_modifier)
|
||||
char *type, *command, *function;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1135,7 +1135,7 @@ static XS (XS_weechat_get_info)
|
||||
char *arg, *info, *server_name;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1187,7 +1187,7 @@ static XS (XS_weechat_get_dcc_info)
|
||||
HV *dcc_hash_member;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
(void) items;
|
||||
|
||||
@@ -1248,7 +1248,7 @@ static XS (XS_weechat_get_config)
|
||||
char *option, *return_value;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1294,7 +1294,7 @@ static XS (XS_weechat_set_config)
|
||||
char *option, *value;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1334,7 +1334,7 @@ static XS (XS_weechat_get_plugin_config)
|
||||
char *option, *return_value;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1382,7 +1382,7 @@ static XS (XS_weechat_set_plugin_config)
|
||||
char *option, *value;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1426,7 +1426,7 @@ static XS (XS_weechat_get_server_info)
|
||||
HV *server_hash, *server_hash_member;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
(void) items;
|
||||
|
||||
@@ -1503,7 +1503,7 @@ static XS (XS_weechat_get_channel_info)
|
||||
HV *channel_hash, *channel_hash_member;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1569,7 +1569,7 @@ static XS (XS_weechat_get_nick_info)
|
||||
HV *nick_hash;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1631,7 +1631,7 @@ static XS (XS_weechat_input_color)
|
||||
int color, start, length;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1669,7 +1669,7 @@ static XS (XS_weechat_get_irc_color)
|
||||
char *color;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script)
|
||||
@@ -1712,7 +1712,7 @@ static XS (XS_weechat_get_window_info)
|
||||
HV *window_hash_member;
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
(void) items;
|
||||
|
||||
@@ -1760,7 +1760,7 @@ static XS (XS_weechat_get_buffer_info)
|
||||
char conv[8];
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
(void) items;
|
||||
|
||||
@@ -1822,7 +1822,7 @@ static XS (XS_weechat_get_buffer_data)
|
||||
|
||||
dXSARGS;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
(void) items;
|
||||
|
||||
@@ -2162,7 +2162,7 @@ weechat_perl_cmd (t_weechat_plugin *plugin,
|
||||
if (cmd_argc < 3)
|
||||
return PLUGIN_RC_KO;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) handler_args;
|
||||
(void) handler_pointer;
|
||||
|
||||
|
||||
@@ -193,7 +193,7 @@ weechat_python_timer_handler (t_weechat_plugin *plugin,
|
||||
int argc, char **argv,
|
||||
char *handler_args, void *handler_pointer)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
int *r;
|
||||
@@ -298,7 +298,7 @@ weechat_python_register (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *name, *version, *shutdown_func, *description, *charset;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
python_current_script = NULL;
|
||||
@@ -358,7 +358,7 @@ weechat_python_set_charset (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *charset;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -398,7 +398,7 @@ weechat_python_print (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *message, *channel_name, *server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -437,7 +437,7 @@ weechat_python_print_server (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *message;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -473,7 +473,7 @@ weechat_python_print_infobar (PyObject *self, PyObject *args)
|
||||
int delay;
|
||||
char *message;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -509,7 +509,7 @@ weechat_python_remove_infobar (PyObject *self, PyObject *args)
|
||||
{
|
||||
int how_many;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -544,7 +544,7 @@ weechat_python_log (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *message, *channel_name, *server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -583,7 +583,7 @@ weechat_python_command (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *command, *channel_name, *server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -622,7 +622,7 @@ weechat_python_add_message_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *irc_command, *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -663,7 +663,7 @@ weechat_python_add_command_handler (PyObject *self, PyObject *args)
|
||||
char *command, *function, *description, *arguments, *arguments_description;
|
||||
char *completion_template;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -715,7 +715,7 @@ weechat_python_add_timer_handler (PyObject *self, PyObject *args)
|
||||
int interval;
|
||||
char *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -755,7 +755,7 @@ weechat_python_add_keyboard_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -794,7 +794,7 @@ weechat_python_add_event_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *event, *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -834,7 +834,7 @@ weechat_python_remove_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *command, *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -871,7 +871,7 @@ weechat_python_remove_timer_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -907,7 +907,7 @@ weechat_python_remove_keyboard_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -943,7 +943,7 @@ weechat_python_remove_event_handler (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -979,7 +979,7 @@ weechat_python_add_modifier (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *type, *command, *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1020,7 +1020,7 @@ weechat_python_remove_modifier (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *type, *command, *function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1059,7 +1059,7 @@ weechat_python_get_info (PyObject *self, PyObject *args)
|
||||
char *arg, *server_name, *info;
|
||||
PyObject *object;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1109,7 +1109,7 @@ weechat_python_get_dcc_info (PyObject *self, PyObject *args)
|
||||
char timebuffer2[64];
|
||||
struct in_addr in;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
(void) args;
|
||||
|
||||
@@ -1199,7 +1199,7 @@ weechat_python_get_config (PyObject *self, PyObject *args)
|
||||
char *option, *return_value;
|
||||
PyObject *python_return_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1246,7 +1246,7 @@ weechat_python_set_config (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *option, *value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1287,7 +1287,7 @@ weechat_python_get_plugin_config (PyObject *self, PyObject *args)
|
||||
char *option, *return_value;
|
||||
PyObject *python_return_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1336,7 +1336,7 @@ weechat_python_set_plugin_config (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *option, *value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1380,7 +1380,7 @@ weechat_python_get_server_info (PyObject *self, PyObject *args)
|
||||
PyObject *server_hash, *server_hash_member;
|
||||
char timebuffer[64];
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
(void) args;
|
||||
|
||||
@@ -1485,7 +1485,7 @@ weechat_python_get_channel_info (PyObject *self, PyObject *args)
|
||||
PyObject *channel_hash, *channel_hash_member;
|
||||
char *server;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1558,7 +1558,7 @@ weechat_python_get_nick_info (PyObject *self, PyObject *args)
|
||||
PyObject *nick_hash, *nick_hash_member;
|
||||
char *server, *channel;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1623,7 +1623,7 @@ weechat_python_get_irc_color (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *color;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script)
|
||||
@@ -1660,7 +1660,7 @@ weechat_python_get_window_info (PyObject *self, PyObject *args)
|
||||
t_plugin_window_info *window_info, *ptr_window;
|
||||
PyObject *window_list, *window_list_member;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
(void) args;
|
||||
|
||||
@@ -1724,7 +1724,7 @@ weechat_python_get_buffer_info (PyObject *self, PyObject *args)
|
||||
t_plugin_buffer_info *buffer_info, *ptr_buffer;
|
||||
PyObject *buffer_hash, *buffer_hash_member;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
(void) args;
|
||||
|
||||
@@ -1790,7 +1790,7 @@ weechat_python_get_buffer_data (PyObject *self, PyObject *args)
|
||||
char *server, *channel;
|
||||
char timebuffer[64];
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
(void) args;
|
||||
|
||||
@@ -1898,7 +1898,8 @@ static PyObject *
|
||||
weechat_python_output (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *msg, *m, *p;
|
||||
/* make gcc happy */
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
msg = NULL;
|
||||
@@ -2181,7 +2182,7 @@ weechat_python_cmd (t_weechat_plugin *plugin,
|
||||
t_plugin_handler *ptr_handler;
|
||||
t_plugin_modifier *ptr_modifier;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) handler_args;
|
||||
(void) handler_pointer;
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ weechat_ruby_exec (t_weechat_plugin *plugin,
|
||||
VALUE rc, err;
|
||||
int ruby_error, *ret_i;
|
||||
void *ret_value;
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) plugin;
|
||||
|
||||
ruby_current_script = script;
|
||||
@@ -232,7 +232,7 @@ weechat_ruby_timer_handler (t_weechat_plugin *plugin,
|
||||
int argc, char **argv,
|
||||
char *handler_args, void *handler_pointer)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
int *r;
|
||||
@@ -338,7 +338,7 @@ weechat_ruby_register (int argc, VALUE *argv, VALUE class)
|
||||
VALUE name, version, shutdown_func, description, charset;
|
||||
char *c_name, *c_version, *c_shutdown_func, *c_description, *c_charset;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
ruby_current_script = NULL;
|
||||
@@ -420,7 +420,7 @@ weechat_ruby_set_charset (VALUE class, VALUE charset)
|
||||
{
|
||||
char *c_charset;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -462,7 +462,7 @@ weechat_ruby_print (int argc, VALUE *argv, VALUE class)
|
||||
VALUE message, channel_name, server_name;
|
||||
char *c_message, *c_channel_name, *c_server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -521,7 +521,7 @@ weechat_ruby_print_server (VALUE class, VALUE message)
|
||||
{
|
||||
char *c_message;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -560,7 +560,7 @@ weechat_ruby_print_infobar (VALUE class, VALUE delay, VALUE message)
|
||||
int c_delay;
|
||||
char *c_message;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -603,7 +603,7 @@ weechat_ruby_remove_infobar (int argc, VALUE *argv, VALUE class)
|
||||
VALUE how_many;
|
||||
int c_how_many;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -641,7 +641,7 @@ weechat_ruby_log (int argc, VALUE *argv, VALUE class)
|
||||
VALUE message, channel_name, server_name;
|
||||
char *c_message, *c_channel_name, *c_server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -701,7 +701,7 @@ weechat_ruby_command (int argc, VALUE *argv, VALUE class)
|
||||
VALUE command, channel_name, server_name;
|
||||
char *c_command, *c_channel_name, *c_server_name;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -760,7 +760,7 @@ weechat_ruby_add_message_handler (VALUE class, VALUE message, VALUE function)
|
||||
{
|
||||
char *c_message, *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -809,7 +809,7 @@ weechat_ruby_add_command_handler (int argc, VALUE *argv, VALUE class)
|
||||
char *c_command, *c_function, *c_description, *c_arguments, *c_arguments_description;
|
||||
char *c_completion_template;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -897,7 +897,7 @@ weechat_ruby_add_timer_handler (VALUE class, VALUE interval, VALUE function)
|
||||
int c_interval;
|
||||
char *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -943,7 +943,7 @@ weechat_ruby_add_keyboard_handler (VALUE class, VALUE function)
|
||||
{
|
||||
char *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -986,7 +986,7 @@ weechat_ruby_add_event_handler (VALUE class, VALUE event, VALUE function)
|
||||
{
|
||||
char *c_event, *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1032,7 +1032,7 @@ weechat_ruby_remove_handler (VALUE class, VALUE command, VALUE function)
|
||||
{
|
||||
char *c_command, *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1075,7 +1075,7 @@ weechat_ruby_remove_timer_handler (VALUE class, VALUE function)
|
||||
{
|
||||
char *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1115,7 +1115,7 @@ weechat_ruby_remove_keyboard_handler (VALUE class, VALUE function)
|
||||
{
|
||||
char *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1155,7 +1155,7 @@ weechat_ruby_remove_event_handler (VALUE class, VALUE function)
|
||||
{
|
||||
char *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1195,7 +1195,7 @@ weechat_ruby_add_modifier (VALUE class, VALUE type, VALUE message, VALUE functio
|
||||
{
|
||||
char *c_type, *c_message, *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1244,7 +1244,7 @@ weechat_ruby_remove_modifier (VALUE class, VALUE type, VALUE command, VALUE func
|
||||
{
|
||||
char *c_type, *c_command, *c_function;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1291,7 +1291,7 @@ weechat_ruby_get_info (int argc, VALUE *argv, VALUE class)
|
||||
char *c_arg, *c_server_name, *info;
|
||||
VALUE arg, server_name, return_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1354,7 +1354,7 @@ weechat_ruby_get_dcc_info (VALUE class)
|
||||
char timebuffer2[64];
|
||||
struct in_addr in;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1438,7 +1438,7 @@ weechat_ruby_get_config (VALUE class, VALUE option)
|
||||
char *c_option, *return_value;
|
||||
VALUE ruby_return_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1486,7 +1486,7 @@ weechat_ruby_set_config (VALUE class, VALUE option, VALUE value)
|
||||
{
|
||||
char *c_option, *c_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1533,7 +1533,7 @@ weechat_ruby_get_plugin_config (VALUE class, VALUE option)
|
||||
char *c_option, *return_value;
|
||||
VALUE ruby_return_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1583,7 +1583,7 @@ weechat_ruby_set_plugin_config (VALUE class, VALUE option, VALUE value)
|
||||
{
|
||||
char *c_option, *c_value;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1633,7 +1633,7 @@ weechat_ruby_get_server_info (VALUE class)
|
||||
VALUE server_hash, server_hash_member;
|
||||
char timebuffer[64];
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1732,7 +1732,7 @@ weechat_ruby_get_channel_info (VALUE class, VALUE server)
|
||||
VALUE channel_hash, channel_hash_member;
|
||||
char *c_server;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1805,7 +1805,7 @@ weechat_ruby_get_nick_info (VALUE class, VALUE server, VALUE channel)
|
||||
VALUE nick_hash, nick_hash_member;
|
||||
char *c_server, *c_channel;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1873,7 +1873,7 @@ weechat_ruby_get_irc_color (VALUE class, VALUE color)
|
||||
{
|
||||
char *c_color;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1911,7 +1911,7 @@ weechat_ruby_get_window_info (VALUE class)
|
||||
t_plugin_window_info *window_info, *ptr_window;
|
||||
VALUE window_list, window_list_member;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -1971,7 +1971,7 @@ weechat_ruby_get_buffer_info (VALUE class)
|
||||
t_plugin_buffer_info *buffer_info, *ptr_buffer;
|
||||
VALUE buffer_hash, buffer_hash_member;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -2031,7 +2031,7 @@ weechat_ruby_get_buffer_data (int argc, VALUE *argv, VALUE class)
|
||||
char *c_server, *c_channel;
|
||||
char timebuffer[64];
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script)
|
||||
@@ -2102,7 +2102,8 @@ static VALUE
|
||||
weechat_ruby_output(VALUE self, VALUE str)
|
||||
{
|
||||
char *msg, *p, *m;
|
||||
/* make gcc happy */
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
msg = strdup(STR2CSTR(str));
|
||||
@@ -2143,7 +2144,7 @@ weechat_ruby_output(VALUE self, VALUE str)
|
||||
static VALUE
|
||||
weechat_ruby_output_flush(VALUE self)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
return Qnil;
|
||||
@@ -2341,7 +2342,7 @@ weechat_ruby_cmd (t_weechat_plugin *plugin,
|
||||
t_plugin_handler *ptr_handler;
|
||||
t_plugin_modifier *ptr_modifier;
|
||||
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) handler_args;
|
||||
(void) handler_pointer;
|
||||
|
||||
|
||||
@@ -653,7 +653,7 @@ weechat_script_set_charset (t_weechat_plugin *plugin,
|
||||
t_plugin_script *script,
|
||||
char *charset)
|
||||
{
|
||||
/* make gcc happy */
|
||||
/* make C compiler happy */
|
||||
(void) plugin;
|
||||
|
||||
if (script->charset)
|
||||
|
||||
Reference in New Issue
Block a user