summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/data.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-12-10 15:00:52 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-12-10 15:00:52 +0000
commit0ece8f19abf4dba1d3c568aca60d2c960d75efa6 (patch)
tree88ad121f3ece72abd43491f1a95b1f70c992c991 /src/runtime/c/pgf/data.h
parent8121124d722b136b116dc27afaaae174233b6731 (diff)
loading and unloading of languages in the C runtime and in the Python bindings
Diffstat (limited to 'src/runtime/c/pgf/data.h')
-rw-r--r--src/runtime/c/pgf/data.h4
1 files changed, 4 insertions, 0 deletions
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);