another attempt to port the robust parser to MacOS

This commit is contained in:
kr.angelov
2012-05-16 15:18:44 +00:00
parent eb380dfb80
commit bd8046f23d
15 changed files with 21 additions and 32 deletions

View File

@@ -297,11 +297,11 @@ struct PgfPArg {
PgfCCatIds* hypos;
};
GU_DECLARE_TYPE(PgfPArg, struct);
extern GU_DECLARE_TYPE(PgfPArg, struct);
typedef GuSeq PgfPArgs;
GU_DECLARE_TYPE(PgfPArgs, GuSeq);
extern GU_DECLARE_TYPE(PgfPArgs, GuSeq);
typedef struct {
PgfFunId fun;

View File

@@ -13,7 +13,7 @@
/// An abstract syntax tree
typedef GuVariant PgfExpr;
GU_DECLARE_TYPE(PgfExpr, GuVariant);
extern GU_DECLARE_TYPE(PgfExpr, GuVariant);
typedef GuList(PgfExpr) PgfExprs;

View File

@@ -110,13 +110,11 @@ static GU_DEFINE_TYPE(PgfCFCat, struct,
extern GuHasher pgf_cfcat_hasher;
typedef GuMap PgfEpsilonIdx;
GU_DEFINE_TYPE(PgfEpsilonIdx, GuMap,
gu_type(PgfCFCat), &pgf_cfcat_hasher,
gu_ptr_type(PgfCCat), &gu_null_struct);
// GuString -> PgfItemBuf*
typedef GuStringMap PgfTransitions;
GU_DEFINE_TYPE(PgfTransitions, GuStringMap,
gu_ptr_type(PgfItemBuf), &gu_null_struct);

View File

@@ -70,7 +70,7 @@ pgf_read(GuIn* in, GuPool* pool, GuExn* err);
#include <gu/type.h>
GU_DECLARE_TYPE(PgfPGF, struct);
extern GU_DECLARE_TYPE(PgfPGF, struct);
/// @}