From f8bb2d9b2724b4a74322ac82d27c32a61153e8dd Mon Sep 17 00:00:00 2001 From: Kenta Murata Date: Mon, 6 Sep 2021 16:01:52 +0900 Subject: 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 Co-authored-by: Sutou Kouhei --- include/ruby/memory_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby/memory_view.h') 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); -- cgit v1.2.3