1
0
forked from GitHub/gf-core

added exprSize in the Haskell binding

This commit is contained in:
Krasimir Angelov
2017-09-05 09:50:29 +02:00
parent a5fe5b9378
commit 85cf2d9f5a
4 changed files with 47 additions and 2 deletions

View File

@@ -331,6 +331,9 @@ foreign import ccall "pgf/expr.h pgf_expr_eq"
foreign import ccall "pgf/expr.h pgf_expr_hash"
pgf_expr_hash :: Word -> PgfExpr -> IO Word
foreign import ccall "pgf/expr.h pgf_expr_size"
pgf_expr_size :: PgfExpr -> IO CInt
foreign import ccall "pgf/expr.h pgf_compute_tree_probability"
pgf_compute_tree_probability :: Ptr PgfPGF -> PgfExpr -> IO CFloat