From 349d7f1799d06474d27e91483e3dad2d1539aa0b Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sun, 23 Feb 2014 10:51:21 +0900 Subject: [PATCH] don't take int arguments with size_t --- include/picrin/pair.h | 2 +- src/string.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/picrin/pair.h b/include/picrin/pair.h index 8f1a1dbb..be8b8268 100644 --- a/include/picrin/pair.h +++ b/include/picrin/pair.h @@ -48,7 +48,7 @@ pic_value pic_cadr(pic_state *, pic_value); pic_value pic_cdar(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); void pic_list_set(pic_state *, pic_value, int, pic_value); pic_value pic_list_copy(pic_state *, pic_value); diff --git a/src/string.c b/src/string.c index 58e3c69c..c132d4db 100644 --- a/src/string.c +++ b/src/string.c @@ -264,9 +264,9 @@ DEFINE_STRING_CMP(ge, >=) static pic_value pic_str_string_copy(pic_state *pic) { - size_t len, start, end, i; + size_t len; char *str; - int n; + int n, start, end, i; pic_str *copy; 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 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; - 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); @@ -333,9 +333,9 @@ pic_str_string_append(pic_state *pic) static pic_value pic_str_string_fill_ip(pic_state *pic) { - size_t len, start, end; + size_t len; char *str, c; - int n; + int n, start, end; n = pic_get_args(pic, "sc|ii", &str, &len, &c, &start, &end);