summaryrefslogtreecommitdiff
path: root/inits.c
diff options
context:
space:
mode:
authorKenta Murata <mrkn@users.noreply.github.com>2020-09-25 20:32:02 +0900
committerGitHub <noreply@github.com>2020-09-25 20:32:02 +0900
commit890bc2cdde4097390f3b71dfeaa36dd92ee0afe2 (patch)
treeb06641556aa22c6d4aa37200c00ffaf23f6838b7 /inits.c
parent6eeacbbc3603bcd63a53e43a2002ca0872945e9f (diff)
Buffer protocol proposal (#3261)
* Add buffer protocol * Modify for some review comments * Per-object buffer availability * Rename to MemoryView from Buffer and make compilable * Support integral repeat count in memory view format * Support 'x' for padding bytes * Add rb_memory_view_parse_item_format * Check type in rb_memory_view_register * Update dependencies in common.mk * Add test of MemoryView * Add test of rb_memory_view_init_as_byte_array * Add native size format test * Add MemoryView test utilities * Add test of rb_memory_view_fill_contiguous_strides * Skip spaces in format string * Support endianness specifiers * Update documentation * Support alignment * Use RUBY_ALIGNOF * Fix format parser to follow the pack format * Support the _ modifier * Parse count specifiers in get_format_size function. * Use STRUCT_ALIGNOF * Fix test * Fix test * Fix total size for the case with tail padding * Fix rb_memory_view_get_item_pointer * Fix rb_memory_view_parse_item_format again
Notes
Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
Diffstat (limited to 'inits.c')
-rw-r--r--inits.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/inits.c b/inits.c
index b36b162a42..f636748101 100644
--- a/inits.c
+++ b/inits.c
@@ -70,6 +70,7 @@ rb_call_inits(void)
CALL(Cont);
CALL(Rational);
CALL(Complex);
+ CALL(MemoryView);
CALL(version);
CALL(vm_trace);
CALL(vm_stack_canary);