the C runtime now has a type prob_t which is used only for probability values

This commit is contained in:
kr.angelov
2012-09-18 09:18:48 +00:00
parent dd0e9411e1
commit 44df7a33cf
5 changed files with 35 additions and 31 deletions

View File

@@ -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,