From 2fb97d16edb606dcb2d0f17bc3133e78aee6eea4 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 28 Jun 2014 19:23:06 +0900 Subject: [PATCH] style fix --- src/bool.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/bool.c b/src/bool.c index 904a21d6..07ddcffc 100644 --- a/src/bool.c +++ b/src/bool.c @@ -23,29 +23,29 @@ pic_equal_p(pic_state *pic, pic_value x, pic_value y) return false; switch (type) { case PIC_TT_PAIR: - return pic_equal_p(pic, pic_car(pic, x), pic_car(pic, y)) - && pic_equal_p(pic, pic_cdr(pic, x), pic_cdr(pic, y)); + return pic_equal_p(pic, pic_car(pic, x), pic_car(pic, y)) && pic_equal_p(pic, pic_cdr(pic, x), pic_cdr(pic, y)); case PIC_TT_BLOB: { int i; - struct pic_blob *v1 = pic_blob_ptr(x), *v2 = pic_blob_ptr(y); - if(v1->len != v2->len){ + struct pic_blob *u = pic_blob_ptr(x), *v = pic_blob_ptr(y); + + if(u->len != v->len){ return false; } - for(i = 0; i < v1->len; ++i){ - if(v1->data[i] != v2->data[i]) + for(i = 0; i < u->len; ++i){ + if(u->data[i] != v->data[i]) return false; } return true; } - case PIC_TT_VECTOR:{ + case PIC_TT_VECTOR: { size_t i; - struct pic_vector *v1 = pic_vec_ptr(x), *v2 = pic_vec_ptr(y); - - if(v1->len != v2->len){ + struct pic_vector *u = pic_vec_ptr(x), *v = pic_vec_ptr(y); + + if(u->len != v->len){ return false; } - for(i = 0; i < v1->len; ++i){ - if(! pic_equal_p(pic, v1->data[i], v2->data[i])) + for(i = 0; i < u->len; ++i){ + if(! pic_equal_p(pic, u->data[i], v->data[i])) return false; } return true;