summaryrefslogtreecommitdiff
path: root/src/runtime/c/pgf/pgf.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-05-07 08:30:32 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-05-07 08:30:32 +0000
commit687b326ed0ec67bd597c8e639e1f1e468622d26f (patch)
treea3736023793f9aaec70bfb0748c89acc3ab0e2ef /src/runtime/c/pgf/pgf.c
parent7ba27229b314057104aeab8f46a7247fbb20352e (diff)
bug fix in the management of memory pools in the statistical parser
Diffstat (limited to 'src/runtime/c/pgf/pgf.c')
-rw-r--r--src/runtime/c/pgf/pgf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c
index b355593d8..81b1fa05c 100644
--- a/src/runtime/c/pgf/pgf.c
+++ b/src/runtime/c/pgf/pgf.c
@@ -212,7 +212,7 @@ pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
{
// Begin parsing a sentence of the specified category
PgfParseState* state =
- pgf_parser_init_state(concr, cat, 0, pool);
+ pgf_parser_init_state(concr, cat, 0, pool, out_pool);
if (state == NULL) {
return NULL;
}
@@ -234,7 +234,7 @@ pgf_parse(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
return NULL;
// Now begin enumerating the resulting syntax trees
- return pgf_parse_result(state, out_pool);
+ return pgf_parse_result(state);
}
GuEnum*
@@ -243,7 +243,7 @@ pgf_get_completions(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
{
// Begin parsing a sentence of the specified category
PgfParseState* state =
- pgf_parser_init_state(concr, cat, 0, pool);
+ pgf_parser_init_state(concr, cat, 0, pool, pool);
if (state == NULL) {
return NULL;
}
@@ -265,7 +265,7 @@ pgf_get_completions(PgfConcr* concr, PgfCId cat, PgfLexer *lexer,
return NULL;
// Now begin enumerating the resulting syntax trees
- return pgf_parser_completions(state, prefix, pool);
+ return pgf_parser_completions(state, prefix);
}
void
@@ -273,7 +273,7 @@ pgf_print_chunks(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, GuPool* pool)
{
// Begin parsing a sentence of the specified category
PgfParseState* state =
- pgf_parser_init_state(concr, cat, 0, pool);
+ pgf_parser_init_state(concr, cat, 0, pool, pool);
if (state == NULL) {
printf("\n");
return;