]> pd.if.org Git - pdclib/blob - platform/gandr/functions/_PDCLIB/_PDCLIB_freepages.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / gandr / functions / _PDCLIB / _PDCLIB_freepages.c
1 /* _PDCLIB_allocpages( int const )\r
2 \r
3    This file is part of the Public Domain C Library (PDCLib).\r
4    Permission is granted to use, modify, and / or redistribute at will.\r
5 */\r
6 \r
7 /* This is a stub implementation of _PDCLIB_allocpages\r
8 */\r
9 \r
10 #include <stdint.h>\r
11 #include <stddef.h>\r
12 #include "_PDCLIB_glue.h"\r
13 #include <errno.h>\r
14 #include <gd_bal.h>\r
15 \r
16 void _PDCLIB_freepages( void * p, size_t n )\r
17 {\r
18     int rv = 0;\r
19     if((rv = gd_free_pages( p, n ))) {\r
20         perror("_PDCLIB_freepages");\r
21         abort();\r
22     }\r
23 }\r
24 \r
25 #ifdef TEST\r
26 #include "_PDCLIB_test.h"\r
27 \r
28 int main( void )\r
29 {\r
30     return TEST_RESULTS;\r
31 }\r
32 \r
33 #endif\r