summaryrefslogtreecommitdiff
path: root/tools/ward.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-23 02:31:19 (GMT)
committerJohn Denker <jsd@av8n.com>2012-11-23 02:31:19 (GMT)
commit9d13c14fe5ad5dff32c09b1c5c13af9518b3e727 (patch)
treed6396cc9e5c38fb27a4a215792d816acc72897a0 /tools/ward.c
parent33981cf1aba48b7589fbdc685eeaa8a52ece8c4f (diff)
separate parsing headers from dumping headers
Diffstat (limited to 'tools/ward.c')
-rw-r--r--tools/ward.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ward.c b/tools/ward.c
index 19d9d02..b6f5a15 100644
--- a/tools/ward.c
+++ b/tools/ward.c
@@ -114,8 +114,9 @@ int main(int _argc, const char** _argv){
exit(ex_usage);
}
- int rslt = mysk.headers(cin, cout);
+ int rslt = mysk.headers(cin);
if (rslt) return rslt;
+ mysk.dump_headers(cout);
// Headers are done.
// Do some early-stage thinking.