mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
ok, I'm happy with this now (bit fields anent' so great for portable file
formats:/)
This commit is contained in:
parent
c25cfe6c9e
commit
f90f78990a
1 changed files with 7 additions and 4 deletions
|
@ -33,6 +33,7 @@
|
|||
#ifndef __obj_file_h
|
||||
#define __obj_file_h
|
||||
|
||||
#define QFO "QFO"
|
||||
#define QFO_VERSION 0x00001001 // MMmmmRRR 0.001.001 (hex)
|
||||
|
||||
typedef struct qfo_header_s {
|
||||
|
@ -70,15 +71,17 @@ typedef struct qfo_def_s {
|
|||
int refs;
|
||||
int num_refs;
|
||||
|
||||
unsigned initialized:1;
|
||||
unsigned constant:1;
|
||||
unsigned global:1;
|
||||
unsigned absolute:1;
|
||||
unsigned flags;
|
||||
|
||||
string_t file;
|
||||
int line;
|
||||
} qfo_def_t;
|
||||
|
||||
#define QFOD_INITIALIZED (1u<<0)
|
||||
#define QFOD_CONSTANT (1u<<1)
|
||||
#define QFOD_GLOBAL (1u<<2)
|
||||
#define QFOD_ABSOLUTE (1u<<3)
|
||||
|
||||
typedef struct qfo_function_s {
|
||||
string_t name;
|
||||
string_t file;
|
||||
|
|
Loading…
Reference in a new issue