[project @ 2004-04-12 16:26:40 by panne]
authorpanne <unknown>
Mon, 12 Apr 2004 16:26:41 +0000 (16:26 +0000)
committerpanne <unknown>
Mon, 12 Apr 2004 16:26:41 +0000 (16:26 +0000)
Fixed a long-standing buglet in the signatures of hs_free_stable_ptr
and hs_free_fun_ptr, both had a superfluous "*". Now everything
conforms to the FFI addendum.

ghc/includes/HsFFI.h
ghc/rts/HsFFI.c

index 57a0be3..fc029bb 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: HsFFI.h,v 1.18 2003/01/28 16:30:07 simonmar Exp $
+ * $Id: HsFFI.h,v 1.19 2004/04/12 16:26:40 panne Exp $
  *
  * (c) The GHC Team, 2000
  *
@@ -155,8 +155,8 @@ extern void hs_add_root (void (*init_root)(void));
 
 extern void hs_perform_gc (void);
 
-extern void hs_free_stable_ptr (HsStablePtr *sp);
-extern void hs_free_fun_ptr    (HsFunPtr *fp);
+extern void hs_free_stable_ptr (HsStablePtr sp);
+extern void hs_free_fun_ptr    (HsFunPtr fp);
 
 /* -------------------------------------------------------------------------- */
 
index c84be4a..ec8f520 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: HsFFI.c,v 1.2 2003/01/28 16:30:06 simonmar Exp $
+ * $Id: HsFFI.c,v 1.3 2004/04/12 16:26:41 panne Exp $
  *
  * (c) The GHC Team, 2002
  *
@@ -27,7 +27,7 @@ hs_perform_gc(void)
 }
 
 void
-hs_free_stable_ptr(HsStablePtr *sp)
+hs_free_stable_ptr(HsStablePtr sp)
 {
     /* The cast is for clarity only, both HsStablePtr and StgStablePtr are
        typedefs for void*. */
@@ -35,7 +35,7 @@ hs_free_stable_ptr(HsStablePtr *sp)
 }
 
 void
-hs_free_fun_ptr(HsFunPtr *fp)
+hs_free_fun_ptr(HsFunPtr fp)
 {
     /* I simply *love* all these similar names... */
     freeHaskellFunctionPtr(fp);