diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-01-24 14:47:11 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-01-24 14:47:11 +0000 |
| commit | 58de345f99f31e7c92e8ad61e4a2a226b0a3273a (patch) | |
| tree | ae680ca408ae90df6ab05ce6ae39c4d7fd27da84 /src/runtime/c/pgf/data.c | |
| parent | acc4f352af0e4c347fa3a583f33eb88c75f19600 (diff) | |
libpgf: few fixes to make the loading of grammars with def rules possible
Diffstat (limited to 'src/runtime/c/pgf/data.c')
| -rw-r--r-- | src/runtime/c/pgf/data.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/c/pgf/data.c b/src/runtime/c/pgf/data.c index 6356da8b1..b91a8f43a 100644 --- a/src/runtime/c/pgf/data.c +++ b/src/runtime/c/pgf/data.c @@ -160,10 +160,7 @@ GU_DEFINE_TYPE( PGF_PATT_APP, PgfPattApp, GU_MEMBER(PgfPattApp, ctor, PgfCId), GU_MEMBER(PgfPattApp, n_args, GuLength), - GU_MEMBER(PgfPattApp, args, PgfPatt)), - GU_CONSTRUCTOR_S( - PGF_PATT_LIT, PgfPattLit, - GU_MEMBER(PgfPattLit, lit, PgfLiteral)), + GU_FLEX_MEMBER(PgfPattApp, args, PgfPatt)), GU_CONSTRUCTOR_S( PGF_PATT_VAR, PgfPattVar, GU_MEMBER(PgfPattVar, var, PgfCId)), @@ -174,6 +171,9 @@ GU_DEFINE_TYPE( GU_CONSTRUCTOR( PGF_PATT_WILD, void), GU_CONSTRUCTOR_S( + PGF_PATT_LIT, PgfPattLit, + GU_MEMBER(PgfPattLit, lit, PgfLiteral)), + GU_CONSTRUCTOR_S( PGF_PATT_IMPL_ARG, PgfPattImplArg, GU_MEMBER(PgfPattImplArg, patt, PgfPatt)), GU_CONSTRUCTOR_S( @@ -184,7 +184,7 @@ GU_DEFINE_TYPE( PgfEquation, struct, GU_MEMBER(PgfEquation, body, PgfExpr), GU_MEMBER(PgfEquation, n_patts, GuLength), - GU_MEMBER(PgfEquation, patts, PgfPatt)); + GU_FLEX_MEMBER(PgfEquation, patts, PgfPatt)); // Distinct type so we can give it special treatment in the reader GU_DEFINE_TYPE(PgfEquationsM, GuSeq, gu_type(PgfEquation)); |
