MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / _memory_list_add

Function _memory_list_add

vm/ByteCodeTranslator/src/rpmalloc.c:912–922  ·  view source on GitHub ↗

Add a span to a double linked list

Source from the content-addressed store, hash-verified

910
911//! Add a span to a double linked list
912static void
913_memory_list_add(span_t** head, span_t* span) {
914 if (*head) {
915 (*head)->prev_span = span;
916 span->next_span = *head;
917 }
918 else {
919 span->next_span = 0;
920 }
921 *head = span;
922}
923
924//! Remove a span from a double linked list
925static void

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected