diff options
author | gdt <gdt> | 2003-12-22 16:07:52 +0000 |
---|---|---|
committer | gdt <gdt> | 2003-12-22 16:07:52 +0000 |
commit | 6fc559d11392b1e5454e3867ad1578cee007b532 (patch) | |
tree | 24725ec16885febec49c0fe9c8631e400068c7ce /lib/linklist.h | |
parent | e49e38d22550d5fad6516ed1c48e165bf6bdfa4e (diff) | |
download | quagga-6fc559d11392b1e5454e3867ad1578cee007b532.tar.bz2 quagga-6fc559d11392b1e5454e3867ad1578cee007b532.tar.xz |
comments about struct list
Diffstat (limited to 'lib/linklist.h')
-rw-r--r-- | lib/linklist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index ace6dee3..331135fe 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -36,7 +36,12 @@ struct list { struct listnode *head; struct listnode *tail; + /* invariant: count is the number of listnodes in the list */ unsigned int count; + /* + * Returns -1 if val1 < val2, 0 if equal?, 1 if val1 > val2. + * Used as definition of sorted for listnode_add_sort + */ int (*cmp) (void *val1, void *val2); void (*del) (void *val); }; |