ListNodePrev

Table of Contents

ListNodePrev

Description

Get item before (prev to) given list item

Parameters

NameDirectionDescription
iteminList node to get previous node of, in the list.

Success

Node before given item in list.

Failure

NULL

Usage example (Cross-references)

    if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail))                                                                     \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                            \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                        \
    if (((void *)UNPL(node)->next != (void *)UNPL(node)) &&                                        \
    ((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data))                    \
    if ((ValidateList(UNPL(pl)), 1) && (UNPL(pl)->tail))                                                                   \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                          \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                      \
    if (((void *)UNPL(node)->next != (void *)UNPL(node)) &&                                      \
    ((void *)UNPL(node)->prev != (void *)UNPL(node)) && (UNPL(node)->data))                  \
    if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail)                                                                               \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                                    \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                                \
    for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
    if (UNPL(i) >= (start) && (UNPL(node)->data))                                                      \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                                    \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                                \
    for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
    if (UNPL(i) >= (start) && (UNPL(node)->data))                                                      \
    for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false)                                \
    if ((ValidateList(UNPL(pl)), 1) && UNPL(pl)->tail)                                                                               \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                                    \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                                \
    for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
    if (UNPL(i) >= (start) && (UNPL(node)->data))                                                      \
    for (GenericListNode * UNPL(node) = (GenericListNode *)ListNodeEnd(UNPL(pl)); UNPL(node);                                    \
    UNPL(node)                   = ListNodePrev(UNPL(node)))                                                                \
    for (u64 UNPL(i) = 0; UNPL(node) && UNPL(i) < (end); UNPL(node) = ListNodePrev(UNPL(node)), ++UNPL(i)) \
    if (UNPL(i) >= (start) && (UNPL(node)->data))                                                      \
    for (bool UNPL(_once) = true; UNPL(_once); UNPL(_once) = false)                                \

Share :