commit | 4c8a1af8117ac8e69883c6ef88d3f3b073dc6e0a | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Wed Jun 16 11:57:48 2010 -0700 |
committer | Kenneth Graunke <kenneth@whitecape.org> | Mon Jun 21 11:25:50 2010 -0700 |
tree | 45e494f6ba74a7b3fa91c3bd807a764136ada61c | |
parent | 0656f6b8750fe6139f74914bfe4e2c394db594e4 [diff] [blame] |
glcpp: Output to a buffer and error log rather than directly printing. In the standalone case, simply print the buffers when done.
diff --git a/glcpp/glcpp.c b/glcpp/glcpp.c index fcdc4ed..d204eee 100644 --- a/glcpp/glcpp.c +++ b/glcpp/glcpp.c
@@ -35,6 +35,9 @@ ret = glcpp_parser_parse (parser); + printf("%s", parser->output); + fprintf(stderr, "%s", parser->errors); + glcpp_parser_destroy (parser); return ret;