diff options
author | Shevek <[email protected]> | 2008-05-18 09:39:41 +0000 |
---|---|---|
committer | Shevek <[email protected]> | 2008-05-18 09:39:41 +0000 |
commit | ddc3fa5b3b342a48898895910e98c092cd8e2ffa (patch) | |
tree | f10273b5f52b12955ea4794a967f177b4176954e /src | |
parent | 22108df72646f5a7766bdbf7b2eaa3da7a382957 (diff) |
minor patches for 1.2.1 release
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/anarres/cpp/LexerSource.java | 1 | ||||
-rw-r--r-- | src/java/org/anarres/cpp/Main.java | 5 | ||||
-rw-r--r-- | src/java/org/anarres/cpp/Preprocessor.java | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/java/org/anarres/cpp/LexerSource.java b/src/java/org/anarres/cpp/LexerSource.java index 11a8538..6bb4220 100644 --- a/src/java/org/anarres/cpp/LexerSource.java +++ b/src/java/org/anarres/cpp/LexerSource.java @@ -84,6 +84,7 @@ public class LexerSource extends Source { return column; } + @Override /* pp */ boolean isNumbered() { return true; } diff --git a/src/java/org/anarres/cpp/Main.java b/src/java/org/anarres/cpp/Main.java index e592169..7ca260c 100644 --- a/src/java/org/anarres/cpp/Main.java +++ b/src/java/org/anarres/cpp/Main.java @@ -97,7 +97,10 @@ public class Main { int idx; Preprocessor pp = new Preprocessor(); + pp.addFeature(Feature.DIGRAPHS); + pp.addFeature(Feature.TRIGRAPHS); pp.addFeature(Feature.LINEMARKERS); + pp.setListener(new PreprocessorListener()); pp.addMacro("__JCPP__"); @@ -157,7 +160,7 @@ 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"); + // 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]))); diff --git a/src/java/org/anarres/cpp/Preprocessor.java b/src/java/org/anarres/cpp/Preprocessor.java index 9c3bfa8..9e32973 100644 --- a/src/java/org/anarres/cpp/Preprocessor.java +++ b/src/java/org/anarres/cpp/Preprocessor.java @@ -70,10 +70,7 @@ public class Preprocessor { this.quoteincludepath = new ArrayList<String>(); this.sysincludepath = new ArrayList<String>(); this.features = EnumSet.noneOf(Feature.class); - features.add(Feature.DIGRAPHS); - features.add(Feature.TRIGRAPHS); this.warnings = EnumSet.noneOf(Warning.class); - setListener(new PreprocessorListener()); } public Preprocessor(Source initial) { |