dmd.backend.dlist

Interface to the C linked list type.

List is a complete package of functions to deal with singly linked lists of pointers or integers. Features: 1. Uses mem package. 2. Has loop-back tests. 3. Each item in the list can have multiple predecessors, enabling different lists to 'share' a common tail.

Members

Aliases

list_free_fp
alias list_free_fp = void function(void*) @(nogc) nothrow
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
list_t
alias list_t = LIST*
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Functions

list_alloc
list_t list_alloc()
Undocumented in source. Be warned that the author may not have intended to support it.
list_append
list_t list_append(list_t* plist, void* ptr)

Append ptr to *plist.

list_apply
void list_apply(list_t* plist, void function(void*) @(nogc) nothrow fp)

Apply a function fp to each member of a list.

list_data
int list_data(list_t list)
list_delete
void list_delete(list_t list)
Undocumented in source. Be warned that the author may not have intended to support it.
list_equal
int list_equal(list_t list1, list_t list2)

Compare two lists.

list_free
void list_free(list_t* plist, list_free_fp freeptr)

Free list.

list_free
void list_free(list_t* l)
Undocumented in source. Be warned that the author may not have intended to support it.
list_inlist
list_t list_inlist(list_t list, void* ptr)

Search for ptr in list.

list_new
list_t list_new()
Undocumented in source. Be warned that the author may not have intended to support it.
list_next
list_t list_next(list_t list)
list_nitems
int list_nitems(list_t list)

Count up and return number of items in list.

list_nth
list_t list_nth(list_t list, int n)
list_pop
void* list_pop(list_t* plist)

Remove first element in list pointed to by *plist.

list_prepend
list_t list_prepend(list_t* plist, void* ptr)

Prepend ptr to *plist.

list_prependdata
void list_prependdata(list_t* plist, int d)

Prepend integer item to list.

list_ptr
inout(void)* list_ptr(list_t list)
list_reverse
list_t list_reverse(list_t l)

Reverse a list in place.

list_subtract
void* list_subtract(list_t* plist, void* ptr)

Remove ptr from the list pointed to by *plist. Output: *plist is updated to be the start of the new list

Manifest constants

FPNULL
enum FPNULL;
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Structs

LIST
struct LIST
Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
ListRange
struct ListRange

Range for Lists.

Meta