QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
emit.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define EMIT_DEF(s, dest, def)
 
#define EMIT_DEF_OFS(s, dest, def)
 
#define EMIT_STRING(s, dest, str)
 

Functions

void emit_statements (struct sblock_s *first_sblock)
 

Macro Definition Documentation

#define EMIT_DEF (   s,
  dest,
  def 
)
Value:
do { \
def_t *d = (def); \
def_t loc; \
loc.space = s; \
loc.offset = POINTER_OFS (s, &(dest)); \
(dest) = d ? d->offset : 0; \
if (d) \
reloc_def_def (d, &loc); \
} while (0)
void reloc_def_def(struct def_s *def, struct def_s *location)
Create a relocation record for a data location referencing a def.
Definition: reloc.c:213
if(!(yy_init))
Definition: qp-lex.c:893
struct defspace_s * space
defspace to which this def belongs
Definition: def.h:61
#define POINTER_OFS(s, p)
Definition: qfcc.h:108
struct def_s def_t
Represent a memory location that holds a QuakeC/Ruamoko object.
#define EMIT_DEF_OFS (   s,
  dest,
  def 
)
Value:
do { \
def_t *d = (def); \
def_t loc; \
loc.space = s; \
loc.offset = POINTER_OFS (s, &(dest)); \
(dest) = d ? d->offset : 0; \
if (d) \
reloc_def_def_ofs (d, &loc); \
} while (0)
void reloc_def_def_ofs(struct def_s *def, struct def_s *location)
Create a relocation record for a data location referencing a def.
Definition: reloc.c:224
if(!(yy_init))
Definition: qp-lex.c:893
struct defspace_s * space
defspace to which this def belongs
Definition: def.h:61
#define POINTER_OFS(s, p)
Definition: qfcc.h:108
struct def_s def_t
Represent a memory location that holds a QuakeC/Ruamoko object.
#define EMIT_STRING (   s,
  dest,
  str 
)
Value:
do { \
def_t loc; \
loc.space = s; \
loc.offset = POINTER_OFS (s, &(dest)); \
(dest) = ReuseString (str); \
} while (0)
int ReuseString(const char *str)
Definition: stub.c:26
void reloc_def_string(struct def_s *location)
Create a relocation record for a data location referencing a string.
Definition: reloc.c:246
struct defspace_s * space
defspace to which this def belongs
Definition: def.h:61
#define POINTER_OFS(s, p)
Definition: qfcc.h:108
struct def_s def_t
Represent a memory location that holds a QuakeC/Ruamoko object.

Function Documentation

void emit_statements ( struct sblock_s first_sblock)