diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-09 11:33:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-09 11:33:00 +0200 |
commit | 2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c (patch) | |
tree | db5c33d8cc633fae5d74cd361e0a00c12f6541cc /test/unit/fixtures/rbuffer.c | |
parent | 9afa1fd35510c5fe485f4a1dfdabf94e5f051a1c (diff) | |
parent | 78d21593a35cf89692224f1000a04d3c9fff8add (diff) | |
download | rneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.tar.gz rneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.tar.bz2 rneovim-2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c.zip |
Merge pull request #29141 from bfredl/rstream2
refactor(io): make rstream use a linear buffer
Diffstat (limited to 'test/unit/fixtures/rbuffer.c')
-rw-r--r-- | test/unit/fixtures/rbuffer.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/unit/fixtures/rbuffer.c b/test/unit/fixtures/rbuffer.c deleted file mode 100644 index d587d6b054..0000000000 --- a/test/unit/fixtures/rbuffer.c +++ /dev/null @@ -1,28 +0,0 @@ -#include "nvim/rbuffer.h" -#include "rbuffer.h" - - -void ut_rbuffer_each_read_chunk(RBuffer *buf, each_ptr_cb cb) -{ - RBUFFER_UNTIL_EMPTY(buf, rptr, rcnt) { - cb(rptr, rcnt); - rbuffer_consumed(buf, rcnt); - } -} - -void ut_rbuffer_each_write_chunk(RBuffer *buf, each_ptr_cb cb) -{ - RBUFFER_UNTIL_FULL(buf, wptr, wcnt) { - cb(wptr, wcnt); - rbuffer_produced(buf, wcnt); - } -} -void ut_rbuffer_each(RBuffer *buf, each_cb cb) -{ - RBUFFER_EACH(buf, c, i) cb(c, i); -} - -void ut_rbuffer_each_reverse(RBuffer *buf, each_cb cb) -{ - RBUFFER_EACH_REVERSE(buf, c, i) cb(c, i); -} |