diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 13:51:12 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 13:51:12 +0000 |
| commit | 90c3304147e3829b9ea7f73085e54d9d0811ca8b (patch) | |
| tree | 940fa49074899dcd6bbcc6da483671d56e52f968 /src/runtime/c/pgf/reasoner.c | |
| parent | 10ef298fa00bd100bc854c5c8570a550f470dde4 (diff) | |
remove the pgf2yaml tool which was both broken and redundant. The declarations for generic programming from data.c are removed as well
Diffstat (limited to 'src/runtime/c/pgf/reasoner.c')
| -rw-r--r-- | src/runtime/c/pgf/reasoner.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/c/pgf/reasoner.c b/src/runtime/c/pgf/reasoner.c index 07bd3735a..67ef077ed 100644 --- a/src/runtime/c/pgf/reasoner.c +++ b/src/runtime/c/pgf/reasoner.c @@ -154,7 +154,7 @@ pgf_reasoner_predict(PgfReasoner* rs, PgfExprState* cont, gu_buf_push(answers->conts, PgfExprState*, cont); if (gu_buf_length(answers->conts) == 1) { - PgfCat* abscat = gu_map_get(rs->abstract->cats, &cat, PgfCat*); + PgfAbsCat* abscat = gu_map_get(rs->abstract->cats, &cat, PgfAbsCat*); if (abscat == NULL) { return; } @@ -166,7 +166,7 @@ pgf_reasoner_predict(PgfReasoner* rs, PgfExprState* cont, q->choice_idx = 0; q->choices = abscat->functions; - q->prob = answers->outside_prob + gu_buf_get(q->choices, PgfFunDecl*, 0)->ep.prob; + q->prob = answers->outside_prob + gu_buf_get(q->choices, PgfAbsFun*, 0)->ep.prob; gu_buf_heap_push(rs->pqueue, &pgf_expr_qstate_order, &q); } } else { @@ -196,8 +196,8 @@ pgf_reasoner_next(PgfReasoner* rs, GuPool* pool) PgfExprState* st = NULL; switch (q->kind) { case PGF_EXPR_QSTATE_PREDICT: { - PgfFunDecl* absfun = - gu_buf_get(q->choices, PgfFunDecl*, q->choice_idx); + PgfAbsFun* absfun = + gu_buf_get(q->choices, PgfAbsFun*, q->choice_idx); st = gu_new(PgfExprState, pool); st->answers = q->single; @@ -207,7 +207,7 @@ pgf_reasoner_next(PgfReasoner* rs, GuPool* pool) q->choice_idx++; if (q->choice_idx < gu_buf_length(q->choices)) { - q->prob = st->answers->outside_prob + gu_buf_get(q->choices, PgfFunDecl*, q->choice_idx)->ep.prob; + q->prob = st->answers->outside_prob + gu_buf_get(q->choices, PgfAbsFun*, q->choice_idx)->ep.prob; gu_buf_heap_push(rs->pqueue, &pgf_expr_qstate_order, &q); } break; |
