Skip to content
Oct 5, 2015
Version 2.0.4

@Snaipe Snaipe released this Jun 10, 2015 · 44 commits to master since this release

Added --without-sentinel configure option to disable variadic argument sentinels

Assets 2

@Snaipe Snaipe released this Apr 26, 2015 · 48 commits to master since this release

libcsptr now produces a shared library.

Assets 2

@Snaipe Snaipe released this Apr 14, 2015 · 50 commits to master since this release

Made shared pointers use its own atomic functions for build compatibility on c99

Assets 2

@Snaipe Snaipe released this Mar 19, 2015 · 56 commits to master since this release

Warning: breaking changes to the interface

  • Removed the destructor helper macro
  • 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.
  • OS X and Windows support
Assets 2

@Snaipe Snaipe released this Jan 26, 2015 · 64 commits to master since this release

  • Smart pointers now take a mandatory value. Uninitialized smart pointers may still be retrieved with a direct call to smalloc.
  • Fixed some typos and updated documentation & samples to fit the latest interface.
Assets 2

@Snaipe Snaipe released this Jan 20, 2015 · 74 commits to master since this release

  • Removed --with-malloc-wrapper ./configure flag.
  • Removed malloc/free wrappers.
  • Added unit tests & coverage reports.
  • Fix for shared pointers accessing the wrong metadata.
Assets 2
Pre-release
Pre-release

@Snaipe Snaipe released this Jan 20, 2015 · 111 commits to master since this release

  • Added --with-malloc-wrapper and --with-fixed-allocator flags for ./configure.
  • 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.
  • 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.
Assets 2
Pre-release
Pre-release

@Snaipe Snaipe released this Jan 20, 2015 · 123 commits to master since this release

  • unique_ptr and shared_ptr now take a type parameter instead of a size.
  • Added support for static array types in the unique_ptr and shared_ptr macros.
  • 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.
Assets 2
Pre-release
Pre-release

@Snaipe Snaipe released this Jan 20, 2015 · 134 commits to master since this release

  • Added unique_ptr and shared_ptr macros, added smart variable attribute.
  • Added smalloc, sfree, sref, and get_smart_user_meta. Alternative allocators may be specified by setting the contents of smalloc_allocator.
Assets 2
You can’t perform that action at this time.