diff options
author | David Walter Seikel | 2013-08-30 21:42:45 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-08-30 21:42:45 +1000 |
commit | 56a1de48ee43bfacbd3ef2859f392082a26bc814 (patch) | |
tree | 03bd6092dab42985e536b84d2f311a3a12e4edb4 /linden/indra/lscript/lscript_compile | |
parent | Added a licensing note about gpg.vs, as used to build OTR on Windows. (diff) | |
parent | Merge remote-tracking branch 'origin/next' into WL-refactor (diff) | |
download | meta-impy-56a1de48ee43bfacbd3ef2859f392082a26bc814.zip meta-impy-56a1de48ee43bfacbd3ef2859f392082a26bc814.tar.gz meta-impy-56a1de48ee43bfacbd3ef2859f392082a26bc814.tar.bz2 meta-impy-56a1de48ee43bfacbd3ef2859f392082a26bc814.tar.xz |
Merge remote-tracking branch 'imprudence/next' into next
Unless otherwise stated, Imprudence changes accepted. The three images seem to be the same.
Conflicts:
.gitignore
linden/indra/develop.py
linden/indra/llcommon/llsdserialize_xml.cpp
linden/indra/newview/CMakeLists.txt
Manually combined MOAP, OTR, and WL changes from both.
linden/indra/newview/app_settings/default_grids.xml
Manually merged the grid collection.
Also updated IG info.
linden/indra/newview/hippoupdate.cpp
linden/indra/newview/llettherebelight.cpp
Just used the Imprudence copy.
linden/indra/newview/llviewermessage.cpp
Keep unbranding.
linden/indra/newview/llvoavatar.cpp
Manually merge client tags.
linden/indra/newview/res/viewerRes.rc
Manually merge version from Impy.
linden/indra/newview/skins/dark/colors_base.xml
Keep unbranding.
linden/indra/newview/skins/default/html/unabletoconnect.png
linden/indra/newview/skins/default/textures/icon_top_pick.tga
linden/indra/newview/skins/default/xui/en-us/floater_about.xml
Manual merging of contributors.
linden/indra/newview/skins/gemini/colors_base.xml
Keep unbranding.
linden/indra/newview/skins/gemini/textures/icon_top_pick.tga
linden/indra/newview/viewer_manifest.py
Manually merged boost, gstreamer, OTR, and name.
linden/indra/newview/viewerinfo.cpp
Manually merge the comment.
Diffstat (limited to 'linden/indra/lscript/lscript_compile')
-rw-r--r-- | linden/indra/lscript/lscript_compile/CMakeLists.txt | 6 | ||||
-rw-r--r-- | linden/indra/lscript/lscript_compile/indra.l | 24 |
2 files changed, 20 insertions, 10 deletions
diff --git a/linden/indra/lscript/lscript_compile/CMakeLists.txt b/linden/indra/lscript/lscript_compile/CMakeLists.txt index 252085b..f6d5212 100644 --- a/linden/indra/lscript/lscript_compile/CMakeLists.txt +++ b/linden/indra/lscript/lscript_compile/CMakeLists.txt | |||
@@ -103,7 +103,7 @@ if (WINDOWS) | |||
103 | PROPERTIES COMPILE_FLAGS /DYY_NO_UNISTD_H) | 103 | PROPERTIES COMPILE_FLAGS /DYY_NO_UNISTD_H) |
104 | endif (WINDOWS) | 104 | endif (WINDOWS) |
105 | 105 | ||
106 | if (WINDOWS) | 106 | if (WINDOWS AND NOT CYGWIN) |
107 | get_filename_component(M4_PATH ${M4} PATH) | 107 | get_filename_component(M4_PATH ${M4} PATH) |
108 | add_custom_command( | 108 | add_custom_command( |
109 | OUTPUT | 109 | OUTPUT |
@@ -118,7 +118,7 @@ if (WINDOWS) | |||
118 | ${CMAKE_CURRENT_SOURCE_DIR}/indra.y | 118 | ${CMAKE_CURRENT_SOURCE_DIR}/indra.y |
119 | ) | 119 | ) |
120 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/windows) | 120 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}/windows) |
121 | else (WINDOWS) | 121 | else (WINDOWS AND NOT CYGWIN) |
122 | add_custom_command( | 122 | add_custom_command( |
123 | OUTPUT | 123 | OUTPUT |
124 | ${CMAKE_CURRENT_BINARY_DIR}/indra.y.cpp | 124 | ${CMAKE_CURRENT_BINARY_DIR}/indra.y.cpp |
@@ -131,7 +131,7 @@ else (WINDOWS) | |||
131 | DEPENDS | 131 | DEPENDS |
132 | ${CMAKE_CURRENT_SOURCE_DIR}/indra.y | 132 | ${CMAKE_CURRENT_SOURCE_DIR}/indra.y |
133 | ) | 133 | ) |
134 | endif (WINDOWS) | 134 | endif (WINDOWS AND NOT CYGWIN) |
135 | 135 | ||
136 | if (DARWIN) | 136 | if (DARWIN) |
137 | # Mac OS X 10.4 compatibility | 137 | # Mac OS X 10.4 compatibility |
diff --git a/linden/indra/lscript/lscript_compile/indra.l b/linden/indra/lscript/lscript_compile/indra.l index 584087e..7f4cdc5 100644 --- a/linden/indra/lscript/lscript_compile/indra.l +++ b/linden/indra/lscript/lscript_compile/indra.l | |||
@@ -53,9 +53,16 @@ void parse_string(); | |||
53 | #define ECHO do { } while (0) | 53 | #define ECHO do { } while (0) |
54 | 54 | ||
55 | #if defined(__cplusplus) | 55 | #if defined(__cplusplus) |
56 | extern "C" { int yylex( void ); } | 56 | extern "C" { |
57 | extern "C" { int yyparse( void ); } | 57 | #endif |
58 | extern "C" { int yyerror(const char *fmt, ...); } | 58 | int yyerror(const char *fmt, ...); |
59 | int yylex( void ); | ||
60 | // Windows defines this in indra.y.hpp, which is included above, and defines it differently. | ||
61 | #ifndef LL_WINDOWS | ||
62 | int yyparse( void ); | ||
63 | #endif | ||
64 | #if defined(__cplusplus) | ||
65 | } | ||
59 | #endif | 66 | #endif |
60 | 67 | ||
61 | %} | 68 | %} |
@@ -722,9 +729,6 @@ L?\"(\\.|[^\\"])*\" { parse_string(); count(); return(STRING_CONSTANT); } | |||
722 | LLScriptAllocationManager *gAllocationManager; | 729 | LLScriptAllocationManager *gAllocationManager; |
723 | LLScriptScript *gScriptp; | 730 | LLScriptScript *gScriptp; |
724 | 731 | ||
725 | // Prototype for the yacc parser entry point | ||
726 | int yyparse(void); | ||
727 | |||
728 | int yyerror(const char *fmt, ...) | 732 | int yyerror(const char *fmt, ...) |
729 | { | 733 | { |
730 | gErrorToText.writeError(yyout, gLine, gColumn, LSERROR_SYNTAX_ERROR); | 734 | gErrorToText.writeError(yyout, gLine, gColumn, LSERROR_SYNTAX_ERROR); |
@@ -760,7 +764,13 @@ BOOL lscript_compile(const char* src_filename, const char* dst_filename, | |||
760 | 764 | ||
761 | yyrestart(yyin); | 765 | yyrestart(yyin); |
762 | 766 | ||
763 | b_parse_ok = !yyparse(); | 767 | // TODO - Try to fix this, but for now, no compiling LSL for Windows in SL. |
768 | // Actually, this seems to not actually be needed anymore? | ||
769 | // I thought it was needed to support ancient pre Mono LSL scripts, which only work in SL anyway, but they still work fine. Perhaps SL fixed it server side? | ||
770 | // If that's the case, we don't need any of this stuff. | ||
771 | #ifndef LL_WINDOWS | ||
772 | // b_parse_ok = !yyparse(); | ||
773 | #endif | ||
764 | 774 | ||
765 | if (b_parse_ok) | 775 | if (b_parse_ok) |
766 | { | 776 | { |