glcpp: Output to a buffer and error log rather than directly printing.

In the standalone case, simply print the buffers when done.
This commit is contained in:
Kenneth Graunke
2010-06-16 11:57:48 -07:00
parent 0656f6b875
commit 4c8a1af811
3 changed files with 60 additions and 48 deletions

View File

@@ -35,6 +35,9 @@ main (void)
ret = glcpp_parser_parse (parser);
printf("%s", parser->output);
fprintf(stderr, "%s", parser->errors);
glcpp_parser_destroy (parser);
return ret;