summaryrefslogtreecommitdiff
path: root/libddekit/include
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2009-12-29 20:48:00 +0100
committerZheng Da <zhengda1936@gmail.com>2009-12-29 20:48:00 +0100
commit0ea79b053d4a853d7bdd3363ccb6c132b2f7ee5c (patch)
treed616efd2f9067447320a09d30ceacbfefd32191a /libddekit/include
parentde60719e36c86cd19e7ace9a1f1c485ce2af4060 (diff)
Don't include C library headers files in our header files.
Diffstat (limited to 'libddekit/include')
-rw-r--r--libddekit/include/ddekit/memory.h13
-rw-r--r--libddekit/include/ddekit/panic.h2
-rw-r--r--libddekit/include/ddekit/printf.h2
3 files changed, 4 insertions, 13 deletions
diff --git a/libddekit/include/ddekit/memory.h b/libddekit/include/ddekit/memory.h
index 2c573d8f..051a4d9e 100644
--- a/libddekit/include/ddekit/memory.h
+++ b/libddekit/include/ddekit/memory.h
@@ -123,9 +123,6 @@ void *ddekit_contig_malloc(
** Simple memory allocator **
*****************************/
-#include <stdlib.h>
-#include "ddekit/inline.h"
-
/**
* Allocate memory block via simple allocator
*
@@ -135,19 +132,13 @@ void *ddekit_contig_malloc(
* The blocks allocated via this allocator CANNOT be used for DMA or other
* device operations, i.e., there exists no virt->phys mapping.
*/
-static INLINE void *ddekit_simple_malloc(unsigned size)
-{
- return malloc (size);
-}
+void *ddekit_simple_malloc(unsigned size);
/**
* Free memory block via simple allocator
*
* \param p pointer to memory block
*/
-static INLINE void ddekit_simple_free(void *p)
-{
- free (p);
-}
+void ddekit_simple_free(void *p);
#endif
diff --git a/libddekit/include/ddekit/panic.h b/libddekit/include/ddekit/panic.h
index 11c46ebb..f036ab3e 100644
--- a/libddekit/include/ddekit/panic.h
+++ b/libddekit/include/ddekit/panic.h
@@ -3,7 +3,7 @@
/** \defgroup DDEKit_util */
-#include <stdio.h>
+#include "c_headers.h"
/** Panic - print error message and enter the kernel debugger.
* \ingroup DDEKit_util
diff --git a/libddekit/include/ddekit/printf.h b/libddekit/include/ddekit/printf.h
index 35b0dfa1..aa086c71 100644
--- a/libddekit/include/ddekit/printf.h
+++ b/libddekit/include/ddekit/printf.h
@@ -1,7 +1,7 @@
#ifndef _ddekit_print_h
#define _ddekit_print_h
-#include <stdarg.h>
+#include "c_headers.h"
/** Print message.
* \ingroup DDEKit_util