40 #define DEFINE_FIXED 0x0001
42 #define BUILTIN_LINE 1
43 #define BUILTIN_FILE 2
44 #define BUILTIN_DATE 3
45 #define BUILTIN_TIME 4
46 #define BUILTIN_STDC 5
48 #define INDENT_IF 0x0001
49 #define INDENT_ELSE 0x0002
50 #define INDENT_ELIF 0x0004
51 #define INDENT_IFDEF 0x0008
52 #define INDENT_IFNDEF 0x0010
90 int LoadMemory(
const char *ptr,
int length,
const char *name );
229 int Evaluate(
signed long int *intvalue,
double *floatvalue,
int integer );
230 int DollarEvaluate(
signed long int *intvalue,
double *floatvalue,
int integer);
void Error(const char *str,...) const id_attribute((format(printf
static define_t * DefineFromString(const char *string)
int AddDefine(const char *string)
void void static int AddGlobalDefine(const char *string)
void UnreadToken(idToken *token)
int ExpandDefineIntoSource(idToken *deftoken, define_t *define)
const char * GetFileName(void)
const int GetFileOffset(void) const
int MergeTokens(idToken *t1, idToken *t2)
int Parse3DMatrix(int z, int y, int x, float *m)
int DollarDirective_evalfloat(void)
GLenum GLsizei GLenum format
int SkipUntilString(const char *string)
int EvaluateTokens(idToken *tokens, signed long int *intvalue, double *floatvalue, int integer)
int UnreadSourceToken(idToken *token)
const ID_TIME_T GetFileTime(void)
int ReadDefineParms(define_t *define, idToken **parms, int maxparms)
define_t * CopyFirstDefine(void)
int ExpandDefine(idToken *deftoken, define_t *define, idToken **firsttoken, idToken **lasttoken)
int FindDefineParm(define_t *define, const char *name)
int LoadMemory(const char *ptr, int length, const char *name)
int DollarEvaluate(signed long int *intvalue, double *floatvalue, int integer)
void FreeSource(bool keepDefines=false)
GLuint GLuint GLsizei GLenum type
int ExpectTokenString(const char *string)
void SetIncludePath(const char *path)
const char * ParseBracedSection(idStr &out, int tabs=-1)
define_t * FindHashedDefine(define_t **definehash, const char *name)
int Directive_include(void)
const ID_TIME_T GetFileTime(void) const
const int GetFileOffset(void)
int ReadToken(idToken *token)
const int GetLineNum(void)
void GetStringFromMarker(idStr &out, bool clean=false)
int Directive_warning(void)
int Directive_pragma(void)
const int GetLineNum(void) const
int PeekTokenString(const char *string)
int Directive_error(void)
int Parse1DMatrix(int x, float *m)
int Directive_ifndef(void)
define_t * CopyDefine(define_t *define)
static int RemoveGlobalDefine(const char *name)
void AddGlobalDefinesToSource(void)
static void PrintDefine(define_t *define)
void PopIndent(int *type, int *skip)
int GetPunctuationId(const char *p)
void void Warning(const char *str,...) const id_attribute((format(printf
const char * GetPunctuationFromId(int id)
static void FreeDefine(define_t *define)
const punctuation_t * punctuations
int Evaluate(signed long int *intvalue, double *floatvalue, int integer)
int Directive_undef(void)
int ExpectAnyToken(idToken *token)
const char * ParseBracedSectionExact(idStr &out, int tabs=-1)
void AddDefineToHash(define_t *define, define_t **definehash)
void SetPunctuations(const punctuation_t *p)
int ReadDollarDirective(void)
int Directive_if_def(int type)
int ReadSourceToken(idToken *token)
int ExpandBuiltinDefine(idToken *deftoken, define_t *define, idToken **firsttoken, idToken **lasttoken)
int DollarDirective_evalint(void)
static define_t * FindDefine(define_t *defines, const char *name)
struct define_s * hashnext
int Directive_define(void)
void UnreadSignToken(void)
void PushIndent(int type, int skip)
static void SetBaseFolder(const char *path)
int LoadFile(const char *filename, bool OSPath=false)
const char * ParseRestOfLine(idStr &out)
void PushScript(idLexer *script)
int PeekTokenType(int type, int subtype, idToken *token)
int CheckTokenString(const char *string)
GLsizei const GLcharARB const GLint * length
int SkipBracedSection(bool parseFirstBrace=true)
static define_t * globaldefines
int Directive_ifdef(void)
int ReadTokenOnLine(idToken *token)
static void RemoveAllGlobalDefines(void)
void AddBuiltinDefines(void)
int StringizeTokens(idToken *tokens, idToken *token)
int Parse2DMatrix(int y, int x, float *m)
int ReadLine(idToken *token)
const char * GetFileName(void) const
int CheckTokenType(int type, int subtype, idToken *token)
int ExpectTokenType(int type, int subtype, idToken *token)
int Directive_endif(void)
int Directive_evalfloat(void)
int GetLastWhiteSpace(idStr &whiteSpace) const