aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_LSL_tree.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-17 14:15:07 +1000
committerDavid Walter Seikel2012-01-17 14:15:07 +1000
commitf45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97 (patch)
tree5397eb344c6d6ac64071539b59dca5093a8fefc9 /LuaSL/src/LuaSL_LSL_tree.h
parentUse stringshare, and const. (diff)
downloadSledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.zip
SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.gz
SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.bz2
SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.xz
Only need one of each in the value union.
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_tree.h')
-rw-r--r--LuaSL/src/LuaSL_LSL_tree.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h
index 626d005..e179295 100644
--- a/LuaSL/src/LuaSL_LSL_tree.h
+++ b/LuaSL/src/LuaSL_LSL_tree.h
@@ -183,39 +183,20 @@ struct _LSL_Leaf
183 opType basicType; 183 opType basicType;
184 union 184 union
185 { 185 {
186 opType operationValue;
187 LSL_Parenthesis *parenthesis;
188
189 float floatValue; 186 float floatValue;
187 float vectorValue[3];
188 float rotationValue[4];
190 int integerValue; 189 int integerValue;
191 char *keyValue;
192 LSL_Leaf *listValue; 190 LSL_Leaf *listValue;
193 const char *stringValue; 191 const char *stringValue;
194 float vectorValue[3]; 192 opType operationValue;
195 float rotationValue[4]; 193 LSL_Parenthesis *parenthesis;
196
197 LSL_Identifier *identifierValue; 194 LSL_Identifier *identifierValue;
198 LSL_Identifier *variableValue;
199
200 const char *labelValue;
201 LSL_Statement *doValue;
202 LSL_Statement *forValue;
203 LSL_Statement *elseIfValue;
204 LSL_Statement *elseValue;
205 LSL_Statement *ifValue;
206 const char *jumpValue;
207 LSL_Statement *returnValue;
208 const char *stateChangeValue;
209 LSL_Statement *whileValue;
210 LSL_Statement *statementValue; 195 LSL_Statement *statementValue;
211
212 LSL_Block *blockValue; 196 LSL_Block *blockValue;
213 LSL_Identifier *parameterValue;
214 LSL_Function *functionValue; 197 LSL_Function *functionValue;
215 LSL_State *stateValue; 198 LSL_State *stateValue;
216 LSL_Script *scriptValue; 199 LSL_Script *scriptValue;
217
218 const char *unknownValue;
219 } value; 200 } value;
220}; 201};
221 202