Move the meta type enum ino pr_type.h
This commit is contained in:
parent
3c9e2a6451
commit
fe796eee68
|
@ -40,6 +40,16 @@
|
||||||
|
|
||||||
#include "QF/pr_comp.h"
|
#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 {
|
typedef struct qfot_alias_s {
|
||||||
pr_int_t type; ///< type at end of alias chain
|
pr_int_t type; ///< type at end of alias chain
|
||||||
pointer_t aux_type; ///< referenced type
|
pointer_t aux_type; ///< referenced type
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#ifndef __type_h
|
#ifndef __type_h
|
||||||
#define __type_h
|
#define __type_h
|
||||||
|
|
||||||
#include "QF/pr_comp.h"
|
#include "QF/pr_type.h"
|
||||||
|
|
||||||
#include "def.h"
|
#include "def.h"
|
||||||
|
|
||||||
|
@ -55,16 +55,6 @@ typedef struct ty_alias_s {
|
||||||
struct type_s *type;
|
struct type_s *type;
|
||||||
} ty_alias_t;
|
} 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 {
|
typedef struct type_s {
|
||||||
etype_t type; ///< ev_invalid means structure/array etc
|
etype_t type; ///< ev_invalid means structure/array etc
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
Loading…
Reference in New Issue