diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-09-13 08:28:20 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-09-13 08:28:20 +0000 |
| commit | 2e8f05516416095dc5bee68552bfdeb4f88c10e5 (patch) | |
| tree | 8ca3c368579da84c906749d84ab63703ca769d5f /src/runtime/c/gu/string.h | |
| parent | 4d8ed02f6d091eb5e45c87a9b355d22298e4551b (diff) | |
optimize the reading of strings in the grammar loader.
Diffstat (limited to 'src/runtime/c/gu/string.h')
| -rw-r--r-- | src/runtime/c/gu/string.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/c/gu/string.h b/src/runtime/c/gu/string.h index 310c725b5..a24fe3068 100644 --- a/src/runtime/c/gu/string.h +++ b/src/runtime/c/gu/string.h @@ -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); |
