1 //-------------------------------------------------------------------------
2 /*
3 Copyright (C) 1997, 2005 - 3D Realms Entertainment
4 
5 This file is part of Shadow Warrior version 1.2
6 
7 Shadow Warrior is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2
10 of the License, or (at your option) any later version.
11 
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 
16 See the GNU General Public License for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 
22 Original Source: 1997 - Frank Maddin and Jim Norwood
23 Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
24 */
25 //-------------------------------------------------------------------------
26 
27 // scriplib.h
28 
29 #define MAXTOKEN    255
30 
31 extern  char    token[MAXTOKEN];
32 extern  char    *scriptbuffer,*script_p,*scriptend_p;
33 extern  int     grabbed;
34 extern  int     scriptline;
35 extern  BOOL    endofscript;
36 
37 
38 BOOL LoadScriptFile (char *filename);
39 void GetToken (BOOL crossline);
40 void UnGetToken (void);
41 BOOL TokenAvailable (void);
42 
43 void DefaultExtension (char *path, char *extension);
44 void DefaultPath (char *path, char *basepath);
45 void StripFilename (char *path);
46 void ExtractFileBase (char *path, char *dest);
47 
48 int ParseNum (char *str);
49 
50