From ca4276afc73d9749778f1689778c543ae759584f Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 21 Feb 2014 17:36:05 +0900 Subject: [PATCH] add type aliases for some important types --- include/picrin/value.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/picrin/value.h b/include/picrin/value.h index e7fe8829..5bda9c06 100644 --- a/include/picrin/value.h +++ b/include/picrin/value.h @@ -113,23 +113,23 @@ struct pic_object { PIC_OBJECT_HEADER }; -struct pic_pair { +typedef struct pic_pair { PIC_OBJECT_HEADER pic_value car; pic_value cdr; -}; +} pic_pair; -struct pic_string { +typedef struct pic_string { PIC_OBJECT_HEADER char *str; size_t len; -}; +} pic_str; -struct pic_vector { +typedef struct pic_vector { PIC_OBJECT_HEADER pic_value *data; size_t len; -}; +} pic_vec; struct pic_proc; struct pic_port;