doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
Parser.cpp File Reference
#include "precompiled.h"

Go to the source code of this file.

Classes

struct  operator_s
 
struct  value_s
 

Macros

#define MAX_DEFINEPARMS   128
 
#define DEFINEHASHSIZE   2048
 
#define TOKEN_FL_RECURSIVE_DEFINE   1
 
#define MAX_VALUES   64
 
#define MAX_OPERATORS   64
 
#define AllocValue(val)
 
#define FreeValue(val)
 
#define AllocOperator(op)
 
#define FreeOperator(op)
 

Typedefs

typedef struct operator_s operator_t
 
typedef struct value_s value_t
 

Functions

ID_INLINE int PC_NameHash (const char *name)
 
int PC_OperatorPriority (int op)
 

Macro Definition Documentation

#define AllocOperator (   op)
Value:
if ( numoperators >= MAX_OPERATORS ) { \
idParser::Error( "out of operator space\n" ); \
error = 1; \
} \
else { \
op = &operator_heap[numoperators++]; \
}
void Error(const char *str,...) const id_attribute((format(printf
Definition: Parser.cpp:318
#define MAX_OPERATORS
Definition: Parser.cpp:1342
break
Definition: Callbacks.cpp:38

Definition at line 1356 of file Parser.cpp.

#define AllocValue (   val)
Value:
if ( numvalues >= MAX_VALUES ) { \
idParser::Error( "out of value space\n" ); \
error = 1; \
} \
else { \
val = &value_heap[numvalues++]; \
}
void Error(const char *str,...) const id_attribute((format(printf
Definition: Parser.cpp:318
#define MAX_VALUES
Definition: Parser.cpp:1341
break
Definition: Callbacks.cpp:38

Definition at line 1344 of file Parser.cpp.

#define DEFINEHASHSIZE   2048

Definition at line 34 of file Parser.cpp.

#define FreeOperator (   op)

Definition at line 1366 of file Parser.cpp.

#define FreeValue (   val)

Definition at line 1354 of file Parser.cpp.

#define MAX_DEFINEPARMS   128

Definition at line 33 of file Parser.cpp.

#define MAX_OPERATORS   64

Definition at line 1342 of file Parser.cpp.

#define MAX_VALUES   64

Definition at line 1341 of file Parser.cpp.

#define TOKEN_FL_RECURSIVE_DEFINE   1

Definition at line 36 of file Parser.cpp.

Typedef Documentation

typedef struct operator_s operator_t
typedef struct value_s value_t

Function Documentation

ID_INLINE int PC_NameHash ( const char *  name)

Definition at line 151 of file Parser.cpp.

int PC_OperatorPriority ( int  op)

Definition at line 1303 of file Parser.cpp.