summaryrefslogtreecommitdiff
path: root/point.c
diff options
context:
space:
mode:
Diffstat (limited to 'point.c')
-rw-r--r--point.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/point.c b/point.c
index 23ce492..8ef0c41 100644
--- a/point.c
+++ b/point.c
@@ -22,6 +22,10 @@ uint8_t element(struct point *point) {
}
}
+bool same_location(struct point *a, struct point *b) {
+ return a->page == b->page && a->index == b->index;
+}
+
bool at_eof(struct point *point) {
return point->index == point->page->element_count && !point->page->next;
}