don't take int arguments with size_t
This commit is contained in:
parent
067a4756ff
commit
349d7f1799
|
@ -48,7 +48,7 @@ pic_value pic_cadr(pic_state *, pic_value);
|
||||||
pic_value pic_cdar(pic_state *, pic_value);
|
pic_value pic_cdar(pic_state *, pic_value);
|
||||||
pic_value pic_cddr(pic_state *, pic_value);
|
pic_value pic_cddr(pic_state *, pic_value);
|
||||||
|
|
||||||
pic_value pic_list_tail(pic_state *, pic_value ,int);
|
pic_value pic_list_tail(pic_state *, pic_value, int);
|
||||||
pic_value pic_list_ref(pic_state *, pic_value, int);
|
pic_value pic_list_ref(pic_state *, pic_value, int);
|
||||||
void pic_list_set(pic_state *, pic_value, int, pic_value);
|
void pic_list_set(pic_state *, pic_value, int, pic_value);
|
||||||
pic_value pic_list_copy(pic_state *, pic_value);
|
pic_value pic_list_copy(pic_state *, pic_value);
|
||||||
|
|
12
src/string.c
12
src/string.c
|
@ -264,9 +264,9 @@ DEFINE_STRING_CMP(ge, >=)
|
||||||
static pic_value
|
static pic_value
|
||||||
pic_str_string_copy(pic_state *pic)
|
pic_str_string_copy(pic_state *pic)
|
||||||
{
|
{
|
||||||
size_t len, start, end, i;
|
size_t len;
|
||||||
char *str;
|
char *str;
|
||||||
int n;
|
int n, start, end, i;
|
||||||
pic_str *copy;
|
pic_str *copy;
|
||||||
|
|
||||||
n = pic_get_args(pic, "s|ii", &str, &len, &start, &end);
|
n = pic_get_args(pic, "s|ii", &str, &len, &start, &end);
|
||||||
|
@ -288,9 +288,9 @@ pic_str_string_copy(pic_state *pic)
|
||||||
static pic_value
|
static pic_value
|
||||||
pic_str_string_copy_ip(pic_state *pic)
|
pic_str_string_copy_ip(pic_state *pic)
|
||||||
{
|
{
|
||||||
size_t to_len, from_len, at, start, end;
|
size_t to_len, from_len;
|
||||||
char *to_str, *from_str;
|
char *to_str, *from_str;
|
||||||
int n;
|
int n, at, start, end;
|
||||||
|
|
||||||
n = pic_get_args(pic, "sis|ii", &to_str, &to_len, &at, &from_str, &from_len, &start, &end);
|
n = pic_get_args(pic, "sis|ii", &to_str, &to_len, &at, &from_str, &from_len, &start, &end);
|
||||||
|
|
||||||
|
@ -333,9 +333,9 @@ pic_str_string_append(pic_state *pic)
|
||||||
static pic_value
|
static pic_value
|
||||||
pic_str_string_fill_ip(pic_state *pic)
|
pic_str_string_fill_ip(pic_state *pic)
|
||||||
{
|
{
|
||||||
size_t len, start, end;
|
size_t len;
|
||||||
char *str, c;
|
char *str, c;
|
||||||
int n;
|
int n, start, end;
|
||||||
|
|
||||||
n = pic_get_args(pic, "sc|ii", &str, &len, &c, &start, &end);
|
n = pic_get_args(pic, "sc|ii", &str, &len, &c, &start, &end);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue