aboutsummaryrefslogtreecommitdiff
path: root/test/unit/fixtures/rbuffer.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-06-09 11:33:00 +0200
committerGitHub <noreply@github.com>2024-06-09 11:33:00 +0200
commit2b2dd6accf249f03f78f72c75ce7e516f1c1ac3c (patch)
treedb5c33d8cc633fae5d74cd361e0a00c12f6541cc /test/unit/fixtures/rbuffer.c
parent9afa1fd35510c5fe485f4a1dfdabf94e5f051a1c (diff)
parent78d21593a35cf89692224f1000a04d3c9fff8add (diff)
downloadrneovim-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.c28
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);
-}