From 1e44fdb3d3413709ae635f0fae91ffa4a93a2d9d Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 16 Aug 2013 12:44:37 +0000 Subject: fixes in the C and Python API to make them closer to the Haskell API --- src/runtime/c/pgf/pgf.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/runtime/c/pgf/pgf.h') diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index bda70315e..fe86373cf 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -51,6 +51,7 @@ typedef struct PgfConcr PgfConcr; #include #include +#include /// An enumeration of #PgfExpr elements. typedef GuEnum PgfExprEnum; @@ -126,15 +127,15 @@ pgf_parse_with_heuristics(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, GuPool* pool, GuPool* out_pool); GuEnum* -pgf_get_completions(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, - GuString prefix, GuPool* pool); +pgf_complete(PgfConcr* concr, PgfCId cat, PgfLexer *lexer, + GuString prefix, GuPool* pool); bool pgf_parseval(PgfConcr* concr, PgfExpr expr, PgfCId cat, double *precision, double *recall, double *exact); PgfExprEnum* -pgf_generate(PgfPGF* pgf, PgfCId cat, GuPool* pool); +pgf_generate_all(PgfPGF* pgf, PgfCId cat, GuPool* pool); /// @} -- cgit v1.2.3