mirror of https://github.com/aamine/cbc
r4969@macbookpro: aamine | 2009-05-26 12:58:04 +0900
* net/loveruby/cflat/compiler/Compiler.java (writeFile): treat "-" as stdout. git-svn-id: file:///Users/aamine/c/gitwork/public/cbc/trunk@4257 1b9489fe-b721-0410-924e-b54b9192deb8
This commit is contained in:
parent
e593745d2e
commit
d50cb63ee5
|
|
@ -1,3 +1,8 @@
|
|||
Tue May 26 12:57:48 2009 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* net/loveruby/cflat/compiler/Compiler.java (writeFile): treat "-"
|
||||
as stdout.
|
||||
|
||||
Tue May 26 12:48:40 2009 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* net/loveruby/cflat/compiler/Compiler.java (dumpAsm): do not
|
||||
|
|
|
|||
|
|
@ -168,8 +168,11 @@ public class Compiler {
|
|||
opts.ldArgs(), opts.soFileName(), opts.ldOptions());
|
||||
}
|
||||
|
||||
private void writeFile(String path, String str)
|
||||
throws FileException {
|
||||
private void writeFile(String path, String str) throws FileException {
|
||||
if (path.equals("-")) {
|
||||
System.out.print(str);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
BufferedWriter f = new BufferedWriter(
|
||||
new OutputStreamWriter(new FileOutputStream(path)));
|
||||
|
|
|
|||
Loading…
Reference in New Issue