This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
Definition at line 33 of file l_script.h. |
|
|
Definition at line 37 of file l_script.h. |
|
|
Definition at line 40 of file l_script.h. Referenced by PC_ReadToken(), PC_StringizeTokens(), PS_ReadName(), PS_ReadNumber(), PS_ReadPrimitive(), PS_ReadPunctuation(), and PS_ReadString(). |
|
|
Definition at line 35 of file l_script.h. |
|
|
Definition at line 115 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 98 of file l_script.h. |
|
|
Definition at line 117 of file l_script.h. |
|
|
Definition at line 140 of file l_script.h. |
|
|
Definition at line 119 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 103 of file l_script.h. |
|
|
Definition at line 122 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 120 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 104 of file l_script.h. |
|
|
Definition at line 121 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 105 of file l_script.h. |
|
|
Definition at line 137 of file l_script.h. |
|
|
Definition at line 136 of file l_script.h. |
|
|
Definition at line 131 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 129 of file l_script.h. |
|
|
Definition at line 110 of file l_script.h. |
|
|
Definition at line 111 of file l_script.h. |
|
|
Definition at line 101 of file l_script.h. Referenced by PC_EvaluateTokens(). |
|
|
Definition at line 113 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 96 of file l_script.h. |
|
|
Definition at line 143 of file l_script.h. |
|
|
Definition at line 100 of file l_script.h. Referenced by PC_EvaluateTokens(). |
|
|
Definition at line 88 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 92 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 90 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 125 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 91 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 126 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 124 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 89 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 93 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 107 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 84 of file l_script.h. |
|
|
Definition at line 114 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 97 of file l_script.h. |
|
|
Definition at line 112 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 95 of file l_script.h. |
|
|
Definition at line 135 of file l_script.h. |
|
|
Definition at line 134 of file l_script.h. |
|
|
Definition at line 85 of file l_script.h. |
|
|
Definition at line 109 of file l_script.h. |
|
|
Definition at line 142 of file l_script.h. |
|
|
Definition at line 86 of file l_script.h. |
|
|
Definition at line 132 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 128 of file l_script.h. |
|
|
Definition at line 106 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 83 of file l_script.h. |
|
|
Definition at line 130 of file l_script.h. |
|
|
Definition at line 139 of file l_script.h. |
|
|
Definition at line 138 of file l_script.h. |
|
|
Definition at line 116 of file l_script.h. Referenced by PC_EvaluateTokens(), and PC_OperatorPriority(). |
|
|
Definition at line 99 of file l_script.h. |
|
|
Definition at line 53 of file l_script.h. |
|
|
Definition at line 48 of file l_script.h. |
|
|
Definition at line 54 of file l_script.h. |
|
|
Definition at line 51 of file l_script.h. Referenced by AAS_ParseBSPEntities(), HL_ParseEntities(), Q1_ParseEntities(), Q2_LoadMapFile(), Q2_ParseEntities(), Q3_ParseEntities(), and Sin_ParseEntities(). |
|
|
Definition at line 50 of file l_script.h. Referenced by AAS_ParseBSPEntities(), HL_ParseEntities(), Q1_ParseEntities(), Q2_LoadMapFile(), Q2_ParseEntities(), Q3_ParseEntities(), and Sin_ParseEntities(). |
|
|
Definition at line 49 of file l_script.h. |
|
|
Definition at line 52 of file l_script.h. Referenced by Q2_LoadMapFile(). |
|
|
Definition at line 75 of file l_script.h. |
|
|
Definition at line 71 of file l_script.h. Referenced by PC_ExpandBuiltinDefine(). |
|
|
Definition at line 77 of file l_script.h. Referenced by PC_Directive_evalfloat(), and PC_DollarDirective_evalfloat(). |
|
|
Definition at line 72 of file l_script.h. |
|
|
Definition at line 78 of file l_script.h. Referenced by BotLoadMatchTemplates(), PC_Directive_eval(), PC_DollarDirective_evalint(), ReadFuzzySeperators_r(), and ReadSignedInt(). |
|
|
Definition at line 58 of file l_script.h. |
|
|
Definition at line 79 of file l_script.h. Referenced by PC_Directive_eval(), PC_Directive_evalfloat(), PC_DollarDirective_evalfloat(), and PC_DollarDirective_evalint(). |
|
|
Definition at line 60 of file l_script.h. Referenced by PC_Directive_define(), PC_EvaluateTokens(), and PC_MergeTokens(). |
|
|
Definition at line 59 of file l_script.h. Referenced by BotLoadCharacterFromFile(), BotLoadChatMessage(), BotLoadMatchPieces(), BotLoadMatchTemplates(), BotLoadReplyChat(), BotLoadSynonyms(), PC_DollarEvaluate(), PC_Evaluate(), PC_EvaluateTokens(), Q2_ParseBrush(), ReadFuzzySeperators_r(), ReadSignedFloat(), ReadSignedInt(), and ReadValue(). |
|
|
Definition at line 73 of file l_script.h. |
|
|
Definition at line 61 of file l_script.h. Referenced by PC_Directive_include(), PC_EvaluateTokens(), and PC_ReadToken(). |
|
|
Definition at line 57 of file l_script.h. Referenced by AAS_ParseBSPEntities(), BotLoadInitialChat(), BotLoadMatchPieces(), BotLoadReplyChat(), BotLoadSynonyms(), LoadItemConfig(), PC_MergeTokens(), ReadString(), and ReadWeightConfig(). |
|
|
Definition at line 80 of file l_script.h. Referenced by PS_ReadNumber(). |
|
|
Referenced by PC_SetPunctuations(), PS_CreatePunctuationTable(), PS_ReadPunctuation(), and SetScriptPunctuations(). |
|
|
Referenced by LoadScriptFile(), and LoadScriptMemory(). |
|
|
|
Definition at line 1242 of file l_script.c. References script_t::end_p, script, and script_t::script_p.
|
|
|
Definition at line 1413 of file l_script.c. References FreeMemory(), and script. Referenced by AAS_ParseBSPEntities(), FreeSource(), HL_ParseEntities(), PC_DefineFromString(), PC_ReadSourceToken(), Q1_ParseEntities(), Q2_LoadMapFile(), Q2_ParseEntities(), Q3_ParseEntities(), and Sin_ParseEntities(). 01414 {
01415 #ifdef PUNCTABLE
01416 if (script->punctuationtable) FreeMemory(script->punctuationtable);
01417 #endif //PUNCTABLE
01418 FreeMemory(script);
01419 } //end of the function FreeScript
|
Here is the call graph for this function:

|
|
Definition at line 1207 of file l_script.c. References script. 01208 {
01209 return script->flags;
01210 } //end of the function GetScriptFlags
|
|
|
Definition at line 1308 of file l_script.c. 01309 {
01310 #ifdef BOTLIB
01311 fileHandle_t fp;
01312 char pathname[MAX_QPATH];
01313 #else
01314 FILE *fp;
01315 #endif
01316 int length;
01317 void *buffer;
01318 script_t *script;
01319
01320 #ifdef BOTLIB
01321 if (strlen(basefolder))
01322 Com_sprintf(pathname, sizeof(pathname), "%s/%s", basefolder, filename);
01323 else
01324 Com_sprintf(pathname, sizeof(pathname), "%s", filename);
01325 length = botimport.FS_FOpenFile( pathname, &fp, FS_READ );
01326 if (!fp) return NULL;
01327 #else
01328 fp = fopen(filename, "rb");
01329 if (!fp) return NULL;
01330
01331 length = FileLength(fp);
01332 #endif
01333
01334 buffer = GetClearedMemory(sizeof(script_t) + length + 1);
01335 script = (script_t *) buffer;
01336 Com_Memset(script, 0, sizeof(script_t));
01337 strcpy(script->filename, filename);
01338 script->buffer = (char *) buffer + sizeof(script_t);
01339 script->buffer[length] = 0;
01340 script->length = length;
01341 //pointer in script buffer
01342 script->script_p = script->buffer;
01343 //pointer in script buffer before reading token
01344 script->lastscript_p = script->buffer;
01345 //pointer to end of script buffer
01346 script->end_p = &script->buffer[length];
01347 //set if there's a token available in script->token
01348 script->tokenavailable = 0;
01349 //
01350 script->line = 1;
01351 script->lastline = 1;
01352 //
01353 SetScriptPunctuations(script, NULL);
01354 //
01355 #ifdef BOTLIB
01356 botimport.FS_Read(script->buffer, length, fp);
01357 botimport.FS_FCloseFile(fp);
01358 #else
01359 if (fread(script->buffer, length, 1, fp) != 1)
01360 {
01361 FreeMemory(buffer);
01362 script = NULL;
01363 } //end if
01364 fclose(fp);
01365 #endif
01366 //
01367 script->length = COM_Compress(script->buffer);
01368
01369 return script;
01370 } //end of the function LoadScriptFile
|
|
||||||||||||||||
|
Definition at line 1377 of file l_script.c. References script_t::buffer, buffer, Com_Memcpy(), Com_Memset(), script_t::end_p, script_t::filename, GetClearedMemory(), length(), script_t::line, name, NULL, ptr(), script, script_t::script_p, script_t, SetScriptPunctuations(), and strcpy(). Referenced by AAS_ParseBSPEntities(), HL_ParseEntities(), LoadSourceMemory(), PC_DefineFromString(), Q1_ParseEntities(), Q2_ParseEntities(), Q3_ParseEntities(), and Sin_ParseEntities(). 01378 {
01379 void *buffer;
01380 script_t *script;
01381
01382 buffer = GetClearedMemory(sizeof(script_t) + length + 1);
01383 script = (script_t *) buffer;
01384 Com_Memset(script, 0, sizeof(script_t));
01385 strcpy(script->filename, name);
01386 script->buffer = (char *) buffer + sizeof(script_t);
01387 script->buffer[length] = 0;
01388 script->length = length;
01389 //pointer in script buffer
01390 script->script_p = script->buffer;
01391 //pointer in script buffer before reading token
01392 script->lastscript_p = script->buffer;
01393 //pointer to end of script buffer
01394 script->end_p = &script->buffer[length];
01395 //set if there's a token available in script->token
01396 script->tokenavailable = 0;
01397 //
01398 script->line = 1;
01399 script->lastline = 1;
01400 //
01401 SetScriptPunctuations(script, NULL);
01402 //
01403 Com_Memcpy(script->buffer, ptr, length);
01404 //
01405 return script;
01406 } //end of the function LoadScriptMemory
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 1023 of file l_script.c. References PS_ReadToken(), script, script_t::script_p, strcmp(), string(), token_s::string, and token_t. 01024 {
01025 token_t tok;
01026
01027 if (!PS_ReadToken(script, &tok)) return 0;
01028 //if the token is available
01029 if (!strcmp(tok.string, string)) return 1;
01030 //token not available
01031 script->script_p = script->lastscript_p;
01032 return 0;
01033 } //end of the function PS_CheckTokenString
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
Definition at line 1040 of file l_script.c. References Com_Memcpy(), PS_ReadToken(), script, script_t::script_p, token_s::subtype, token, token_t, type, and token_s::type. Referenced by Q2_ParseBrush(). 01041 {
01042 token_t tok;
01043
01044 if (!PS_ReadToken(script, &tok)) return 0;
01045 //if the type matches
01046 if (tok.type == type &&
01047 (tok.subtype & subtype) == subtype)
01048 {
01049 Com_Memcpy(token, &tok, sizeof(token_t));
01050 return 1;
01051 } //end if
01052 //token is not available
01053 script->script_p = script->lastscript_p;
01054 |