summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/data.h
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-10-09 13:44:26 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-10-09 13:44:26 +0000
commit86e9acc7a7b714307e08ab25117ca03cecb00936 (patch)
tree38dd7904147567c4e97e1f62eca64739d3a516eb /src/runtime/c/pgf/data.h
parent8e3ed825a8dde13894a44169ddc09cc2c2be60b2 (diff)
throw away the long obsolete runtime type information in the C runtime
Diffstat (limited to 'src/runtime/c/pgf/data.h')
-rw-r--r--src/runtime/c/pgf/data.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/runtime/c/pgf/data.h b/src/runtime/c/pgf/data.h
index 34e8ddb16..dd482f372 100644
--- a/src/runtime/c/pgf/data.h
+++ b/src/runtime/c/pgf/data.h
@@ -4,12 +4,10 @@
#include <gu/variant.h>
#include <gu/map.h>
#include <gu/string.h>
-#include <gu/type.h>
#include <gu/seq.h>
#include <pgf/pgf.h>
typedef struct PgfCCat PgfCCat;
-extern GU_DECLARE_TYPE(PgfCCat, abstract);
typedef GuSeq PgfCCats;
@@ -41,7 +39,7 @@ typedef enum {
typedef struct {
PgfCId ctor;
- GuLength n_args;
+ size_t n_args;
PgfPatt args[];
} PgfPattApp;
@@ -70,7 +68,7 @@ typedef struct {
typedef struct {
PgfExpr body;
- GuLength n_patts;
+ size_t n_patts;
PgfPatt patts[];
} PgfEquation;
@@ -99,7 +97,6 @@ typedef GuSeq PgfAbsFuns;
extern GuOrder pgf_absfun_order[1];
typedef GuMap PgfMetaChildMap;
-extern GU_DECLARE_TYPE(PgfMetaChildMap, GuMap);
typedef struct {
PgfCId name;
@@ -110,8 +107,6 @@ typedef struct {
void* predicate;
} PgfAbsCat;
-extern GU_DECLARE_TYPE(PgfAbsCat, abstract);
-
typedef GuSeq PgfAbsCats;
extern GuOrder pgf_abscat_order[1];
@@ -171,8 +166,6 @@ typedef struct {
* represents. */
} PgfCncCat;
-extern GU_DECLARE_TYPE(PgfCncCat, abstract);
-
typedef GuSeq PgfTokens;
bool
@@ -192,18 +185,14 @@ typedef struct {
typedef struct PgfItemConts PgfItemConts;
typedef PgfCIdMap PgfPrintNames;
-extern GU_DECLARE_TYPE(PgfPrintNames, GuStringMap);
typedef GuStringMap PgfCncFunOverloadMap;
-extern GU_DECLARE_TYPE(PgfCncFunOverloadMap, GuStringMap);
typedef GuMap PgfCncOverloadMap;
-extern GU_DECLARE_TYPE(PgfCncOverloadMap, GuMap);
typedef struct PgfItem PgfItem;
typedef GuMap PgfCallbacksMap;
-extern GU_DECLARE_TYPE(PgfCallbacksMap, GuMap);
typedef GuVariant PgfSymbol;
@@ -237,7 +226,7 @@ typedef struct PgfSymbolKP
/**< Default form that this symbol takes if none of of the
* variant forms is triggered. */
- GuLength n_forms;
+ size_t n_forms;
PgfAlternative forms[];
/**< Variant forms whose choise depends on the following
* symbol. */
@@ -262,7 +251,7 @@ typedef struct {
PgfAbsFun* absfun;
PgfExprProb *ep;
int funid;
- GuLength n_lins;
+ size_t n_lins;
PgfSequence* lins[];
} PgfCncFun;
@@ -331,7 +320,6 @@ typedef struct {
} PgfProductionMeta;
typedef GuSeq PgfProductionSeq;
-extern GU_DECLARE_TYPE(PgfProductionSeq, abstract);
typedef struct {
PgfCCat* ccat;