summaryrefslogtreecommitdiff
path: root/include/ruby/memory_view.h
diff options
context:
space:
mode:
authorKenta Murata <mrkn@users.noreply.github.com>2021-09-06 16:01:52 +0900
committerGitHub <noreply@github.com>2021-09-06 16:01:52 +0900
commitf8bb2d9b2724b4a74322ac82d27c32a61153e8dd (patch)
treee6d8c441f0fd07e119a0a151bb81d218222df8ae /include/ruby/memory_view.h
parenta5e323f5edb85fa1bd94bb1e67b8ef8f6827056d (diff)
memory_view.c: Rename private to private_data for C++ (#4812)
* memory_view.c: Rename private to private_data for C++ * doc/memory_view.md: Update document * Fix doc/memory_view.md Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Notes
Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
Diffstat (limited to 'include/ruby/memory_view.h')
-rw-r--r--include/ruby/memory_view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/memory_view.h b/include/ruby/memory_view.h
index 4492c06b38..a67c1c0045 100644
--- a/include/ruby/memory_view.h
+++ b/include/ruby/memory_view.h
@@ -100,7 +100,7 @@ typedef struct {
const ssize_t *sub_offsets;
/* the private data for managing this exported memory */
- void *const private;
+ void *private_data;
} rb_memory_view_t;
typedef bool (* rb_memory_view_get_func_t)(VALUE obj, rb_memory_view_t *view, int flags);