]> pd.if.org Git - pdclib/blobdiff - platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c
Cosmetic comment fixes.
[pdclib] / platform / gandr / functions / _PDCLIB / _PDCLIB_freepages.c
index c77687652e64de0739b74998a9f5a954fbd247e9..d87e2d84cd6b7606c3219449ddc6543e0480d645 100644 (file)
@@ -1,30 +1,33 @@
-/* $Id$ */\r
-\r
-/* _PDCLIB_allocpages( int const )\r
-\r
-   This file is part of the Public Domain C Library (PDCLib).\r
-   Permission is granted to use, modify, and / or redistribute at will.\r
-*/\r
-\r
-/* This is a stub implementation of _PDCLIB_allocpages\r
-*/\r
-\r
-#include <stdint.h>\r
-#include <stddef.h>\r
-#include <_PDCLIB_glue.h>\r
-#include <errno.h>\r
-\r
-void _PDCLIB_freepages( void * p, size_t n )\r
-{\r
-    return;\r
-}\r
-\r
-#ifdef TEST\r
-#include <_PDCLIB_test.h>\r
-\r
-int main( void )\r
-{\r
-    return TEST_RESULTS;\r
-}\r
-\r
-#endif\r
+/* _PDCLIB_freepages( void *, size_t )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+/* This is a stub implementation of _PDCLIB_allocpages
+*/
+
+#include <stdint.h>
+#include <stddef.h>
+#include "_PDCLIB_glue.h"
+#include <errno.h>
+#include <gd_bal.h>
+
+void _PDCLIB_freepages( void * p, size_t n )
+{
+    int rv = 0;
+    if((rv = gd_free_pages( p, n ))) {
+        perror("_PDCLIB_freepages");
+        abort();
+    }
+}
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif