[go: up one dir, main page]

Menu

[904618]: / src / t_comp.h  Maximize  Restore  History

Download this file

80 lines (66 with data), 2.6 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
// -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-
// ----------------------------------------------------------------------------
// :oCCCCOCoc.
// .cCO8OOOOOOOOO8Oo:
// .oOO8OOOOOOOOOOOOOOOCc
// cO8888: .:oOOOOC. TM
// :888888: :CCCc .oOOOOC. ### ### #########
// C888888: .ooo: .C######## ##### ##### ###### ###### ##########
// O888888: .oO### ### ##### ##### ######## ######## #### ###
// C888888: :8O. .C########## ### #### ### ## ## ## ## #### ###
// :8@@@@8: :888c o### ### #### ### ######## ######## ##########
// :8@@@@C C@@@@ oo######## ### ## ### ###### ###### #########
// cO@@@@@@@@@@@@@@@@@Oc0
// :oO8@@@@@@@@@@Oo.
// .oCOOOOOCc. http://remood.org/
// ----------------------------------------------------------------------------
// 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 3
// 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.
// ----------------------------------------------------------------------------
// Legacy Script compiler
#ifndef __T_COMP_H__
#define __T_COMP_H__
/***************
*** INCLUDES ***
***************/
#include "doomtype.h"
#include "doomdef.h"
#include "w_wad.h"
#include "z_zone.h"
/**********************
*** UPPER CONSTANTS ***
**********************/
#define TLS_MAXCODESIZE 65536 // Only 65536 bytes for execution
/* TLS_VariableType_t -- Type of variable available */
typedef enum TLS_VariableType_e
{
TLSVT_NULL, // Nothing
TLSVT_CONST, // Constant
TLSVT_INT, // int
TLSVT_FIXED, // Fixed point
TLSVT_MOBJ, // Map object
TLSVT_STRING, // String
NUMTLSVARIABLETYPES
} TLS_VariableType_t;
/*****************
*** STRUCTURES ***
*****************/
/**********************
*** LOWER CONSTANTS ***
**********************/
/**************
*** GLOBALS ***
**************/
/*****************
*** PROTOTYPES ***
*****************/
bool_t TLS_ClearScripts(void);
bool_t TLS_CompileLump(const WadIndex_t Index);
#endif /* __T_COMP_H__ */