Permalink
Browse files

input, cpp: merged source dumps

  • Loading branch information...
1 parent 9330ef4 commit 865d7c984bd3c1315924aab369acb0ff752a656a @jgottula committed Oct 6, 2012
Showing with 5 additions and 9 deletions.
  1. +5 −0 src/cpp.d
  2. +0 −9 src/input.d
View
5 src/cpp.d
@@ -43,6 +43,11 @@ void preProcess(in string before, out string after) {
after = to!string(buffer);
+ stderr.write("--------------------------------- SOURCE DUMP " ~
+ "----------------------------------\n");
+ foreach (ulong num, line; before.splitLines()) {
+ stderr.writef("%3d|%s\n", num + 1, line);
+ }
stderr.write("---------------------------------- CPP OUTPUT " ~
"----------------------------------\n");
foreach (ulong num, line; after.splitLines()) {
View
9 src/input.d
@@ -10,7 +10,6 @@ import std.conv;
import std.exception;
import std.file;
import std.stdio;
-import std.string;
/**
@@ -53,12 +52,4 @@ void readSource(in string inputPath, out string fileContents) {
inputFile.rawRead(buffer);
fileContents = to!string(buffer);
-
- stderr.write("--------------------------------- SOURCE DUMP " ~
- "----------------------------------\n");
- foreach (ulong num, line; fileContents.splitLines()) {
- stderr.writef("%3d|%s\n", num + 1, line);
- }
- stderr.write("----------------------------------------------" ~
- "----------------------------------\n");
}

0 comments on commit 865d7c9

Please sign in to comment.