Move the meta type enum ino pr_type.h

This commit is contained in:
Bill Currie 2020-02-21 17:58:19 +09:00
parent 3c9e2a6451
commit fe796eee68
2 changed files with 11 additions and 11 deletions

View file

@ -40,6 +40,16 @@
#include "QF/pr_comp.h"
typedef enum {
ty_basic, ///< VM type (float, int, pointer, field, etc)
ty_struct,
ty_union,
ty_enum,
ty_array,
ty_class,
ty_alias,
} ty_meta_e;
typedef struct qfot_alias_s {
pr_int_t type; ///< type at end of alias chain
pointer_t aux_type; ///< referenced type

View file

@ -31,7 +31,7 @@
#ifndef __type_h
#define __type_h
#include "QF/pr_comp.h"
#include "QF/pr_type.h"
#include "def.h"
@ -55,16 +55,6 @@ typedef struct ty_alias_s {
struct type_s *type;
} ty_alias_t;
typedef enum {
ty_basic, ///< VM type (float, int, pointer, field, etc)
ty_struct,
ty_union,
ty_enum,
ty_array,
ty_class,
ty_alias,
} ty_meta_e;
typedef struct type_s {
etype_t type; ///< ev_invalid means structure/array etc
const char *name;