[uClibc-cvs] uClibc/libc/stdlib/malloc heap.h,1.11,1.12
Erik Andersen
andersen at uclibc.org
Sat Sep 6 13:36:10 UTC 2003
Update of /var/cvs/uClibc/libc/stdlib/malloc
In directory winder:/tmp/cvs-serv27551
Modified Files:
heap.h
Log Message:
'extern inline' doesn't work... Use 'static inline'
Index: heap.h
===================================================================
RCS file: /var/cvs/uClibc/libc/stdlib/malloc/heap.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- heap.h 17 Oct 2002 10:37:43 -0000 1.11
+++ heap.h 6 Sep 2003 13:36:07 -0000 1.12
@@ -142,7 +142,7 @@
/* Delete the free-area FA from HEAP. */
-extern inline void
+static inline void
__heap_delete (struct heap *heap, struct heap_free_area *fa)
{
if (fa->next)
@@ -157,7 +157,7 @@
/* Link the free-area FA between the existing free-area's PREV and NEXT in
HEAP. PREV and NEXT may be 0; if PREV is 0, FA is installed as the
first free-area. */
-extern inline void
+static inline void
__heap_link_free_area (struct heap *heap, struct heap_free_area *fa,
struct heap_free_area *prev,
struct heap_free_area *next)
@@ -176,7 +176,7 @@
/* Update the mutual links between the free-areas PREV and FA in HEAP.
PREV may be 0, in which case FA is installed as the first free-area (but
FA may not be 0). */
-extern inline void
+static inline void
__heap_link_free_area_after (struct heap *heap,
struct heap_free_area *fa,
struct heap_free_area *prev)
@@ -192,7 +192,7 @@
free-area's PREV and NEXT in HEAP, and return a pointer to its header.
PREV and NEXT may be 0; if PREV is 0, MEM is installed as the first
free-area. */
-extern inline struct heap_free_area *
+static inline struct heap_free_area *
__heap_add_free_area (struct heap *heap, void *mem, size_t size,
struct heap_free_area *prev,
struct heap_free_area *next)
@@ -210,7 +210,7 @@
/* Allocate SIZE bytes from the front of the free-area FA in HEAP, and
return the amount actually allocated (which may be more than SIZE). */
-extern inline size_t
+static inline size_t
__heap_free_area_alloc (struct heap *heap,
struct heap_free_area *fa, size_t size)
{
More information about the uClibc-cvs
mailing list