mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 07:12:50 -06:00
remove the read and write modules from libgu. this simplifies the i/o layer
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include <pgf/pgf.h>
|
||||
#include <pgf/data.h>
|
||||
|
||||
#include <gu/dump.h>
|
||||
#include <gu/file.h>
|
||||
#include <gu/utf8.h>
|
||||
|
||||
@@ -30,9 +29,8 @@ int main(int argc, char* argv[]) {
|
||||
goto fail_read;
|
||||
}
|
||||
GuOut* out = gu_file_out(stdout, pool);
|
||||
GuWriter* wtr = gu_new_utf8_writer(out, pool);
|
||||
pgf_print(pgf, wtr, err);
|
||||
gu_writer_flush(wtr, err);
|
||||
pgf_print(pgf, out, err);
|
||||
gu_out_flush(out, err);
|
||||
fail_read:
|
||||
gu_pool_free(pool);
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user