1
0
forked from GitHub/gf-core

added mkInt and mkFloat in the Haskell binding to make it easy to create literal expressions

This commit is contained in:
krasimir
2015-11-19 13:18:19 +00:00
parent fc008c9631
commit 4888b65881
5 changed files with 59 additions and 1 deletions

View File

@@ -204,6 +204,12 @@ foreign import ccall "pgf/pgf.h pgf_expr_apply"
foreign import ccall "pgf/pgf.h pgf_expr_string"
pgf_expr_string :: CString -> Ptr GuPool -> IO PgfExpr
foreign import ccall "pgf/pgf.h pgf_expr_int"
pgf_expr_int :: CInt -> Ptr GuPool -> IO PgfExpr
foreign import ccall "pgf/pgf.h pgf_expr_float"
pgf_expr_float :: CDouble -> Ptr GuPool -> IO PgfExpr
foreign import ccall "pgf/pgf.h pgf_expr_unapply"
pgf_expr_unapply :: PgfExpr -> Ptr GuPool -> IO (Ptr PgfApplication)