diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-08-15 09:18:44 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-17 09:58:56 -0700 |
| commit | 81d715099c93e8764d659a04a142822b8ec514e5 (patch) | |
| tree | cf4496e9b73c902461a49b9557ca036db2ab64a0 /include/ruby/internal/encoding/string.h | |
| parent | 75a4767525407755a33d3b140312c00f2cababd6 (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/encoding/string.h')
0 files changed, 0 insertions, 0 deletions
