commit | 0379afcb5ccde58d233f077d4f5a5d72dd832678 | [log] [tgz] |
---|---|---|
author | Greg Hackmann <[email protected]> | Mon Jun 08 12:46:24 2015 -0700 |
committer | Greg Hackmann <[email protected]> | Mon Jun 08 16:29:31 2015 -0700 |
tree | 8235f4ccf293e5310958c468f4e29d2aa73f66c2 | |
parent | db0e3195332b02d073a0d0cede8e59856a186dad [diff] |
inc: list: minor API improvements (1) Remove extern "C" guards since nothing here has external linkage (2) Add helpers to initialize list heads, remove nodes, and check if a list is empty (3) Treat list->next == NULL as a valid empty list, so list heads can be statically initialized to 0 at compile time and still work Change-Id: I54f62395cdac869af91a34259e25883a35e3a44d Signed-off-by: Greg Hackmann <[email protected]>