Skip to content
Commit 9faa42f5 authored by Andrew Boie's avatar Andrew Boie Committed by Anas Nashif
Browse files

slist: abstract node and list implementation



Singly-linked lists work in a specific way, but this will allow
slist semantics to be defined for any data structure that can store
a "next" pointer in any way at all, possibly something not even
a pointer value, but a table index.

The immediate need for this patch is to allow the easy definition
of an slist variant which stores flags in the low-order bits of the
node pointer.

The compiler does not need them, but the function prototypes have
been left in slist.h to make the header easier to understand by
the end user and not confuse Doxygen.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent f9b2da37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment