2001-07-17 20:05:57 +00:00
|
|
|
#ifndef __def_h
|
|
|
|
#define __def_h
|
|
|
|
|
|
|
|
#include <QF/pr_comp.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
etype_t type;
|
|
|
|
unsigned short offset;
|
|
|
|
const char *name;
|
|
|
|
} def_t;
|
|
|
|
|
|
|
|
extern def_t nq_global_defs[];
|
|
|
|
extern def_t nq_field_defs[];
|
2003-04-17 00:01:48 +00:00
|
|
|
extern unsigned int nq_crc;
|
2001-07-17 20:05:57 +00:00
|
|
|
|
|
|
|
extern def_t qw_global_defs[];
|
|
|
|
extern def_t qw_field_defs[];
|
2003-04-17 00:01:48 +00:00
|
|
|
extern unsigned int qw_crc;
|
2001-07-17 20:05:57 +00:00
|
|
|
|
2001-07-17 22:15:41 +00:00
|
|
|
void Init_Defs (def_t *gtab, def_t *ftab);
|
|
|
|
def_t *Find_Global_Def_name (const char *name);
|
|
|
|
def_t *Find_Global_Def_offs (int offs);
|
|
|
|
def_t *Find_Field_Def_name (const char *name);
|
|
|
|
def_t *Find_Field_Def_offs (int offs);
|
|
|
|
|
2001-07-18 00:26:14 +00:00
|
|
|
struct progs_s;
|
|
|
|
void fix_missing_globals (struct progs_s *pr, def_t *globals);
|
|
|
|
void fix_missing_fields (struct progs_s *pr, def_t *fields);
|
|
|
|
|
2001-07-17 20:05:57 +00:00
|
|
|
#endif//__def_h
|