summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-03-04 07:40:07 +0100
committerSébastien Helleu <flashcode@flashtux.org>2015-03-04 07:40:07 +0100
commitc0a27cf437a4ecaca9f5124af1d886be6b2f2935 (patch)
tree480987704a38f49d48495103665cab1164f2457d /src
parent3eb6cd3cd92928c907b4d19947ecc51d4b7b28a7 (diff)
downloadweechat-c0a27cf437a4ecaca9f5124af1d886be6b2f2935.zip
scripts: fix name of variables in infolist API functions
Diffstat (limited to 'src')
-rw-r--r--src/plugins/guile/weechat-guile-api.c24
-rw-r--r--src/plugins/lua/weechat-lua-api.c24
-rw-r--r--src/plugins/perl/weechat-perl-api.c24
-rw-r--r--src/plugins/python/weechat-python-api.c32
-rw-r--r--src/plugins/ruby/weechat-ruby-api.c48
-rw-r--r--src/plugins/tcl/weechat-tcl-api.c8
6 files changed, 80 insertions, 80 deletions
diff --git a/src/plugins/guile/weechat-guile-api.c b/src/plugins/guile/weechat-guile-api.c
index eb1eb49c3..1c9762913 100644
--- a/src/plugins/guile/weechat-guile-api.c
+++ b/src/plugins/guile/weechat-guile-api.c
@@ -3963,17 +3963,17 @@ weechat_guile_api_infolist_new_item (SCM infolist)
}
SCM
-weechat_guile_api_infolist_new_var_integer (SCM infolist, SCM name, SCM value)
+weechat_guile_api_infolist_new_var_integer (SCM item, SCM name, SCM value)
{
char *result;
SCM return_value;
API_INIT_FUNC(1, "infolist_new_var_integer", API_RETURN_EMPTY);
- if (!scm_is_string (infolist) || !scm_is_string (name)
+ if (!scm_is_string (item) || !scm_is_string (name)
|| !scm_is_integer (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(API_SCM_TO_STRING(infolist)),
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(API_SCM_TO_STRING(item)),
API_SCM_TO_STRING(name),
scm_to_int (value)));
@@ -3981,17 +3981,17 @@ weechat_guile_api_infolist_new_var_integer (SCM infolist, SCM name, SCM value)
}
SCM
-weechat_guile_api_infolist_new_var_string (SCM infolist, SCM name, SCM value)
+weechat_guile_api_infolist_new_var_string (SCM item, SCM name, SCM value)
{
char *result;
SCM return_value;
API_INIT_FUNC(1, "infolist_new_var_string", API_RETURN_EMPTY);
- if (!scm_is_string (infolist) || !scm_is_string (name)
+ if (!scm_is_string (item) || !scm_is_string (name)
|| !scm_is_string (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(API_SCM_TO_STRING(infolist)),
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(API_SCM_TO_STRING(item)),
API_SCM_TO_STRING(name),
API_SCM_TO_STRING(value)));
@@ -3999,17 +3999,17 @@ weechat_guile_api_infolist_new_var_string (SCM infolist, SCM name, SCM value)
}
SCM
-weechat_guile_api_infolist_new_var_pointer (SCM infolist, SCM name, SCM value)
+weechat_guile_api_infolist_new_var_pointer (SCM item, SCM name, SCM value)
{
char *result;
SCM return_value;
API_INIT_FUNC(1, "infolist_new_var_pointer", API_RETURN_EMPTY);
- if (!scm_is_string (infolist) || !scm_is_string (name)
+ if (!scm_is_string (item) || !scm_is_string (name)
|| !scm_is_string (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(API_SCM_TO_STRING(infolist)),
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(API_SCM_TO_STRING(item)),
API_SCM_TO_STRING(name),
API_STR2PTR(API_SCM_TO_STRING(value))));
@@ -4017,17 +4017,17 @@ weechat_guile_api_infolist_new_var_pointer (SCM infolist, SCM name, SCM value)
}
SCM
-weechat_guile_api_infolist_new_var_time (SCM infolist, SCM name, SCM value)
+weechat_guile_api_infolist_new_var_time (SCM item, SCM name, SCM value)
{
char *result;
SCM return_value;
API_INIT_FUNC(1, "infolist_new_var_time", API_RETURN_EMPTY);
- if (!scm_is_string (infolist) || !scm_is_string (name)
+ if (!scm_is_string (item) || !scm_is_string (name)
|| !scm_is_integer (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(API_SCM_TO_STRING(infolist)),
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(API_SCM_TO_STRING(item)),
API_SCM_TO_STRING(name),
scm_to_int (value)));
diff --git a/src/plugins/lua/weechat-lua-api.c b/src/plugins/lua/weechat-lua-api.c
index f7240bb91..dbee410e9 100644
--- a/src/plugins/lua/weechat-lua-api.c
+++ b/src/plugins/lua/weechat-lua-api.c
@@ -4192,7 +4192,7 @@ API_FUNC(infolist_new_item)
API_FUNC(infolist_new_var_integer)
{
- const char *infolist, *name;
+ const char *item, *name;
char *result;
int value;
@@ -4200,11 +4200,11 @@ API_FUNC(infolist_new_var_integer)
if (lua_gettop (L) < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = lua_tostring (L, -3);
+ item = lua_tostring (L, -3);
name = lua_tostring (L, -2);
value = lua_tonumber (L, -1);
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(item),
name,
value));
@@ -4213,18 +4213,18 @@ API_FUNC(infolist_new_var_integer)
API_FUNC(infolist_new_var_string)
{
- const char *infolist, *name, *value;
+ const char *item, *name, *value;
char *result;
API_INIT_FUNC(1, "infolist_new_var_string", API_RETURN_EMPTY);
if (lua_gettop (L) < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = lua_tostring (L, -3);
+ item = lua_tostring (L, -3);
name = lua_tostring (L, -2);
value = lua_tostring (L, -1);
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(item),
name,
value));
@@ -4233,18 +4233,18 @@ API_FUNC(infolist_new_var_string)
API_FUNC(infolist_new_var_pointer)
{
- const char *infolist, *name, *value;
+ const char *item, *name, *value;
char *result;
API_INIT_FUNC(1, "infolist_new_var_pointer", API_RETURN_EMPTY);
if (lua_gettop (L) < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = lua_tostring (L, -3);
+ item = lua_tostring (L, -3);
name = lua_tostring (L, -2);
value = lua_tostring (L, -1);
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(item),
name,
API_STR2PTR(value)));
@@ -4253,7 +4253,7 @@ API_FUNC(infolist_new_var_pointer)
API_FUNC(infolist_new_var_time)
{
- const char *infolist, *name;
+ const char *item, *name;
char *result;
int value;
@@ -4261,11 +4261,11 @@ API_FUNC(infolist_new_var_time)
if (lua_gettop (L) < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = lua_tostring (L, -3);
+ item = lua_tostring (L, -3);
name = lua_tostring (L, -2);
value = lua_tonumber (L, -1);
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(item),
name,
value));
diff --git a/src/plugins/perl/weechat-perl-api.c b/src/plugins/perl/weechat-perl-api.c
index af8353319..7fcafe2ac 100644
--- a/src/plugins/perl/weechat-perl-api.c
+++ b/src/plugins/perl/weechat-perl-api.c
@@ -4119,17 +4119,17 @@ API_FUNC(infolist_new_item)
API_FUNC(infolist_new_var_integer)
{
- char *infolist, *name, *result;
+ char *item, *name, *result;
dXSARGS;
API_INIT_FUNC(1, "infolist_new_var_integer", API_RETURN_EMPTY);
if (items < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = SvPV_nolen (ST (0));
+ item = SvPV_nolen (ST (0));
name = SvPV_nolen (ST (1));
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(item),
name,
SvIV (ST (2)))); /* value */
@@ -4138,18 +4138,18 @@ API_FUNC(infolist_new_var_integer)
API_FUNC(infolist_new_var_string)
{
- char *infolist, *name, *value, *result;
+ char *item, *name, *value, *result;
dXSARGS;
API_INIT_FUNC(1, "infolist_new_var_string", API_RETURN_EMPTY);
if (items < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = SvPV_nolen (ST (0));
+ item = SvPV_nolen (ST (0));
name = SvPV_nolen (ST (1));
value = SvPV_nolen (ST (2));
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(item),
name,
value));
@@ -4158,18 +4158,18 @@ API_FUNC(infolist_new_var_string)
API_FUNC(infolist_new_var_pointer)
{
- char *infolist, *name, *value, *result;
+ char *item, *name, *value, *result;
dXSARGS;
API_INIT_FUNC(1, "infolist_new_var_pointer", API_RETURN_EMPTY);
if (items < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = SvPV_nolen (ST (0));
+ item = SvPV_nolen (ST (0));
name = SvPV_nolen (ST (1));
value = SvPV_nolen (ST (2));
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(item),
name,
API_STR2PTR(value)));
@@ -4178,17 +4178,17 @@ API_FUNC(infolist_new_var_pointer)
API_FUNC(infolist_new_var_time)
{
- char *infolist, *name, *result;
+ char *item, *name, *result;
dXSARGS;
API_INIT_FUNC(1, "infolist_new_var_time", API_RETURN_EMPTY);
if (items < 3)
API_WRONG_ARGS(API_RETURN_EMPTY);
- infolist = SvPV_nolen (ST (0));
+ item = SvPV_nolen (ST (0));
name = SvPV_nolen (ST (1));
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(item),
name,
SvIV (ST (2)))); /* value */
diff --git a/src/plugins/python/weechat-python-api.c b/src/plugins/python/weechat-python-api.c
index b989973fa..02d3658cf 100644
--- a/src/plugins/python/weechat-python-api.c
+++ b/src/plugins/python/weechat-python-api.c
@@ -4141,18 +4141,18 @@ API_FUNC(infolist_new_item)
API_FUNC(infolist_new_var_integer)
{
- char *infolist, *name, *result;
+ char *item, *name, *result;
int value;
PyObject *return_value;
API_INIT_FUNC(1, "infolist_new_var_integer", API_RETURN_EMPTY);
- infolist = NULL;
+ item = NULL;
name = NULL;
value = 0;
- if (!PyArg_ParseTuple (args, "ssi", &infolist, &name, &value))
+ if (!PyArg_ParseTuple (args, "ssi", &item, &name, &value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(item),
name,
value));
@@ -4161,17 +4161,17 @@ API_FUNC(infolist_new_var_integer)
API_FUNC(infolist_new_var_string)
{
- char *infolist, *name, *value, *result;
+ char *item, *name, *value, *result;
PyObject *return_value;
API_INIT_FUNC(1, "infolist_new_var_string", API_RETURN_EMPTY);
- infolist = NULL;
+ item = NULL;
name = NULL;
value = NULL;
- if (!PyArg_ParseTuple (args, "sss", &infolist, &name, &value))
+ if (!PyArg_ParseTuple (args, "sss", &item, &name, &value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(item),
name,
value));
@@ -4180,17 +4180,17 @@ API_FUNC(infolist_new_var_string)
API_FUNC(infolist_new_var_pointer)
{
- char *infolist, *name, *value, *result;
+ char *item, *name, *value, *result;
PyObject *return_value;
API_INIT_FUNC(1, "infolist_new_var_pointer", API_RETURN_EMPTY);
- infolist = NULL;
+ item = NULL;
name = NULL;
value = NULL;
- if (!PyArg_ParseTuple (args, "sss", &infolist, &name, &value))
+ if (!PyArg_ParseTuple (args, "sss", &item, &name, &value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(item),
name,
API_STR2PTR(value)));
@@ -4199,18 +4199,18 @@ API_FUNC(infolist_new_var_pointer)
API_FUNC(infolist_new_var_time)
{
- char *infolist, *name, *result;
+ char *item, *name, *result;
int value;
PyObject *return_value;
API_INIT_FUNC(1, "infolist_new_var_time", API_RETURN_EMPTY);
- infolist = NULL;
+ item = NULL;
name = NULL;
value = 0;
- if (!PyArg_ParseTuple (args, "ssi", &infolist, &name, &value))
+ if (!PyArg_ParseTuple (args, "ssi", &item, &name, &value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(item),
name,
value));
diff --git a/src/plugins/ruby/weechat-ruby-api.c b/src/plugins/ruby/weechat-ruby-api.c
index d4c476dd5..68eba9f5f 100644
--- a/src/plugins/ruby/weechat-ruby-api.c
+++ b/src/plugins/ruby/weechat-ruby-api.c
@@ -5001,26 +5001,26 @@ weechat_ruby_api_infolist_new_item (VALUE class, VALUE infolist)
}
static VALUE
-weechat_ruby_api_infolist_new_var_integer (VALUE class, VALUE infolist,
+weechat_ruby_api_infolist_new_var_integer (VALUE class, VALUE item,
VALUE name, VALUE value)
{
- char *c_infolist, *c_name, *result;
+ char *c_item, *c_name, *result;
int c_value;
VALUE return_value;
API_INIT_FUNC(1, "infolist_new_var_integer", API_RETURN_EMPTY);
- if (NIL_P (infolist) || NIL_P (name) || NIL_P (value))
+ if (NIL_P (item) || NIL_P (name) || NIL_P (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- Check_Type (infolist, T_STRING);
+ Check_Type (item, T_STRING);
Check_Type (name, T_STRING);
Check_Type (value, T_FIXNUM);
- c_infolist = StringValuePtr (infolist);
+ c_item = StringValuePtr (item);
c_name = StringValuePtr (name);
c_value = FIX2INT (value);
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(c_infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(c_item),
c_name,
c_value));
@@ -5028,25 +5028,25 @@ weechat_ruby_api_infolist_new_var_integer (VALUE class, VALUE infolist,
}
static VALUE
-weechat_ruby_api_infolist_new_var_string (VALUE class, VALUE infolist,
+weechat_ruby_api_infolist_new_var_string (VALUE class, VALUE item,
VALUE name, VALUE value)
{
- char *c_infolist, *c_name, *c_value, *result;
+ char *c_item, *c_name, *c_value, *result;
VALUE return_value;
API_INIT_FUNC(1, "infolist_new_var_string", API_RETURN_EMPTY);
- if (NIL_P (infolist) || NIL_P (name) || NIL_P (value))
+ if (NIL_P (item) || NIL_P (name) || NIL_P (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- Check_Type (infolist, T_STRING);
+ Check_Type (item, T_STRING);
Check_Type (name, T_STRING);
Check_Type (value, T_STRING);
- c_infolist = StringValuePtr (infolist);
+ c_item = StringValuePtr (item);
c_name = StringValuePtr (name);
c_value = StringValuePtr (value);
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(c_infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(c_item),
c_name,
c_value));
@@ -5054,25 +5054,25 @@ weechat_ruby_api_infolist_new_var_string (VALUE class, VALUE infolist,
}
static VALUE
-weechat_ruby_api_infolist_new_var_pointer (VALUE class, VALUE infolist,
+weechat_ruby_api_infolist_new_var_pointer (VALUE class, VALUE item,
VALUE name, VALUE value)
{
- char *c_infolist, *c_name, *c_value, *result;
+ char *c_item, *c_name, *c_value, *result;
VALUE return_value;
API_INIT_FUNC(1, "infolist_new_var_pointer", API_RETURN_EMPTY);
- if (NIL_P (infolist) || NIL_P (name) || NIL_P (value))
+ if (NIL_P (item) || NIL_P (name) || NIL_P (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- Check_Type (infolist, T_STRING);
+ Check_Type (item, T_STRING);
Check_Type (name, T_STRING);
Check_Type (value, T_STRING);
- c_infolist = StringValuePtr (infolist);
+ c_item = StringValuePtr (item);
c_name = StringValuePtr (name);
c_value = StringValuePtr (value);
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(c_infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(c_item),
c_name,
API_STR2PTR(c_value)));
@@ -5080,26 +5080,26 @@ weechat_ruby_api_infolist_new_var_pointer (VALUE class, VALUE infolist,
}
static VALUE
-weechat_ruby_api_infolist_new_var_time (VALUE class, VALUE infolist,
+weechat_ruby_api_infolist_new_var_time (VALUE class, VALUE item,
VALUE name, VALUE value)
{
- char *c_infolist, *c_name, *result;
+ char *c_item, *c_name, *result;
int c_value;
VALUE return_value;
API_INIT_FUNC(1, "infolist_new_var_time", API_RETURN_EMPTY);
- if (NIL_P (infolist) || NIL_P (name) || NIL_P (value))
+ if (NIL_P (item) || NIL_P (name) || NIL_P (value))
API_WRONG_ARGS(API_RETURN_EMPTY);
- Check_Type (infolist, T_STRING);
+ Check_Type (item, T_STRING);
Check_Type (name, T_STRING);
Check_Type (value, T_FIXNUM);
- c_infolist = StringValuePtr (infolist);
+ c_item = StringValuePtr (item);
c_name = StringValuePtr (name);
c_value = FIX2INT (value);
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(c_infolist),
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(c_item),
c_name,
c_value));
diff --git a/src/plugins/tcl/weechat-tcl-api.c b/src/plugins/tcl/weechat-tcl-api.c
index f119d4dac..03b7ecfa5 100644
--- a/src/plugins/tcl/weechat-tcl-api.c
+++ b/src/plugins/tcl/weechat-tcl-api.c
@@ -4467,7 +4467,7 @@ API_FUNC(infolist_new_var_integer)
if (Tcl_GetIntFromObj (interp, objv[3], &value) != TCL_OK)
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* infolist */
+ result = API_PTR2STR(weechat_infolist_new_var_integer (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* item */
Tcl_GetStringFromObj (objv[2], &i), /* name */
value));
@@ -4484,7 +4484,7 @@ API_FUNC(infolist_new_var_string)
if (objc < 4)
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* infolist */
+ result = API_PTR2STR(weechat_infolist_new_var_string (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* item */
Tcl_GetStringFromObj (objv[2], &i), /* name */
Tcl_GetStringFromObj (objv[3], &i))); /* value */
@@ -4501,7 +4501,7 @@ API_FUNC(infolist_new_var_pointer)
if (objc < 4)
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* infolist */
+ result = API_PTR2STR(weechat_infolist_new_var_pointer (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* item */
Tcl_GetStringFromObj (objv[2], &i), /* name */
API_STR2PTR(Tcl_GetStringFromObj (objv[3], &i)))); /* value */
@@ -4521,7 +4521,7 @@ API_FUNC(infolist_new_var_time)
if (Tcl_GetIntFromObj (interp, objv[3], &value) != TCL_OK)
API_WRONG_ARGS(API_RETURN_EMPTY);
- result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* infolist */
+ result = API_PTR2STR(weechat_infolist_new_var_time (API_STR2PTR(Tcl_GetStringFromObj (objv[1], &i)), /* item */
Tcl_GetStringFromObj (objv[2], &i), /* name */
value));