since pic_string is a first-class value, move it to value.h

This commit is contained in:
Yuichi Nishiwaki
2013-10-21 17:38:05 +09:00
parent f5154625ba
commit 114d6b708b
6 changed files with 7 additions and 16 deletions
-12
View File
@@ -1,12 +0,0 @@
#ifndef STRING_H__
#define STRING_H__
struct pic_string {
PIC_OBJECT_HEADER
char *str;
size_t len;
};
#define pic_str_ptr(v) ((struct pic_string *)v.u.data)
#endif
+7
View File
@@ -50,12 +50,19 @@ struct pic_symbol {
char *name;
};
struct pic_string {
PIC_OBJECT_HEADER
char *str;
size_t len;
};
struct pic_proc;
struct pic_port;
#define pic_obj_ptr(o) ((struct pic_object *)o.u.data)
#define pic_pair_ptr(o) ((struct pic_pair *)o.u.data)
#define pic_symbol_ptr(o) ((struct pic_symbol *)o.u.data)
#define pic_str_ptr(v) ((struct pic_string *)v.u.data)
enum pic_tt pic_type(pic_value);