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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user