summaryrefslogtreecommitdiff
path: root/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'list.h')
-rw-r--r--list.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/list.h b/list.h
index 615be05437..0b91647be4 100644
--- a/list.h
+++ b/list.h
@@ -140,6 +140,22 @@ struct exec_node {
this->prev->next = before;
this->prev = before;
}
+
+ /**
+ * Is this the sentinal at the tail of the list?
+ */
+ bool is_tail_sentinal() const
+ {
+ return this->next == NULL;
+ }
+
+ /**
+ * Is this the sentinal at the head of the list?
+ */
+ bool is_head_sentinal() const
+ {
+ return this->prev == NULL;
+ }
#endif
};