aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/anarres/cpp/Main.java
diff options
context:
space:
mode:
authorShevek <[email protected]>2008-06-13 21:33:42 +0000
committerShevek <[email protected]>2008-06-13 21:33:42 +0000
commit93808fc91f990dbc17a2bc2b350552d9dde89692 (patch)
tree508a92ebea86484622da1dff249fd118889f8bce /src/java/org/anarres/cpp/Main.java
parent4528d72b75208f21f8d5e7d72991b7d34b4e46cf (diff)
implement Feature.CSYNTAX, Feature.KEEPCOMMENTS, etc
Diffstat (limited to 'src/java/org/anarres/cpp/Main.java')
-rw-r--r--src/java/org/anarres/cpp/Main.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/java/org/anarres/cpp/Main.java b/src/java/org/anarres/cpp/Main.java
index b7e11df..0b97f4e 100644
--- a/src/java/org/anarres/cpp/Main.java
+++ b/src/java/org/anarres/cpp/Main.java
@@ -101,8 +101,9 @@ public class Main {
pp.addFeature(Feature.LINEMARKERS);
pp.addWarning(Warning.IMPORT);
pp.setListener(new PreprocessorListener());
-
pp.addMacro("__JCPP__");
+ pp.getSystemIncludePath().add("/usr/local/include");
+ pp.getSystemIncludePath().add("/usr/include");
GETOPT: while ((c = g.getopt()) != -1) {
switch (c) {
@@ -157,11 +158,6 @@ public class Main {
}
}
- List<String> path = pp.getSystemIncludePath();
- path.add("/usr/local/include");
- path.add("/usr/include");
- // path.add("/usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include");
-
for (int i = g.getOptind(); i < args.length; i++)
pp.addInput(new FileLexerSource(new File(args[i])));