optimize the reading of strings in the grammar loader.

This commit is contained in:
kr.angelov
2013-09-13 08:28:20 +00:00
parent 4d8ed02f6d
commit 2e8f055164
6 changed files with 96 additions and 30 deletions

View File

@@ -34,6 +34,12 @@ gu_string_copy(GuString string, GuPool* pool);
void
gu_string_write(GuString string, GuOut* out, GuExn* err);
GuString
gu_string_read(size_t len, GuPool* pool, GuIn* in, GuExn* err);
GuString
gu_string_read_latin1(size_t len, GuPool* pool, GuIn* in, GuExn* err);
GuIn*
gu_string_in(GuString string, GuPool* pool);