projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Consolidate decoder code by introducing prepare_filter_node().
[paraslash.git]
/
buffer_tree.c
diff --git
a/buffer_tree.c
b/buffer_tree.c
index 2c02c69466f19111241aa835dd2f919cf710ecc0..7e0ec2786c193ae3718664a6436ea611d0eceb06 100644
(file)
--- a/
buffer_tree.c
+++ b/
buffer_tree.c
@@
-363,3
+363,11
@@
void btr_merge_to(struct btr_node *btrn, size_t dest_size)
return;
}
}
+
+bool btr_eof(struct btr_node *btrn)
+{
+ char *buf;
+ size_t len = btr_next_buffer(btrn, &buf);
+
+ return (len == 0 && btr_no_parent(btrn));
+}