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/pgf/expr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/pgf/expr.h') diff --git a/src/runtime/c/pgf/expr.h b/src/runtime/c/pgf/expr.h index 08200a716..dffe5ac27 100644 --- a/src/runtime/c/pgf/expr.h +++ b/src/runtime/c/pgf/expr.h @@ -37,7 +37,7 @@ typedef enum { } PgfLiteralTag; typedef struct { - GuString val; + char val[0]; // a flexible array that contains the value } PgfLiteralStr; typedef struct { @@ -102,7 +102,7 @@ typedef struct { } PgfExprMeta; typedef struct { - PgfCId fun; + char fun[0]; } PgfExprFun; typedef struct { -- cgit v1.2.3