Changeset 7dd2561 in mainline for generic/include/list.h
- Timestamp:
- 2005-12-15T15:24:52Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 80d2bdb
- Parents:
- dc747e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/list.h
rdc747e3 r7dd2561 33 33 #include <typedefs.h> 34 34 35 /** Doubly linked list head and link type. */ 35 36 struct link { 36 link_t *prev; 37 link_t *next; 37 link_t *prev; /**< Pointer to the previous item in the list. */ 38 link_t *next; /**< Pointer to the next item in the list. */ 38 39 }; 40 41 /** Declare and initialize statically allocated list. 42 * 43 * @param name Name of the new statically allocated list. 44 */ 45 #define LIST_INITIALIZE(name) link_t name = { .prev = &name, .next = &name } 39 46 40 47 /** Initialize doubly-linked circular list link
Note:
See TracChangeset
for help on using the changeset viewer.