From 0ece8f19abf4dba1d3c568aca60d2c960d75efa6 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 10 Dec 2013 15:00:52 +0000 Subject: loading and unloading of languages in the C runtime and in the Python bindings --- src/runtime/c/pgf/data.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/runtime/c/pgf/data.h') diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h index 131201132..6bfd5d334 100644 --- a/src/runtime/c/pgf/data.h +++ b/src/runtime/c/pgf/data.h @@ -99,6 +99,7 @@ typedef struct { PgfFlags* aflags; PgfCIdMap* funs; // |-> PgfAbsFun* PgfCIdMap* cats; // |-> PgfAbsCat* + PgfAbsFun* abs_lin_fun; } PgfAbstr; struct PgfPGF { @@ -241,6 +242,9 @@ struct PgfConcr { PgfCIdMap* cnccats; PgfCallbacksMap* callbacks; int total_cats; + + GuPool* pool; // if the language is loaded separately then this is the pool + GuFinalizer fin; // and this is the finalizer in the pool of the whole grammar }; extern GU_DECLARE_TYPE(PgfConcr, abstract); -- cgit v1.2.3