From 67f6bedb153b99e64040f9b200d5c55807e0f7ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Wed, 17 Sep 2014 10:11:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96alloc=E6=88=90?= =?UTF-8?q?=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TinySTL/Alloc.h | 6 ++++++ TinySTL/TinySTL.vcxproj | 1 + TinySTL/TinySTL.vcxproj.filters | 3 +++ 3 files changed, 10 insertions(+) diff --git a/TinySTL/Alloc.h b/TinySTL/Alloc.h index b474787..d188df6 100644 --- a/TinySTL/Alloc.h +++ b/TinySTL/Alloc.h @@ -44,6 +44,12 @@ namespace TinySTL{ static void *reallocate(void *ptr, size_t old_sz, size_t new_sz); }; + char *alloc::start_free = 0; + char *alloc::end_free = 0; + size_t alloc::heap_size = 0; + alloc::obj *alloc::free_list[alloc::ENFreeLists::NFREELISTS] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + }; } #endif \ No newline at end of file diff --git a/TinySTL/TinySTL.vcxproj b/TinySTL/TinySTL.vcxproj index 1ef643d..6dab845 100644 --- a/TinySTL/TinySTL.vcxproj +++ b/TinySTL/TinySTL.vcxproj @@ -79,6 +79,7 @@ + diff --git a/TinySTL/TinySTL.vcxproj.filters b/TinySTL/TinySTL.vcxproj.filters index f82fd29..1e1ae10 100644 --- a/TinySTL/TinySTL.vcxproj.filters +++ b/TinySTL/TinySTL.vcxproj.filters @@ -26,5 +26,8 @@ 头文件 + + 头文件 + \ No newline at end of file