projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19a3597
)
fix print ast and print fluffy
author
Matthias Braun
<matze@braunis.de>
Tue, 4 Dec 2007 14:26:26 +0000
(14:26 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 4 Dec 2007 14:26:26 +0000
(14:26 +0000)
[r18597]
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index
60b0b44
..
a05fbdc
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-430,6
+430,9
@@
int main(int argc, char **argv)
case PrintAst:
case PrintFluffy:
case LexTest:
+ if(outname == NULL)
+ outname = "-";
+ break;
case ParseOnly:
break;
case Compile:
@@
-492,11
+495,14
@@
int main(int argc, char **argv)
return 1;
if(mode == PrintAst) {
+ type_set_output(out);
ast_set_output(out);
print_ast(unit);
return 0;
}
if(mode == PrintFluffy) {
+ type_set_output(out);
+ ast_set_output(out);
write_fluffy_decls(out, unit);
}