move typedefs
This commit is contained in:
parent
cafc7c88ea
commit
d0dc577810
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue