-
Notifications
You must be signed in to change notification settings - Fork 145
/
ChangeLog
56 lines (40 loc) · 2.47 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
2015-03-18 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* include/csptr/{smart_ptr.h,apply.h}: Removed the destructor helper macro
* include/csptr/{smart_ptr.h,smalloc.h}: Changed the vararg usage to
struct vararg. This change is **NOT** backward-compatible. Parenthesis
around the value were removed with this change, and metadata is no longer
passed as two separate parameters.
2015-01-26 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* include/csptr/smart_ptr.h: Smart pointers now take a mandatory value.
* doc/csptr.3: Fixed some typos and updated to latest interface.
2015-01-20 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* configure.ac: Removed --with-malloc-wrapper ./configure flag.
* src/wrap_malloc.{c,h}: Removed malloc/free wrappers.
* check/*: Added unit tests & coverage reports.
* mman.c: Fix for shared pointers accessing the wrong metadata.
2015-01-14 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* configure.ac: Added --with-malloc-wrapper and --with-fixed-allocator
flags for ./configure.
* src/mman.c: Added a fixed allocator support -- if the user does not
want to override at runtime the allocators used by smalloc/sfree and just
want to use malloc and free, they may enable this option using the
--with-fixed-allocator configuration flag.
* src/wrap_malloc.{c,h}, src/mman.c: Added malloc/free wrappers.
Pointers produced by malloc can be used with the `smart` attribute,
and smart pointers may be passed to free. This option is deactivated
by default, and can be enabled using the --with-malloc-wrapper
configuration flag.
2015-01-14 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* src/smart_ptr.h: unique_ptr and shared_ptr now take a type parameter
instead of a size.
* src/smart_ptr.h: Added support for static array types in the unique_ptr
and shared_ptr macros.
* src/mman.{c,h}: Added smart array allocation through smalloc. smalloc
has been changed to take a mandatory `nmemb` parameter, that may be 0
if the allocated type is a scalar, and an array for any other value.
2015-01-13 Franklin "Snaipe" Mathieu <franklinmathieu@gmail.com>
* src/smart_ptr.h: Added unique_ptr and shared_ptr macros, added
`smart` variable attribute.
* src/mman.{c,h}: Added smalloc, sfree, sref, and get_smart_user_meta.
Alternative allocators may be specified by setting the contents of
`smalloc_allocator`.