mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
the C runtime now has a type prob_t which is used only for probability values
This commit is contained in:
@@ -188,11 +188,13 @@ GU_DEFINE_TYPE(
|
||||
GU_MEMBER(PgfCatFun, prob, double),
|
||||
GU_MEMBER(PgfCatFun, fun, PgfCId));
|
||||
|
||||
static float inf_float = INFINITY;
|
||||
static prob_t inf_prob = INFINITY;
|
||||
|
||||
GU_DEFINE_TYPE(prob_t, GuFloating, _);
|
||||
|
||||
GU_DEFINE_TYPE(PgfMetaChildMap, GuMap,
|
||||
gu_type(PgfCat), NULL,
|
||||
gu_type(float), &inf_float);
|
||||
gu_type(prob_t), &inf_prob);
|
||||
|
||||
GU_DEFINE_TYPE(
|
||||
PgfCat, struct,
|
||||
|
||||
Reference in New Issue
Block a user