QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
General functions

Data Structures

struct  pr_info_s
 Output generated by prog parsing. More...
 
struct  srcline_s
 

Macros

#define D_FLOAT(d)   D_var (float, d)
 
#define D_FUNCTION(d)   D_var (func, d)
 
#define D_GETSTR(d)   GETSTR (D_STRING (d))
 
#define D_INT(d)   D_var (integer, d)
 
#define D_POINTER(t, d)   ((t *)((d)->space->data + (d)->offset))
 
#define D_QUAT(d)   D_var (quat, d)
 
#define D_STRING(d)   D_var (string, d)
 
#define D_STRUCT(t, d)   (*D_POINTER (t, d))
 
#define D_var(t, d)   ((d)->space->data[(d)->offset].t##_var)
 
#define D_VECTOR(d)   D_var (vector, d)
 
#define G_POINTER(s, t, o)   ((t *)((s)->data + o))
 
#define G_STRUCT(s, t, o)   (*G_POINTER (s, t, o))
 
#define GETSTR(s)   (pr.strings->strings + (s))
 
#define NORMALIZE(x)   x
 
#define POINTER_OFS(s, p)   ((pr_type_t *) (p) - (s)->data)
 
#define RUP(x, a)   (((x) + ((a) - 1)) & ~((a) - 1))
 Round x up to the next multiple of a. More...
 

Typedefs

typedef struct pr_info_s pr_info_t
 Output generated by prog parsing. More...
 
typedef struct srcline_s srcline_t
 

Functions

int qc_yyparse (void)
 
int qp_yyparse (void)
 
const char * strip_path (const char *filename)
 

Variables

pr_info_t pr
 
int qc_yydebug
 
FILE * qc_yyin
 
int qp_yydebug
 
FILE * qp_yyin = (FILE *) 0
 

Detailed Description

Macro Definition Documentation

#define D_FLOAT (   d)    D_var (float, d)
#define D_FUNCTION (   d)    D_var (func, d)
#define D_GETSTR (   d)    GETSTR (D_STRING (d))
#define D_INT (   d)    D_var (integer, d)
#define D_POINTER (   t,
 
)    ((t *)((d)->space->data + (d)->offset))
#define D_QUAT (   d)    D_var (quat, d)
#define D_STRING (   d)    D_var (string, d)
#define D_STRUCT (   t,
 
)    (*D_POINTER (t, d))
#define D_var (   t,
 
)    ((d)->space->data[(d)->offset].t##_var)
#define D_VECTOR (   d)    D_var (vector, d)
#define G_POINTER (   s,
  t,
 
)    ((t *)((s)->data + o))
#define G_STRUCT (   s,
  t,
 
)    (*G_POINTER (s, t, o))
#define GETSTR (   s)    (pr.strings->strings + (s))
#define NORMALIZE (   x)    x
#define POINTER_OFS (   s,
 
)    ((pr_type_t *) (p) - (s)->data)
#define RUP (   x,
 
)    (((x) + ((a) - 1)) & ~((a) - 1))

Round x up to the next multiple of a.

Note
a must be a power of two or this will break.
There are no side effects on x.
Parameters
xThe value to be rounded up.
aThe rounding factor.
Returns
The rounded value.

Typedef Documentation

typedef struct pr_info_s pr_info_t

Output generated by prog parsing.

typedef struct srcline_s srcline_t

Function Documentation

int qc_yyparse ( void  )
int qp_yyparse ( void  )
const char* strip_path ( const char *  filename)

Variable Documentation

Examples:
vm-exec.c.
int qc_yydebug
FILE* qc_yyin
int qp_yydebug
FILE * qp_yyin = (FILE *) 0