From e8335806afc45e31157937b880ff39b75c14a2cd Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 4 Oct 2013 12:04:39 +0000 Subject: GuString is now an ordinary C string - it makes live easier. In addition PgfSymbolKS, PgfExprFun and PgfLiteralStr now keep their strings as embedded flexible arrays. The latest change gives us the same compactness as the old representation but it is a lot easier to use. --- src/runtime/c/gu/seq.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/runtime/c/gu/seq.c') diff --git a/src/runtime/c/gu/seq.c b/src/runtime/c/gu/seq.c index 538ce0762..b798d2923 100644 --- a/src/runtime/c/gu/seq.c +++ b/src/runtime/c/gu/seq.c @@ -427,13 +427,3 @@ gu_buf_out(GuBuf* buf, GuPool* pool) GU_DEFINE_KIND(GuSeq, GuOpaque); GU_DEFINE_KIND(GuBuf, abstract); - -char* -gu_char_buf_str(GuCharBuf* chars, GuPool* pool) -{ - size_t len = gu_buf_length(chars); - char* data = gu_buf_data(chars); - char* str = gu_new_str(len, pool); - memcpy(str, data, len); - return str; -} -- cgit v1.2.3