X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fgandr%2Ffunctions%2F_PDCLIB%2F_PDCLIB_freepages.c;h=82eb816f0702421800242c42882c5500fb04ab58;hp=d33f486555967783c06f9010cd172c6bdeeddc36;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c b/platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c index d33f486..82eb816 100644 --- a/platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c +++ b/platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c @@ -1,33 +1,33 @@ -/* _PDCLIB_allocpages( int const ) - - 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 -#include -#include "_PDCLIB_glue.h" -#include -#include - -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 +/* _PDCLIB_allocpages( int const ) + + 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 +#include +#include "_PDCLIB_glue.h" +#include +#include + +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