Fix more relative #include paths (mostly header files)
Trac #11408
Signed-off-by: Andrew Lewycky
Signed-off-by: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@171 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/preprocessor/atom.c b/src/compiler/preprocessor/atom.c
index 204fb0d..b0212d7 100644
--- a/src/compiler/preprocessor/atom.c
+++ b/src/compiler/preprocessor/atom.c
@@ -56,7 +56,7 @@
#include <stdio.h>
#include <string.h>
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
#undef malloc
#undef realloc
diff --git a/src/compiler/preprocessor/cpp.c b/src/compiler/preprocessor/cpp.c
index 08e9eab..92e8443 100644
--- a/src/compiler/preprocessor/cpp.c
+++ b/src/compiler/preprocessor/cpp.c
@@ -56,7 +56,7 @@
#include <string.h>
#include <ctype.h>
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
static int CPPif(yystypepp * yylvalpp);
diff --git a/src/compiler/preprocessor/cpp.h b/src/compiler/preprocessor/cpp.h
index 85abbb5..2eb0fb3 100644
--- a/src/compiler/preprocessor/cpp.h
+++ b/src/compiler/preprocessor/cpp.h
@@ -53,8 +53,8 @@
#if !defined(__CPP_H)
#define __CPP_H 1
-#include "parser.h"
-#include "tokens.h"
+#include "compiler/preprocessor/parser.h"
+#include "compiler/preprocessor/tokens.h"
int InitCPP(void);
int FinalCPP(void);
diff --git a/src/compiler/preprocessor/cppstruct.c b/src/compiler/preprocessor/cppstruct.c
index 5144b6c..afbc477 100644
--- a/src/compiler/preprocessor/cppstruct.c
+++ b/src/compiler/preprocessor/cppstruct.c
@@ -53,7 +53,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
CPPStruct *cpp = NULL;
static int refCount = 0;
diff --git a/src/compiler/preprocessor/memory.c b/src/compiler/preprocessor/memory.c
index 1a70231..c41d6d7 100644
--- a/src/compiler/preprocessor/memory.c
+++ b/src/compiler/preprocessor/memory.c
@@ -59,7 +59,7 @@
typedef unsigned int uintptr_t;
#endif
-#include "memory.h"
+#include "compiler/preprocessor/memory.h"
// default alignment and chunksize, if called with 0 arguments
#define CHUNKSIZE (64*1024)
diff --git a/src/compiler/preprocessor/preprocess.h b/src/compiler/preprocessor/preprocess.h
index 323cd1e..3dd605b 100644
--- a/src/compiler/preprocessor/preprocess.h
+++ b/src/compiler/preprocessor/preprocess.h
@@ -47,7 +47,7 @@
NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\****************************************************************************/
-# include "slglobals.h"
+# include "compiler/preprocessor/slglobals.h"
extern CPPStruct *cpp;
int InitCPPStruct(void);
int InitScanner(CPPStruct *cpp);
diff --git a/src/compiler/preprocessor/scanner.c b/src/compiler/preprocessor/scanner.c
index fcdf751..16dfb94 100644
--- a/src/compiler/preprocessor/scanner.c
+++ b/src/compiler/preprocessor/scanner.c
@@ -62,7 +62,7 @@
((*(int *)&(x) & 0x007fffffL)==0000000000L))
#endif
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
typedef struct StringInputSrc {
diff --git a/src/compiler/preprocessor/scanner.h b/src/compiler/preprocessor/scanner.h
index 288a090..c422b3a 100644
--- a/src/compiler/preprocessor/scanner.h
+++ b/src/compiler/preprocessor/scanner.h
@@ -56,7 +56,7 @@
#define MAX_SYMBOL_NAME_LEN 128
#define MAX_STRING_LEN 512
-#include "parser.h"
+#include "compiler/preprocessor/parser.h"
// Not really atom table stuff but needed first...
diff --git a/src/compiler/preprocessor/slglobals.h b/src/compiler/preprocessor/slglobals.h
index 852502f..a535180 100644
--- a/src/compiler/preprocessor/slglobals.h
+++ b/src/compiler/preprocessor/slglobals.h
@@ -65,15 +65,15 @@
#undef CPPC_ENABLE_TOOLS
#define CPPC_ENABLE_TOOLS 1
-#include "memory.h"
-#include "atom.h"
-#include "scanner.h"
-#include "cpp.h"
-#include "tokens.h"
-#include "symbols.h"
-#include "compile.h"
+#include "compiler/preprocessor/memory.h"
+#include "compiler/preprocessor/atom.h"
+#include "compiler/preprocessor/scanner.h"
+#include "compiler/preprocessor/cpp.h"
+#include "compiler/preprocessor/tokens.h"
+#include "compiler/preprocessor/symbols.h"
+#include "compiler/preprocessor/compile.h"
#if !defined(NO_PARSER)
-#include "parser.h"
+#include "compiler/preprocessor/parser.h"
#endif
#if !defined(NULL)
diff --git a/src/compiler/preprocessor/symbols.c b/src/compiler/preprocessor/symbols.c
index d97bae0..5b88e76 100644
--- a/src/compiler/preprocessor/symbols.c
+++ b/src/compiler/preprocessor/symbols.c
@@ -55,7 +55,7 @@
#include <stdio.h>
#include <string.h>
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
///////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////// Symbol Table Variables: ///////////////////////////////////
diff --git a/src/compiler/preprocessor/symbols.h b/src/compiler/preprocessor/symbols.h
index a94adbf..41e0778 100644
--- a/src/compiler/preprocessor/symbols.h
+++ b/src/compiler/preprocessor/symbols.h
@@ -53,7 +53,7 @@
#if !defined(__SYMBOLS_H)
#define __SYMBOLS_H 1
-#include "memory.h"
+#include "compiler/preprocessor/memory.h"
typedef enum symbolkind {
MACRO_S
@@ -85,7 +85,7 @@
// Symbol table is a simple binary tree.
-#include "cpp.h" // to get MacroSymbol def
+#include "compiler/preprocessor/cpp.h" // to get MacroSymbol def
struct Symbol_Rec {
Symbol *left, *right;
diff --git a/src/compiler/preprocessor/tokens.c b/src/compiler/preprocessor/tokens.c
index b508f03..09f56aa 100644
--- a/src/compiler/preprocessor/tokens.c
+++ b/src/compiler/preprocessor/tokens.c
@@ -56,7 +56,7 @@
#include <string.h>
#include <ctype.h>
-#include "slglobals.h"
+#include "compiler/preprocessor/slglobals.h"
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////// Preprocessor and Token Recorder and Playback: ////////////////////////
diff --git a/src/compiler/preprocessor/tokens.h b/src/compiler/preprocessor/tokens.h
index 19938d7..8d7e712 100644
--- a/src/compiler/preprocessor/tokens.h
+++ b/src/compiler/preprocessor/tokens.h
@@ -53,7 +53,7 @@
#if !defined(__TOKENS_H)
#define __TOKENS_H 1
-#include "parser.h"
+#include "compiler/preprocessor/parser.h"
#define EOF_SY (-1)