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:
parent
0656f6b875
commit
4c8a1af811
3 changed files with 60 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue