aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-02-26 14:42:11 -0500
committeradnano <me@adnano.co>2024-02-26 14:42:11 -0500
commitce43ccfb75525aba40c2c3be82e5d9b129b047eb (patch)
tree9a8ade5589ed29848aa25eb963155ec25a5b6f96
parentee43ebb7832bdd3a8c47b58c08d5ccff8dda7005 (diff)
downloadwmenu-ce43ccfb75525aba40c2c3be82e5d9b129b047eb.tar.gz
Add some comments to item and page
-rw-r--r--main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.c b/main.c
index 3cd8eec..369799c 100644
--- a/main.c
+++ b/main.c
@@ -29,15 +29,15 @@ struct item {
struct item *next; // traverses all items
struct item *prev_match; // previous matching item
struct item *next_match; // next matching item
- struct page *page;
+ struct page *page; // the page holding this item
};
// A page of menu items.
struct page {
- struct item *first;
- struct item *last;
- struct page *prev;
- struct page *next;
+ struct item *first; // first item in the page
+ struct item *last; // last item in the page
+ struct page *prev; // previous page
+ struct page *next; // next page
};
struct output {