diff options
Diffstat (limited to 'LuaSL/src/LuaSL_LSL_yaccer.y')
-rw-r--r-- | LuaSL/src/LuaSL_LSL_yaccer.y | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/LuaSL/src/LuaSL_LSL_yaccer.y b/LuaSL/src/LuaSL_LSL_yaccer.y index 1583b0b..8cc433d 100644 --- a/LuaSL/src/LuaSL_LSL_yaccer.y +++ b/LuaSL/src/LuaSL_LSL_yaccer.y | |||
@@ -1,28 +1,21 @@ | |||
1 | %{ | 1 | %{ |
2 | #include "linden_common.h" | ||
3 | #include "lscript_tree.h" | ||
4 | 2 | ||
5 | #ifdef __cplusplus | 3 | #include "LuaSL_LSL_tree.h" |
6 | extern "C" { | ||
7 | #endif | ||
8 | 4 | ||
9 | int yylex(void); | 5 | //int yylex(void); |
10 | int yyparse( void ); | 6 | //int yyparse( void ); |
11 | int yyerror(const char *fmt, ...); | 7 | //int yyerror(const char *fmt, ...); |
12 | 8 | ||
13 | #if LL_LINUX | 9 | #if LL_LINUX |
14 | // broken yacc codegen... --ryan. | 10 | // broken yacc codegen... --ryan. |
15 | #define getenv getenv_workaround | 11 | #define getenv getenv_workaround |
16 | #endif | 12 | #endif |
17 | 13 | ||
18 | #ifdef LL_WINDOWS | 14 | #ifdef LL_WINDOWS |
19 | #pragma warning (disable : 4702) // warning C4702: unreachable code | 15 | #pragma warning (disable : 4702) // warning C4702: unreachable code |
20 | #pragma warning( disable : 4065 ) // warning: switch statement contains 'default' but no 'case' labels | 16 | #pragma warning( disable : 4065 ) // warning: switch statement contains 'default' but no 'case' labels |
21 | #endif | 17 | #endif |
22 | 18 | ||
23 | #ifdef __cplusplus | ||
24 | } | ||
25 | #endif | ||
26 | %} | 19 | %} |
27 | 20 | ||
28 | 21 | ||