mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 08:51:59 +00:00
move the type and def externs to type.h
This commit is contained in:
parent
f4fee3d7b2
commit
55e54bd9f9
6 changed files with 24 additions and 20 deletions
|
@ -352,26 +352,6 @@ typedef union eval_s
|
|||
union eval_s *ptr;
|
||||
} eval_t;
|
||||
|
||||
extern type_t type_void;
|
||||
extern type_t type_string;
|
||||
extern type_t type_float;
|
||||
extern type_t type_vector;
|
||||
extern type_t type_entity;
|
||||
extern type_t type_field;
|
||||
extern type_t type_function;
|
||||
extern type_t type_pointer;
|
||||
extern type_t type_floatfield;
|
||||
extern type_t type_quaternion;
|
||||
extern type_t type_integer;
|
||||
extern type_t type_uinteger;
|
||||
extern type_t type_short;
|
||||
extern type_t type_struct;
|
||||
extern type_t type_id;
|
||||
extern type_t type_SEL;
|
||||
|
||||
extern def_t def_void;
|
||||
extern def_t def_function;
|
||||
|
||||
struct function_s
|
||||
{
|
||||
struct function_s *next;
|
||||
|
|
|
@ -32,6 +32,26 @@
|
|||
#ifndef __type_h
|
||||
#define __type_h
|
||||
|
||||
extern type_t type_void;
|
||||
extern type_t type_string;
|
||||
extern type_t type_float;
|
||||
extern type_t type_vector;
|
||||
extern type_t type_entity;
|
||||
extern type_t type_field;
|
||||
extern type_t type_function;
|
||||
extern type_t type_pointer;
|
||||
extern type_t type_floatfield;
|
||||
extern type_t type_quaternion;
|
||||
extern type_t type_integer;
|
||||
extern type_t type_uinteger;
|
||||
extern type_t type_short;
|
||||
extern type_t type_struct;
|
||||
extern type_t type_id;
|
||||
extern type_t type_SEL;
|
||||
|
||||
extern def_t def_void;
|
||||
extern def_t def_function;
|
||||
|
||||
type_t *find_type (type_t *new);
|
||||
void new_typedef (const char *name, struct type_s *type);
|
||||
struct type_s *get_typedef (const char *name);
|
||||
|
|
|
@ -36,6 +36,7 @@ static const char rcsid[] =
|
|||
#include <QF/va.h>
|
||||
|
||||
#include "qfcc.h"
|
||||
#include "type.h"
|
||||
#include "qc-parse.h"
|
||||
|
||||
def_t *emit_sub_expr (expr_t *e, def_t *dest);
|
||||
|
|
|
@ -25,6 +25,7 @@ static const char rcsid[] =
|
|||
#include "QF/hash.h"
|
||||
|
||||
#include "qfcc.h"
|
||||
#include "type.h"
|
||||
|
||||
static hashtab_t *string_imm_defs;
|
||||
static hashtab_t *float_imm_defs;
|
||||
|
|
|
@ -63,6 +63,7 @@ static const char rcsid[] =
|
|||
#include <QF/sys.h>
|
||||
|
||||
#include "qfcc.h"
|
||||
#include "type.h"
|
||||
|
||||
options_t options;
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@ static const char rcsid[] =
|
|||
#include <QF/sys.h>
|
||||
|
||||
#include "qfcc.h"
|
||||
#include "type.h"
|
||||
#include "switch.h"
|
||||
#include "qc-parse.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue