projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes needed to run on OS X... Example runs on my laptop now. No need to push...
[c11tester.git]
/
mymemory.h
diff --git
a/mymemory.h
b/mymemory.h
index 90b27844f5f8e025c68ef8be56d50f93cbdf2a72..f928797bc30f4aac90b45d25a342ab588cfa6a14 100644
(file)
--- a/
mymemory.h
+++ b/
mymemory.h
@@
-23,6
+23,8
@@
void *MYMALLOC(size_t size);
void MYFREE(void *ptr);
void *MYMALLOC(size_t size);
void MYFREE(void *ptr);
+void system_free( void * ptr );
+void *system_malloc( size_t size );
/*
The following code example is taken from the book
The C++ Standard Library - A Tutorial and Reference
/*
The following code example is taken from the book
The C++ Standard Library - A Tutorial and Reference
@@
-119,6
+121,8
@@
extern "C" {
typedef void * mspace;
extern void* mspace_malloc(mspace msp, size_t bytes);
extern void mspace_free(mspace msp, void* mem);
typedef void * mspace;
extern void* mspace_malloc(mspace msp, size_t bytes);
extern void mspace_free(mspace msp, void* mem);
+extern void* mspace_realloc(mspace msp, void* mem, size_t newsize);
+extern void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
extern mspace create_mspace_with_base(void* base, size_t capacity, int locked);
extern mspace create_mspace(size_t capacity, int locked);
extern mspace mySpace;
extern mspace create_mspace_with_base(void* base, size_t capacity, int locked);
extern mspace create_mspace(size_t capacity, int locked);
extern mspace mySpace;