+2014-04-13 Geoffrey Garen <ggaren@apple.com>
+
+ Fixed some mbmalloc exports
+ https://bugs.webkit.org/show_bug.cgi?id=131599
+
+ Reviewed by Ryosuke Niwa.
+
+ * bmalloc.xcodeproj/project.pbxproj: Made some headers a private part
+ of the project, so we can call them from API.
+
+ * bmalloc/mbmalloc.cpp: Marked the mbmalloc functions with default
+ visibility, so they show up as exported in the .dylib.
+
2014-04-09 Geoffrey Garen <ggaren@apple.com>
Put bmalloc headers in the right place
objects = {
/* Begin PBXBuildFile section */
+ 1400274918F89C1300115C97 /* Heap.h in Headers */ = {isa = PBXBuildFile; fileRef = 14DA320C18875B09007269E0 /* Heap.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 1400274A18F89C2300115C97 /* VMHeap.h in Headers */ = {isa = PBXBuildFile; fileRef = 144F7BFC18BFC517003537F3 /* VMHeap.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 1400274B18F89C3D00115C97 /* BoundaryTagInlines.h in Headers */ = {isa = PBXBuildFile; fileRef = 14105E7B18DBD7AF003A106E /* BoundaryTagInlines.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ 1400274C18F89C3D00115C97 /* SegregatedFreeList.h in Headers */ = {isa = PBXBuildFile; fileRef = 146BEE1E18C841C50002D5A2 /* SegregatedFreeList.h */; settings = {ATTRIBUTES = (Private, ); }; };
1448C30018F3754600502839 /* mbmalloc.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1448C2FF18F3754300502839 /* mbmalloc.cpp */; };
1448C30118F3754C00502839 /* bmalloc.h in Headers */ = {isa = PBXBuildFile; fileRef = 1448C2FE18F3754300502839 /* bmalloc.h */; settings = {ATTRIBUTES = (Private, ); }; };
14CC394C18EA8858004AFE34 /* libbmalloc.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 14F271BE18EA3963008C152F /* libbmalloc.a */; };
14DD78B918F48D6B00950702 /* MediumTraits.h in Headers */,
1448C30118F3754C00502839 /* bmalloc.h in Headers */,
14DD789A18F48D4A00950702 /* Deallocator.h in Headers */,
+ 1400274C18F89C3D00115C97 /* SegregatedFreeList.h in Headers */,
14DD788D18F48CC600950702 /* BeginTag.h in Headers */,
14DD78CD18F48D7500950702 /* Range.h in Headers */,
14DD789C18F48D4A00950702 /* SmallAllocator.h in Headers */,
14DD78BA18F48D6B00950702 /* Page.h in Headers */,
14DD78BB18F48D6B00950702 /* SmallChunk.h in Headers */,
14DD78C918F48D7500950702 /* Inline.h in Headers */,
+ 1400274A18F89C2300115C97 /* VMHeap.h in Headers */,
+ 1400274918F89C1300115C97 /* Heap.h in Headers */,
14DD78B818F48D6B00950702 /* MediumPage.h in Headers */,
14DD78C518F48D7500950702 /* Algorithm.h in Headers */,
14DD78BD18F48D6B00950702 /* SmallPage.h in Headers */,
+ 1400274B18F89C3D00115C97 /* BoundaryTagInlines.h in Headers */,
14DD788E18F48CCD00950702 /* BoundaryTag.h in Headers */,
14DD78C818F48D7500950702 /* FixedVector.h in Headers */,
14DD78B718F48D6B00950702 /* MediumLine.h in Headers */,
#include "bmalloc.h"
+#define EXPORT __attribute__((visibility("default")))
+
extern "C" {
-void* mbmalloc(size_t);
-void mbfree(void*, size_t);
-void* mbrealloc(void*, size_t, size_t);
+EXPORT void* mbmalloc(size_t);
+EXPORT void mbfree(void*, size_t);
+EXPORT void* mbrealloc(void*, size_t, size_t);
void* mbmalloc(size_t size)
{