Changeset b94bc6c in mainline
- Timestamp:
- 2012-11-22T21:05:59Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 85eba4c
- Parents:
- c0c26ac
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
rc0c26ac rb94bc6c 57 57 */ 58 58 #define LIST_INITIALIZE(name) \ 59 list_t name = { \ 59 list_t name = LIST_INITIALIZER(name) 60 61 /** Initializer for statically allocated list. 62 * 63 * @code 64 * struct named_list { 65 * const char *name; 66 * list_t list; 67 * } var = { 68 * .name = "default name", 69 * .list = LIST_INITIALIZER(name_list.list) 70 * }; 71 * @endcode 72 * 73 * @param name Name of the new statically allocated list. 74 * 75 */ 76 #define LIST_INITIALIZER(name) \ 77 { \ 60 78 .head = { \ 61 79 .prev = &(name).head, \
Note:
See TracChangeset
for help on using the changeset viewer.