summaryrefslogtreecommitdiff
path: root/indra/lscript
diff options
context:
space:
mode:
Diffstat (limited to 'indra/lscript')
-rw-r--r--indra/lscript/lscript_alloc.h3
-rw-r--r--indra/lscript/lscript_compile/indra.l8
-rw-r--r--indra/lscript/lscript_compile/indra.y5
-rw-r--r--indra/lscript/lscript_compile/lscript_error.h3
-rw-r--r--indra/lscript/lscript_compile/lscript_resource.h2
-rw-r--r--indra/lscript/lscript_compile/lscript_tree.h2
-rw-r--r--indra/lscript/lscript_execute.h1
-rw-r--r--indra/lscript/lscript_library.h1
-rw-r--r--indra/lscript/lscript_library/lscript_alloc.cpp2
9 files changed, 9 insertions, 18 deletions
diff --git a/indra/lscript/lscript_alloc.h b/indra/lscript/lscript_alloc.h
index c9eca7cd81..827156a9e3 100644
--- a/indra/lscript/lscript_alloc.h
+++ b/indra/lscript/lscript_alloc.h
@@ -12,11 +12,8 @@
// Under gcc 2.9, the manual is unclear if comments can appear above #ifndef
// Under gcc 3, the manual explicitly states comments can appear above the #ifndef
-#include "stdtypes.h"
#include "lscript_byteconvert.h"
#include "lscript_library.h"
-#include "llrand.h"
-#include <stdio.h>
void reset_hp_to_safe_spot(const U8 *buffer);
diff --git a/indra/lscript/lscript_compile/indra.l b/indra/lscript/lscript_compile/indra.l
index a8fbcbe260..ee3492b071 100644
--- a/indra/lscript/lscript_compile/indra.l
+++ b/indra/lscript/lscript_compile/indra.l
@@ -9,13 +9,15 @@ FS (f|F)
%p 5000
%{
-#include <stdio.h>
-#include "stdtypes.h"
+#include "linden_common.h"
+// Deal with the fact that lex/yacc generates unreachable code
+#ifdef LL_WINDOWS
+#pragma warning (disable : 4702) // warning C4702: unreachable code
+#endif // LL_WINDOWS
#include "llmath.h"
#include "lscript_tree.h"
#include "lscript_typecheck.h"
#include "lscript_resource.h"
-#include "llfile.h"
#if LL_WINDOWS
#include "ytab.h"
#else
diff --git a/indra/lscript/lscript_compile/indra.y b/indra/lscript/lscript_compile/indra.y
index 56f40c974c..d10cbfedba 100644
--- a/indra/lscript/lscript_compile/indra.y
+++ b/indra/lscript/lscript_compile/indra.y
@@ -1,7 +1,7 @@
%{
- #include "stdtypes.h"
+ #include "linden_common.h"
#include "lscript_tree.h"
-
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -16,6 +16,7 @@
#endif
#ifdef LL_WINDOWS
+ #pragma warning (disable : 4702) // warning C4702: unreachable code
#pragma warning( disable : 4065 ) // warning: switch statement contains 'default' but no 'case' labels
#endif
diff --git a/indra/lscript/lscript_compile/lscript_error.h b/indra/lscript/lscript_compile/lscript_error.h
index 4ad7b60dd8..9e76b9a4d7 100644
--- a/indra/lscript/lscript_compile/lscript_error.h
+++ b/indra/lscript/lscript_compile/lscript_error.h
@@ -9,11 +9,8 @@
#ifndef LL_LSCRIPT_ERROR_H
#define LL_LSCRIPT_ERROR_H
-#include <stdio.h>
-#include "stdtypes.h"
#include "lscript_scope.h"
-
typedef enum e_lscript_compile_pass
{
LSCP_INVALID,
diff --git a/indra/lscript/lscript_compile/lscript_resource.h b/indra/lscript/lscript_compile/lscript_resource.h
index b0a38b81fb..36de4786c6 100644
--- a/indra/lscript/lscript_compile/lscript_resource.h
+++ b/indra/lscript/lscript_compile/lscript_resource.h
@@ -9,8 +9,6 @@
#ifndef LL_LSCRIPT_RESOURCE_H
#define LL_LSCRIPT_RESOURCE_H
-#include <stdio.h>
-#include "stdtypes.h"
#include "lscript_scope.h"
void init_temp_jumps();
diff --git a/indra/lscript/lscript_compile/lscript_tree.h b/indra/lscript/lscript_compile/lscript_tree.h
index d0e8bcf389..a1fe4f4d09 100644
--- a/indra/lscript/lscript_compile/lscript_tree.h
+++ b/indra/lscript/lscript_compile/lscript_tree.h
@@ -9,8 +9,6 @@
#ifndef LL_LSCRIPT_TREE_H
#define LL_LSCRIPT_TREE_H
-#include <stdio.h>
-#include "stdtypes.h"
#include "v3math.h"
#include "llquaternion.h"
#include "linked_lists.h"
diff --git a/indra/lscript/lscript_execute.h b/indra/lscript/lscript_execute.h
index 1c2952f5ae..fe3784f19f 100644
--- a/indra/lscript/lscript_execute.h
+++ b/indra/lscript/lscript_execute.h
@@ -9,7 +9,6 @@
#ifndef LL_LSCRIPT_EXECUTE_H
#define LL_LSCRIPT_EXECUTE_H
-#include <stdio.h>
#include "lscript_byteconvert.h"
#include "linked_lists.h"
#include "lscript_library.h"
diff --git a/indra/lscript/lscript_library.h b/indra/lscript/lscript_library.h
index b5fdfc7a22..c7544044cc 100644
--- a/indra/lscript/lscript_library.h
+++ b/indra/lscript/lscript_library.h
@@ -14,7 +14,6 @@
#include "llquaternion.h"
#include "lluuid.h"
#include "lscript_byteconvert.h"
-#include <stdio.h>
class LLScriptLibData;
diff --git a/indra/lscript/lscript_library/lscript_alloc.cpp b/indra/lscript/lscript_library/lscript_alloc.cpp
index d98af1ddf3..b80f74870b 100644
--- a/indra/lscript/lscript_library/lscript_alloc.cpp
+++ b/indra/lscript/lscript_library/lscript_alloc.cpp
@@ -11,8 +11,8 @@
// Under gcc 3, the manual explicitly states comments can appear above the #ifndef
#include "linden_common.h"
-
#include "lscript_alloc.h"
+#include "llrand.h"
// supported data types