Add some comments to item and page
This commit is contained in:
parent
ee43ebb783
commit
ce43ccfb75
1 changed files with 5 additions and 5 deletions
10
main.c
10
main.c
|
@ -29,15 +29,15 @@ struct item {
|
||||||
struct item *next; // traverses all items
|
struct item *next; // traverses all items
|
||||||
struct item *prev_match; // previous matching item
|
struct item *prev_match; // previous matching item
|
||||||
struct item *next_match; // next 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.
|
// A page of menu items.
|
||||||
struct page {
|
struct page {
|
||||||
struct item *first;
|
struct item *first; // first item in the page
|
||||||
struct item *last;
|
struct item *last; // last item in the page
|
||||||
struct page *prev;
|
struct page *prev; // previous page
|
||||||
struct page *next;
|
struct page *next; // next page
|
||||||
};
|
};
|
||||||
|
|
||||||
struct output {
|
struct output {
|
||||||
|
|
Loading…
Add table
Reference in a new issue