diff options
author | David Walter Seikel | 2012-01-17 14:15:07 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 14:15:07 +1000 |
commit | f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97 (patch) | |
tree | 5397eb344c6d6ac64071539b59dca5093a8fefc9 /LuaSL/src/LuaSL_compile.c | |
parent | Use stringshare, and const. (diff) | |
download | SledjHamr-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 '')
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index e54e0e6..3a9a6c4 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -298,7 +298,7 @@ LSL_Leaf *addParameter(LSL_Leaf *type, LSL_Leaf *identifier) | |||
298 | if ( (identifier) && (result)) | 298 | if ( (identifier) && (result)) |
299 | { | 299 | { |
300 | result->name = identifier->value.stringValue; | 300 | result->name = identifier->value.stringValue; |
301 | identifier->value.variableValue = result; | 301 | identifier->value.identifierValue = result; |
302 | identifier->token = tokens[LSL_PARAMETER - lowestToken]; | 302 | identifier->token = tokens[LSL_PARAMETER - lowestToken]; |
303 | identifier->left = type; | 303 | identifier->left = type; |
304 | if (type) | 304 | if (type) |
@@ -436,7 +436,7 @@ LSL_Leaf *addVariable(LuaSL_compiler *compiler, LSL_Leaf *type, LSL_Leaf *identi | |||
436 | if ( (identifier) && (result)) | 436 | if ( (identifier) && (result)) |
437 | { | 437 | { |
438 | result->name = identifier->value.stringValue; | 438 | result->name = identifier->value.stringValue; |
439 | identifier->value.variableValue = result; | 439 | identifier->value.identifierValue = result; |
440 | identifier->left = type; | 440 | identifier->left = type; |
441 | identifier->right = assignment; | 441 | identifier->right = assignment; |
442 | if (assignment) | 442 | if (assignment) |
@@ -822,7 +822,7 @@ static void outputIntegerToken(FILE *file, outputMode mode, LSL_Leaf *content) | |||
822 | static void outputParameterToken(FILE *file, outputMode mode, LSL_Leaf *content) | 822 | static void outputParameterToken(FILE *file, outputMode mode, LSL_Leaf *content) |
823 | { | 823 | { |
824 | if (content) | 824 | if (content) |
825 | fprintf(file, "%s", content->value.parameterValue->name); | 825 | fprintf(file, "%s", content->value.identifierValue->name); |
826 | } | 826 | } |
827 | 827 | ||
828 | static void outputParameterListToken(FILE *file, outputMode mode, LSL_Leaf *content) | 828 | static void outputParameterListToken(FILE *file, outputMode mode, LSL_Leaf *content) |
@@ -866,7 +866,7 @@ static void outputStatementToken(FILE *file, outputMode mode, LSL_Leaf *content) | |||
866 | static void outputVariableToken(FILE *file, outputMode mode, LSL_Leaf *content) | 866 | static void outputVariableToken(FILE *file, outputMode mode, LSL_Leaf *content) |
867 | { | 867 | { |
868 | if (content) | 868 | if (content) |
869 | fprintf(file, "%s", content->value.variableValue->name); | 869 | fprintf(file, "%s", content->value.identifierValue->name); |
870 | } | 870 | } |
871 | 871 | ||
872 | static void doneParsing(LuaSL_compiler *compiler) | 872 | static void doneParsing(LuaSL_compiler *compiler) |