move typedefs

This commit is contained in:
Yuichi Nishiwaki
2016-02-20 19:10:51 +09:00
parent cafc7c88ea
commit d0dc577810
3 changed files with 4 additions and 4 deletions
-3
View File
@@ -295,9 +295,6 @@ int xvfprintf(pic_state *, xFILE *fp, const char *fmt, va_list);
/* extra stuff */
typedef struct pic_identifier pic_id;
typedef pic_id pic_sym;
#include "picrin/state.h"
void *pic_default_allocf(void *, void *, size_t);
+3
View File
@@ -9,6 +9,9 @@
extern "C" {
#endif
typedef struct pic_identifier pic_id;
typedef pic_id pic_sym;
KHASH_DECLARE(env, pic_id *, pic_sym *)
KHASH_DECLARE(dict, pic_sym *, pic_value)
KHASH_DECLARE(weak, struct pic_object *, pic_value)
+1 -1
View File
@@ -52,7 +52,7 @@ typedef struct {
struct pic_context *up;
} pic_callinfo;
KHASH_DECLARE(oblist, struct pic_string *, pic_sym *)
KHASH_DECLARE(oblist, struct pic_string *, struct pic_identifier *)
KHASH_DECLARE(ltable, const char *, struct pic_lib)
struct pic_state {