summaryrefslogtreecommitdiff
path: root/include/ruby/internal/intern/array.h
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2023-08-15 09:18:44 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2023-08-17 09:58:56 -0700
commit81d715099c93e8764d659a04a142822b8ec514e5 (patch)
treecf4496e9b73c902461a49b9557ca036db2ab64a0 /include/ruby/internal/intern/array.h
parent75a4767525407755a33d3b140312c00f2cababd6 (diff)
[ruby/yarp] Treat yp_buffer_t as an opaque pointer
Right now, we have to keep the buffer FFI object in sync with the definition of yp_buffer_t because we access its fields directly. If we add more fields or change the order, things will get out of sync. Instead, let's treat yp_buffer_t as an opaque pointer and access its fields through accessor functions directly. This is more consistent with how we handle strings anyway. https://github.com/ruby/yarp/commit/878d845eff
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8234
Diffstat (limited to 'include/ruby/internal/intern/array.h')
0 files changed, 0 insertions, 0 deletions