aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorShevek <[email protected]>2017-05-15 11:50:41 -0700
committerShevek <[email protected]>2017-05-15 11:50:41 -0700
commit547134e1cbb29bb51a75781f559243fcea8f3860 (patch)
tree4c970763cf5d71ed5a60062478f39bce7ef18c1f /src/main/java/org
parent6f8e7f6010cf1502110830c2c9d979ba59feace7 (diff)
InputLexerSource: Don't force buffering of the reader.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/anarres/cpp/InputLexerSource.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/anarres/cpp/InputLexerSource.java b/src/main/java/org/anarres/cpp/InputLexerSource.java
index 62612d7..8064a9a 100644
--- a/src/main/java/org/anarres/cpp/InputLexerSource.java
+++ b/src/main/java/org/anarres/cpp/InputLexerSource.java
@@ -45,8 +45,12 @@ public class InputLexerSource extends LexerSource {
this(new InputStreamReader(input, charset));
}
+ public InputLexerSource(@Nonnull Reader input, boolean ppvalid) {
+ super(input, true);
+ }
+
public InputLexerSource(@Nonnull Reader input) {
- super(toBufferedReader(input), true);
+ this(input, true);
}
@Override