Changeset 8df5f20 in mainline for uspace/lib/c/include/adt/list.h


Ignore:
Timestamp:
2019-02-11T14:56:26Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4805495
Parents:
391996b
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-01 23:26:21)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-11 14:56:26)
Message:

Rename NO_TRACE to _NO_TRACE

<trace.h> may end up transitively included from standard headers,
so it needs to be a reserved identifier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/adt/list.h

    r391996b r8df5f20  
    151151 *
    152152 */
    153 NO_TRACE static inline void link_initialize(link_t *link)
     153_NO_TRACE static inline void link_initialize(link_t *link)
    154154{
    155155        link->prev = NULL;
     
    164164 *
    165165 */
    166 NO_TRACE static inline void list_initialize(list_t *list)
     166_NO_TRACE static inline void list_initialize(list_t *list)
    167167{
    168168        list->head.prev = &list->head;
     
    200200 *
    201201 */
    202 NO_TRACE static inline void list_prepend(link_t *link, list_t *list)
     202_NO_TRACE static inline void list_prepend(link_t *link, list_t *list)
    203203{
    204204        list_insert_after(link, &list->head);
     
    213213 *
    214214 */
    215 NO_TRACE static inline void list_append(link_t *link, list_t *list)
     215_NO_TRACE static inline void list_append(link_t *link, list_t *list)
    216216{
    217217        list_insert_before(link, &list->head);
     
    226226 *
    227227 */
    228 NO_TRACE static inline void list_remove(link_t *link)
     228_NO_TRACE static inline void list_remove(link_t *link)
    229229{
    230230        if ((link->prev != NULL) && (link->next != NULL)) {
     
    243243 *
    244244 */
    245 NO_TRACE static inline bool list_empty(const list_t *list)
     245_NO_TRACE static inline bool list_empty(const list_t *list)
    246246{
    247247        return (list->head.next == &list->head);
     
    311311 *
    312312 */
    313 NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
     313_NO_TRACE static inline void headless_list_split_or_concat(link_t *part1, link_t *part2)
    314314{
    315315        part1->prev->next = part2;
     
    332332 *
    333333 */
    334 NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
     334_NO_TRACE static inline void headless_list_split(link_t *part1, link_t *part2)
    335335{
    336336        headless_list_split_or_concat(part1, part2);
     
    347347 *
    348348 */
    349 NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
     349_NO_TRACE static inline void headless_list_concat(link_t *part1, link_t *part2)
    350350{
    351351        headless_list_split_or_concat(part1, part2);
     
    362362 *
    363363 */
    364 NO_TRACE static inline void list_concat(list_t *list1, list_t *list2)
     364_NO_TRACE static inline void list_concat(list_t *list1, list_t *list2)
    365365{
    366366        list_splice(list2, list1->head.prev);
Note: See TracChangeset for help on using the changeset viewer.