diff options
author | Sverker Eriksson <[email protected]> | 2017-04-12 19:50:01 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-04-12 19:50:01 +0200 |
commit | 56c4aee677f305f2ed9ca877a39e9c3c4f266f4b (patch) | |
tree | 7468baa8a5ba2f6e9d7f11103224e8c64d0a4aab /erts/emulator/beam/io.c | |
parent | 486a758ef245effab01d880493a0274de49c1797 (diff) | |
download | otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.tar.gz otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.tar.bz2 otp-56c4aee677f305f2ed9ca877a39e9c3c4f266f4b.zip |
erts: Introduce struct binary_internals
to replace macro ERTS_INTERNAL_BINARY_FIELDS
as header in Binary and friends.
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r-- | erts/emulator/beam/io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c index a1d3f8e29f..2f3117223f 100644 --- a/erts/emulator/beam/io.c +++ b/erts/emulator/beam/io.c @@ -4901,7 +4901,7 @@ erts_port_control(Process* c_p, ASSERT(bufp <= bufp + size); ASSERT(binp->orig_bytes <= bufp && bufp + size <= binp->orig_bytes + binp->orig_size); - erts_refc_inc(&binp->refc, 1); + erts_refc_inc(&binp->intern.refc, 1); } } @@ -6907,21 +6907,21 @@ ErlDrvSInt driver_binary_get_refc(ErlDrvBinary *dbp) { Binary* bp = ErlDrvBinary2Binary(dbp); - return (ErlDrvSInt) erts_refc_read(&bp->refc, 1); + return (ErlDrvSInt) erts_refc_read(&bp->intern.refc, 1); } ErlDrvSInt driver_binary_inc_refc(ErlDrvBinary *dbp) { Binary* bp = ErlDrvBinary2Binary(dbp); - return (ErlDrvSInt) erts_refc_inctest(&bp->refc, 2); + return (ErlDrvSInt) erts_refc_inctest(&bp->intern.refc, 2); } ErlDrvSInt driver_binary_dec_refc(ErlDrvBinary *dbp) { Binary* bp = ErlDrvBinary2Binary(dbp); - return (ErlDrvSInt) erts_refc_dectest(&bp->refc, 1); + return (ErlDrvSInt) erts_refc_dectest(&bp->intern.refc, 1); } |