From 2e8f05516416095dc5bee68552bfdeb4f88c10e5 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 13 Sep 2013 08:28:20 +0000 Subject: optimize the reading of strings in the grammar loader. --- src/runtime/c/gu/string.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/runtime/c/gu/string.h') 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); -- cgit v1.2.3