/*
===========================================================================
Copyright (C) 1997-2006 Id Software, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
===========================================================================
*/
// scriplib.c
/*
=============================================================================
PARSING STUFF
=============================================================================
*/
typedef struct
script_t;
script_t scriptstack;
script_t *script;
int32_t scriptline;
char token;
qboolean endofscript;
qboolean tokenready; // only true if UnGetToken was just called
// qb: brush info from AA tools
char brush_info = "No brushes processed yet. Look near beginning of map";
static int32_t brush_begin = 1;
void
void
/*
==============
AddScriptToStack
==============
*/
void
/*
==============
LoadScriptFile
==============
*/
void
/*
==============
ParseFromMemory
==============
*/
void
/*
==============
UnGetToken
Signals that the current token was not used, and should be reported
for the next GetToken. Note that
GetToken (true);
UnGetToken ();
GetToken (false);
could cross a line boundary.
==============
*/
void
qboolean
/*
==============
GetToken
==============
*/
qboolean
/*
==============
TokenAvailable
Returns true if there is another token on the line
==============
*/
qboolean