*
* \return The number of buffers that have been available (zero, one or two).
*/
-int btr_merge(struct btr_node *btrn)
+static int merge_input(struct btr_node *btrn)
{
struct btr_buffer_reference *brs[2], *br;
char *bufs[2], *buf;
return 2;
}
-void btr_merge_to(struct btr_node *btrn, size_t dest_size)
+void btr_merge(struct btr_node *btrn, size_t dest_size)
{
for (;;) {
char *buf;
size_t len = btr_next_buffer(btrn, &buf);
if (len >= dest_size)
return;
- if (btr_merge(btrn) < 2)
+ if (merge_input(btrn) < 2)
return;
}
}
void btr_splice_out_node(struct btr_node *btrn);
void btr_pushdown(struct btr_node *btrn);
void *btr_context(struct btr_node *btrn);
-int btr_merge(struct btr_node *btrn);
-void btr_merge_to(struct btr_node *btrn, size_t dest_size);
+void btr_merge(struct btr_node *btrn, size_t dest_size);
bool btr_eof(struct btr_node *btrn);
return 0;
assert(iqs != 0);
/* avoid "buffer too small" errors from the decoder */
- btr_merge_to(btrn, min_len);
+ btr_merge(btrn, min_len);
return 1;
}