Changeset 235d31d in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2014-12-22T17:47:40Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c7d5ad
- Parents:
- eae91e0 (diff), 759ea0d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/list.h
reae91e0 r235d31d 58 58 */ 59 59 #define LIST_INITIALIZE(name) \ 60 list_t name = { \ 60 list_t name = LIST_INITIALIZER(name) 61 62 /** Initializer for statically allocated list. 63 * 64 * @code 65 * struct named_list { 66 * const char *name; 67 * list_t list; 68 * } var = { 69 * .name = "default name", 70 * .list = LIST_INITIALIZER(name_list.list) 71 * }; 72 * @endcode 73 * 74 * @param name Name of the new statically allocated list. 75 * 76 */ 77 #define LIST_INITIALIZER(name) \ 78 { \ 61 79 .head = { \ 62 80 .prev = &(name).head, \
Note:
See TracChangeset
for help on using the changeset viewer.