Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export nary_set_pointer method #170

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/numo/narray/narray.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ na_s_eye(int argc, VALUE *argv, VALUE klass)
#define READ 1
#define WRITE 2

static void
void
na_set_pointer(VALUE self, char *ptr, size_t byte_size)
{
VALUE obj;
Expand Down
1 change: 1 addition & 0 deletions ext/numo/narray/narray.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nary_get_pointer_for_write
nary_get_pointer_for_read
nary_get_pointer_for_read_write
nary_get_offset
nary_set_pointer
nary_copy_flags
nary_check_ladder
nary_check_contiguous
Expand Down
2 changes: 2 additions & 0 deletions ext/numo/narray/numo/intern.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ char *nary_get_pointer_for_read(VALUE);
char *nary_get_pointer_for_read_write(VALUE);
#define na_get_offset nary_get_offset
size_t nary_get_offset(VALUE self);
#define na_set_pointer nary_set_pointer
void nary_set_pointer(VALUE self, char *ptr, size_t byte_size);

#define na_copy_flags nary_copy_flags
void nary_copy_flags(VALUE src, VALUE dst);
Expand Down