mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
scripts: fix name of variables in infolist API functions
This commit is contained in:
@@ -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)));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user