Changeset b1c57a8 in mainline for uspace/lib/c/include/adt/list.h
- Timestamp:
- 2014-10-09T15:03:55Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e367939c
- Parents:
- 21799398 (diff), 207e8880 (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
r21799398 rb1c57a8 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.