summaryrefslogtreecommitdiff
path: root/src/mem.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/mem.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/mem.c')
-rw-r--r--src/mem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem.c b/src/mem.c
index a1e4a6d09e..fba3bc9df8 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -350,6 +350,7 @@ void *rt_malloc(rt_size_t size)
return RT_NULL;
}
+RTM_EXPORT(rt_malloc);
/**
* This function will change the previously allocated memory block.
@@ -441,6 +442,7 @@ void *rt_realloc(void *rmem, rt_size_t newsize)
return nmem;
}
+RTM_EXPORT(rt_realloc);
/**
* This function will contiguously allocate enough space for count objects
@@ -469,6 +471,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.
@@ -529,6 +532,7 @@ void rt_free(void *rmem)
plug_holes(mem);
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)