diff options
Diffstat (limited to 'src/runtime/c/pgf')
| -rw-r--r-- | src/runtime/c/pgf/pgf.c | 7 | ||||
| -rw-r--r-- | src/runtime/c/pgf/pgf.h | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c index ee736616c..60e838e84 100644 --- a/src/runtime/c/pgf/pgf.c +++ b/src/runtime/c/pgf/pgf.c @@ -198,3 +198,10 @@ pgf_concr_add_literal(PgfConcr *concr, PgfCId cat, gu_map_put(concr->callbacks, cnccat, PgfLiteralCallback*, callback); } + +PgfExprProb* +pgf_fun_get_ep(void* value) +{ + PgfAbsFun* absfun = *((PgfAbsFun**) value); + return &absfun->ep; +} diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index d6de05e90..7cddbbcae 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -189,4 +189,8 @@ void pgf_check_type(PgfPGF* gr, PgfType** ty, GuExn* exn, GuPool* pool); +// internal +PgfExprProb* +pgf_fun_get_ep(void* value); + #endif // PGF_H_ |
