mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-28 21:23:37 -06:00
the Haskell marshaller/unmarshaller are now statically allocated
This commit is contained in:
@@ -103,9 +103,8 @@ pExpr =
|
||||
unsafePerformIO $
|
||||
withText str $ \c_str ->
|
||||
alloca $ \c_pos ->
|
||||
withForeignPtr unmarshaller $ \u ->
|
||||
mask_ $ do
|
||||
c_expr <- pgf_read_expr_ex c_str c_pos u
|
||||
c_expr <- pgf_read_expr_ex c_str c_pos unmarshaller
|
||||
if c_expr == castPtrToStablePtr nullPtr
|
||||
then return []
|
||||
else do expr <- deRefStablePtr c_expr
|
||||
|
||||
Reference in New Issue
Block a user