diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-02-06 18:35:02 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2023-02-06 18:35:02 +0000 |
commit | bf1dca5be2fda19dc84765ddbf39ae99376b8864 (patch) | |
tree | d2de8db4793edaa102f71defed14eacd009ff117 /sys/src/cmd/7c | |
parent | 74cc358c2cfb4c50954a35cbcbeec4e67889f030 (diff) |
libmemdraw: don't return Buffer copy from calc functions
The calc functions get their buffers passed by value.
This is convenient as the code usually modifies the
buffers during iteration.
However, making ANOTHER copy (odst) and returning it
at the end is a bit silly. We already made a copy
when passing the arguments, and the caller of the
calc function can just reuse the copy it already has.
So changing the return type from Buffer to void.
Diffstat (limited to 'sys/src/cmd/7c')
0 files changed, 0 insertions, 0 deletions