aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2003-03-23 00:12:56 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 20:59:36 -0700
commit40c1647b14dae3b3172206e9028a78fb83c03ff6 (patch)
tree08a6eed1245d804c5a38497d409ddc4cd281bf40 /test-lexing.c
parentFix up more stupidities in the type parsing. It might even be getting close (diff)
downloadsparse-40c1647b14dae3b3172206e9028a78fb83c03ff6.tar.gz
sparse-40c1647b14dae3b3172206e9028a78fb83c03ff6.tar.bz2
sparse-40c1647b14dae3b3172206e9028a78fb83c03ff6.zip
Move includepath[] array out of pre-processor, since we want
to change it from the callers..
Diffstat (limited to 'test-lexing.c')
-rw-r--r--test-lexing.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-lexing.c b/test-lexing.c
index 1cd82c9..0886001 100644
--- a/test-lexing.c
+++ b/test-lexing.c
@@ -15,6 +15,19 @@
#include "token.h"
#include "symbol.h"
+char *includepath[] = {
+ "/usr/lib/gcc-lib/i386-redhat-linux/3.2.1/include/",
+#if 1
+ "/home/torvalds/v2.5/linux/include/",
+#else
+ "/usr/include/",
+ "/usr/local/include/",
+#endif
+ "",
+ NULL
+};
+
+
int main(int argc, char **argv)
{
int fd = open(argv[1], O_RDONLY);