ext/nmatrix/storage/list/list.h in nmatrix-0.2.0 vs ext/nmatrix/storage/list/list.h in nmatrix-0.2.1

- old
+ new

@@ -31,11 +31,12 @@ /* * Standard Includes */ -#include <stdlib.h> +#include <ruby.h> +#include <cstdlib> #include <list> /* * Project Includes */ @@ -67,20 +68,20 @@ //////////////// // Lifecycle // /////////////// - LIST_STORAGE* nm_list_storage_create(nm::dtype_t dtype, size_t* shape, size_t dim, void* init_val); - void nm_list_storage_delete(STORAGE* s); - void nm_list_storage_delete_ref(STORAGE* s); - void nm_list_storage_mark(STORAGE*); + LIST_STORAGE* nm_list_storage_create(nm::dtype_t dtype, size_t* shape, size_t dim, void* init_val); + void nm_list_storage_delete(STORAGE* s); + void nm_list_storage_delete_ref(STORAGE* s); + void nm_list_storage_mark(STORAGE*); void nm_list_storage_register(const STORAGE* s); void nm_list_storage_unregister(const STORAGE* s); void nm_list_storage_register_list(const LIST* l, size_t recursions); void nm_list_storage_unregister_list(const LIST* l, size_t recursions); void nm_list_storage_register_node(const NODE* n); void nm_list_storage_unregister_node(const NODE* n); - void nm_list_storage_completely_unregister_node(const NODE* curr); + void nm_list_storage_completely_unregister_node(const NODE* curr); /////////////// // Accessors // /////////////// VALUE nm_list_each_with_indices(VALUE nmatrix, bool stored);