develooper Front page | perl.perl6.internals | Postings from March 2002

[patch] win32 parrot_dlclose

Thread Next
From:
Ritz Daniel
Date:
March 24, 2002 14:43
Subject:
[patch] win32 parrot_dlclose
Message ID:
001b01c1d385$565bea60$0264a8c0@local
parrot_dlclose() uses dlclose() on unix, FreeLibrary() on windoze.
dlclose returns 0 on success, FreeLibrary returns 0 on failure...fix included


Index: platforms/win32.c
===================================================================
RCS file: /cvs/public/parrot/platforms/win32.c,v
retrieving revision 1.7
diff -u -r1.7 win32.c
--- platforms/win32.c 8 Mar 2002 04:37:25 -0000 1.7
+++ platforms/win32.c 24 Mar 2002 22:39:32 -0000
@@ -100,7 +100,7 @@
 int
 Parrot_dlclose(void *handle)
 {
-    return FreeLibrary(handle);
+    return FreeLibrary(handle)? 0: 1;
 }
 
 /*



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About