List
- Macro
- October 8, 2025
Table of Contents
List
List
Description
Double linked list. FIELDS: - head : Reference to head node of linked list. - tail : Reference to tail node of linked list. - copy_init : A user-provided type-specific method to initialize copies of types. - copy_deinit : A user-provided type-specific method deinitialize already created copies of types. - length : Length of this linked list.
Usage example (Cross-references)
- In
List.c:1
:
#include <Misra/Std/Container/List.h>
#include <Misra/Std/Log.h>
- In
List.c:99
:
if (start + count > list->length) {
LOG_FATAL("List range out of bounds.");
}
- In
List.c:329
:
void validate_list(const GenericList *l) {
if (!(l)) {
LOG_FATAL("List pointer is NULL.");
}
if ((l)->__magic != MISRA_LIST_MAGIC) {
int total_deadend_tests = sizeof(deadend_tests) / sizeof(deadend_tests[0]);
typedef List(int) LI;
LI li = ListInit();
ListForeach(&li, i) {
- In
Container.h:18
:
#include <Misra/Std/Container/Str.h>
#include <Misra/Std/Container/Vec.h>
#include <Misra/Std/Container/List.h>
#include <Misra/Std/Container/BitVec.h>
- In
List.h:11
:
// clang-format off
#include "List/Type.h"
#include "List/Init.h"
#include "List/Insert.h"
- In
List.h:12
:
// clang-format off
#include "List/Type.h"
#include "List/Init.h"
#include "List/Insert.h"
#include "List/Remove.h"
- In
List.h:13
:
#include "List/Type.h"
#include "List/Init.h"
#include "List/Insert.h"
#include "List/Remove.h"
#include "List/Access.h"
- In
List.h:14
:
#include "List/Init.h"
#include "List/Insert.h"
#include "List/Remove.h"
#include "List/Access.h"
#include "List/Foreach.h"
- In
List.h:15
:
#include "List/Insert.h"
#include "List/Remove.h"
#include "List/Access.h"
#include "List/Foreach.h"
#include "List/Ops.h"
- In
List.h:16
:
#include "List/Remove.h"
#include "List/Access.h"
#include "List/Foreach.h"
#include "List/Ops.h"
#include "List/Private.h"
- In
List.h:17
:
#include "List/Access.h"
#include "List/Foreach.h"
#include "List/Ops.h"
#include "List/Private.h"
// clang-format on
- In
List.h:18
:
#include "List/Foreach.h"
#include "List/Ops.h"
#include "List/Private.h"
// clang-format on
- In
Private.h:10
:
#define MISRA_STD_CONTAINER_LIST_PRIVATE_H
#include <Misra/Std/Container/List/Type.h>
void deinit_list(GenericList *list, u64 item_size);
- In
ListInt.c:9
:
#include "../Harness.h"
#include "ListInt.h"
#include <Misra/Std/Container/List.h>
#include <Misra/Std/Log.h>
- In
ListInt.h:10
:
#define FUZZ_LIST_INT_H
#include <Misra/Std/Container/List.h>
#include <Misra/Types.h>
- In
ListInt.h:14
:
// List(i32) typedef
typedef List(i32) IntList;
// List(i32) function enumeration