diff options
author | Shevek <[email protected]> | 2014-02-05 20:41:44 -0800 |
---|---|---|
committer | Shevek <[email protected]> | 2014-02-05 20:41:44 -0800 |
commit | ec176d2a623f274ad8b0d7962b88a2f7a67446ca (patch) | |
tree | 0ee864d492d997b3e00582dc5dc3c686a7f351f4 /src/main/java/org/anarres/cpp/Preprocessor.java | |
parent | f2b03d6787e89255d68f5398a8a8e0d544f12405 (diff) |
Fix #13: Negative constants are not in the C99 standard.
Diffstat (limited to 'src/main/java/org/anarres/cpp/Preprocessor.java')
-rw-r--r-- | src/main/java/org/anarres/cpp/Preprocessor.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/org/anarres/cpp/Preprocessor.java b/src/main/java/org/anarres/cpp/Preprocessor.java index 05bb4b4..0ad1538 100644 --- a/src/main/java/org/anarres/cpp/Preprocessor.java +++ b/src/main/java/org/anarres/cpp/Preprocessor.java @@ -793,7 +793,7 @@ public class Preprocessor implements Closeable { new Token[]{new Token(NUMBER, orig.getLine(), orig.getColumn(), Integer.toString(orig.getLine()), - new NumericValue(10, false, Integer.toString(orig.getLine())))} + new NumericValue(10, Integer.toString(orig.getLine())))} ), true); } else if (m == __FILE__) { StringBuilder buf = new StringBuilder("\""); @@ -829,7 +829,7 @@ public class Preprocessor implements Closeable { new Token[]{new Token(NUMBER, orig.getLine(), orig.getColumn(), Integer.toString(value), - new NumericValue(10, false, Integer.toString(value)))} + new NumericValue(10, Integer.toString(value)))} ), true); } else { push_source(new MacroTokenSource(m, args), true); @@ -1393,17 +1393,17 @@ public class Preprocessor implements Closeable { + la.getText()); tok = new Token(NUMBER, la.getLine(), la.getColumn(), - "0", new NumericValue(10, false, "0")); + "0", new NumericValue(10, "0")); } else if (macros.containsKey(la.getText())) { // System.out.println("Found macro"); tok = new Token(NUMBER, la.getLine(), la.getColumn(), - "1", new NumericValue(10, false, "1")); + "1", new NumericValue(10, "1")); } else { // System.out.println("Not found macro"); tok = new Token(NUMBER, la.getLine(), la.getColumn(), - "0", new NumericValue(10, false, "0")); + "0", new NumericValue(10, "0")); } if (paren) { |