forked from GitHub/gf-core
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user