mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user