diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2014-10-09 13:44:26 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2014-10-09 13:44:26 +0000 |
| commit | 86e9acc7a7b714307e08ab25117ca03cecb00936 (patch) | |
| tree | 38dd7904147567c4e97e1f62eca64739d3a516eb /src/runtime/c/pgf/reasoner.c | |
| parent | 8e3ed825a8dde13894a44169ddc09cc2c2be60b2 (diff) | |
throw away the long obsolete runtime type information in the C runtime
Diffstat (limited to 'src/runtime/c/pgf/reasoner.c')
| -rw-r--r-- | src/runtime/c/pgf/reasoner.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/runtime/c/pgf/reasoner.c b/src/runtime/c/pgf/reasoner.c index f71749ba0..3075b62c2 100644 --- a/src/runtime/c/pgf/reasoner.c +++ b/src/runtime/c/pgf/reasoner.c @@ -58,11 +58,7 @@ typedef struct { size_t choice; } PgfCombine2State; -static GU_DEFINE_TYPE(PgfAnswers, abstract); - typedef GuStringMap PgfAbswersMap; -static GU_DEFINE_TYPE(PgfAbswersMap, GuStringMap, gu_ptr_type(PgfAnswers), - &gu_null_struct); struct PgfReasoner { GuPool* pool; @@ -355,7 +351,7 @@ pgf_reasoner_next(PgfReasoner* rs) GuPool* tmp_pool = gu_new_pool(); GuOut* out = gu_file_out(stderr, tmp_pool); GuWriter* wtr = gu_new_utf8_writer(out, tmp_pool); - GuExn* err = gu_exn(NULL, type, tmp_pool); + GuExn* err = gu_exn(tmp_pool); st->print(st, wtr, err, tmp_pool); gu_pool_free(tmp_pool); } @@ -388,7 +384,8 @@ pgf_generate_all(PgfPGF* pgf, PgfCId cat, GuPool* pool) rs->pool = pool; rs->tmp_pool = gu_new_pool(), rs->abstract = &pgf->abstract, - rs->table = gu_map_type_new(PgfAbswersMap, rs->tmp_pool), + rs->table = gu_new_string_map(PgfAnswers*, &gu_null_struct, rs->tmp_pool), + rs->pqueue = gu_new_buf(PgfReasonerState*, rs->tmp_pool); rs->exprs = gu_new_buf(PgfExprProb*, rs->tmp_pool); rs->en.next = pgf_reasoner_enum_next; |
