mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
a22c2224e0
Meaning some leaks have been plugged, and some useful functions added: loading a file (avoids polluting progs memory), setting the single character lexeme string, and getting the line number.
15 lines
657 B
R
15 lines
657 B
R
#include <qfile.h>
|
|
#include <script.h>
|
|
|
|
script_t Script_New (void) = #0;
|
|
void Script_Delete (script_t script) = #0;
|
|
// returns the token string
|
|
string Script_Start (script_t script, string file, string data) = #0;
|
|
string Script_FromFile (script_t script, string filename, QFile file) = #0;
|
|
int Script_TokenAvailable (script_t script, int crossline) = #0;
|
|
int Script_GetToken (script_t script, int crossline) = #0;
|
|
void Script_UngetToken (script_t script) = #0;
|
|
string Script_Error (script_t script) = #0;
|
|
int Script_NoQuoteLines (script_t script) = #0;
|
|
void Script_SetSingle (script_t script, string single) = #0;
|
|
int Script_GetLine (script_t script) = #0;
|