summaryrefslogtreecommitdiff
path: root/src/slab.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-08-27 01:21:57 +0000
committer[email protected] <[email protected]>2012-08-27 01:21:57 +0000
commita73abdccf5caa42224d83d646ae09a39813e8179 (patch)
treebd2e7b504008211b8ca403d700319cd1f6f12e3f /src/slab.c
parent907e1703e655d93bfa6617e3066932ab3440a8dc (diff)
split export symbols from rtm.c to each file
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2263 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/slab.c')
-rw-r--r--src/slab.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slab.c b/src/slab.c
index 63b355a03f..4de89276d8 100644
--- a/src/slab.c
+++ b/src/slab.c
@@ -83,6 +83,7 @@ void rt_malloc_sethook(void (*hook)(void *ptr, rt_size_t size))
{
rt_malloc_hook = hook;
}
+RTM_EXPORT(rt_malloc_sethook);
/**
* This function will set a hook function, which will be invoked when a memory
@@ -94,6 +95,7 @@ void rt_free_sethook(void (*hook)(void *ptr))
{
rt_free_hook = hook;
}
+RTM_EXPORT(rt_free_sethook);
/*@}*/
@@ -665,6 +667,7 @@ fail:
return RT_NULL;
}
+RTM_EXPORT(rt_malloc);
/**
* This function will change the size of previously allocated memory block.
@@ -736,6 +739,7 @@ void *rt_realloc(void *ptr, rt_size_t size)
return RT_NULL;
}
+RTM_EXPORT(rt_realloc);
/**
* This function will contiguously allocate enough space for count objects
@@ -762,6 +766,7 @@ void *rt_calloc(rt_size_t count, rt_size_t size)
return p;
}
+RTM_EXPORT(rt_calloc);
/**
* This function will release the previously allocated memory block by rt_malloc.
@@ -908,6 +913,7 @@ void rt_free(void *ptr)
/* unlock heap */
rt_sem_release(&heap_sem);
}
+RTM_EXPORT(rt_free);
#ifdef RT_MEM_STATS
void rt_memory_info(rt_uint32_t *total, rt_uint32_t *used, rt_uint32_t *max_used)