#include "ellipsis-carray.h"
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include "utils/ellipsis-error.h"
#include "utils/ellipsis-init.h"
#include <stdio.h>
#include <stdint.h>
Macros | |
#define | ELLIPSIS_CONTRACT(COUNT, COND, ACTION, VERB, CSTR, CTYPE, ...) |
#define | ELLIPSIS_CONTRACT_CHECK_STATIC(CTYPE, COND, CSTR, ...) |
#define | ELLIPSIS_CONTRACT_ICE_OR_TRUE(...) |
#define | ELLIPSIS_CONTRACT_IMPL(COUNT, COND, ACTION, VERB, CSTR, CTYPE, ...) |
#define | ELLIPSIS_CONTRACT_VIOLATION(COUNT, VERB, CTYPE, CSTR, ...) |
#define | ELLIPSIS_TEST_ICE(...) (false ? ELLIPSIS_TO_VOIDS(__VA_ARGS__) : (ellipsis‿contracts‿is_ice*)nullptr) |
#define | ELLIPSIS_TO_VOIDS(...) ((void*)((uintptr_t)((__VA_ARGS__)-(__VA_ARGS__)))) |
#define | STRINGIFY(...) STRINGIFY_(__VA_ARGS__) |
#define | STRINGIFY_(...) #__VA_ARGS__ |
Typedefs | |
typedef struct ellipsis‿contracts‿is_ice | ellipsis‿contracts‿is_ice |
Functions | |
ellipsis‿carray * | ellipsis‿carray‿alloc‿_Inner (size_t len) |
ellipsis‿carray * | ellipsis‿carray‿append‿_Inner (ellipsis‿carray *restrict s, s->array[0] c) |
int | ellipsis‿carray‿compare (ellipsis‿carray const *s, ellipsis‿carray const *t) |
ellipsis‿carray * | ellipsis‿carray‿concat‿_Inner (ellipsis‿carray const *s, ellipsis‿carray const *t) |
ellipsis‿carray * | ellipsis‿carray‿concat_inplace‿_Inner (ellipsis‿carray const *s0, ellipsis‿carray const *t) |
ellipsis‿carray const * | ellipsis‿carray‿cpy_const‿_Inner (ellipsis‿carray const *restrict s) |
void | ellipsis‿carray‿delete (ellipsis‿carray const *s) |
ellipsis‿carray * | ellipsis‿carray‿grow‿_Inner (ellipsis‿carray *restrict s, size_t length) |
ellipsis‿carray * | ellipsis‿carray‿remove (ellipsis‿carray s[restrict static 1], size_t amount) |
ellipsis‿carray * | ellipsis‿carray‿shrink‿_Inner (ellipsis‿carray s[restrict static 1], size_t length) |
ellipsis‿carray * | ellipsis‿carray‿sub‿_Inner (ellipsis‿carray const *s, size_t pos, size_t len) |
Variables | |
thread_local bool volatile | ellipsis‿contracts‿ignore‿dynamic |
thread_local bool volatile | ellipsis‿contracts‿proceed‿dynamic |
thread_local bool volatile | ellipsis‿contracts‿verbose‿dynamic |
#define ELLIPSIS_CONTRACT | ( | COUNT, | |
COND, | |||
ACTION, | |||
VERB, | |||
CSTR, | |||
CTYPE, | |||
... | |||
) |
#define ELLIPSIS_CONTRACT_CHECK_STATIC | ( | CTYPE, | |
COND, | |||
CSTR, | |||
... | |||
) |
#define ELLIPSIS_CONTRACT_ICE_OR_TRUE | ( | ... | ) |
#define ELLIPSIS_CONTRACT_IMPL | ( | COUNT, | |
COND, | |||
ACTION, | |||
VERB, | |||
CSTR, | |||
CTYPE, | |||
... | |||
) |
#define ELLIPSIS_CONTRACT_VIOLATION | ( | COUNT, | |
VERB, | |||
CTYPE, | |||
CSTR, | |||
... | |||
) |
#define ELLIPSIS_TEST_ICE | ( | ... | ) | (false ? ELLIPSIS_TO_VOIDS(__VA_ARGS__) : (ellipsis‿contracts‿is_ice*)nullptr) |
#define ELLIPSIS_TO_VOIDS | ( | ... | ) | ((void*)((uintptr_t)((__VA_ARGS__)-(__VA_ARGS__)))) |
#define STRINGIFY | ( | ... | ) | STRINGIFY_(__VA_ARGS__) |
#define STRINGIFY_ | ( | ... | ) | #__VA_ARGS__ |
typedef struct ellipsis‿contracts‿is_ice ellipsis‿contracts‿is_ice |
ellipsis‿carray * ellipsis‿carray‿alloc‿_Inner | ( | size_t | len | ) |
References ellipsis‿carray::array, ellipsis‿carray::length, and ellipsis‿carray::length_mod.
Referenced by ellipsis‿carray::ellipsis‿carray‿alloc‿_Ctra().
ellipsis‿carray * ellipsis‿carray‿append‿_Inner | ( | ellipsis‿carray *restrict | s, |
s->array | c[0] | ||
) |
Referenced by ellipsis‿carray::ellipsis‿carray‿append‿_Ctra().
int ellipsis‿carray‿compare | ( | ellipsis‿carray const * | s, |
ellipsis‿carray const * | t | ||
) |
ellipsis‿carray * ellipsis‿carray‿concat‿_Inner | ( | ellipsis‿carray const * | s, |
ellipsis‿carray const * | t | ||
) |
References ellipsis‿carray::array, and ellipsis‿carray::length.
Referenced by ellipsis‿carray::ellipsis‿carray‿concat‿_Ctra().
ellipsis‿carray * ellipsis‿carray‿concat_inplace‿_Inner | ( | ellipsis‿carray const * | s0, |
ellipsis‿carray const * | t | ||
) |
References ellipsis‿carray::array, ellipsis‿carray::capacity, ellipsis‿carray::length, and ellipsis‿carray::length_mod.
Referenced by ellipsis‿carray::ellipsis‿carray‿concat_inplace‿_Ctra().
ellipsis‿carray const * ellipsis‿carray‿cpy_const‿_Inner | ( | ellipsis‿carray const *restrict | s | ) |
Referenced by ellipsis‿carray::ellipsis‿carray‿cpy_const‿_Ctra().
void ellipsis‿carray‿delete | ( | ellipsis‿carray const * | s | ) |
Referenced by ellipsis‿include‿_Once‿atexit‿callback(), ellipsis‿include‿fopen(), and ellipsis‿infra‿_Once‿atexit‿callback().
ellipsis‿carray * ellipsis‿carray‿grow‿_Inner | ( | ellipsis‿carray *restrict | s, |
size_t | length | ||
) |
References ellipsis_alloc_flex, ellipsis_init_flex, ellipsis_realloc_flex, and ellipsis‿carray::length.
Referenced by ellipsis‿carray::ellipsis‿carray‿grow‿_Ctra().
ellipsis‿carray * ellipsis‿carray‿remove | ( | ellipsis‿carray | s[restrict static 1], |
size_t | amount | ||
) |
Referenced by ellipsis‿infra‿down().
ellipsis‿carray * ellipsis‿carray‿shrink‿_Inner | ( | ellipsis‿carray | s[restrict static 1], |
size_t | length | ||
) |
References ellipsis_realloc_flex, and ELLIPSIS_WARNING.
Referenced by ellipsis‿carray::ellipsis‿carray‿shrink‿_Ctra().
ellipsis‿carray * ellipsis‿carray‿sub‿_Inner | ( | ellipsis‿carray const * | s, |
size_t | pos, | ||
size_t | len | ||
) |
References ellipsis‿carray::array, ellipsis‿carray::length, and ellipsis‿carray::length_mod.
Referenced by ellipsis‿carray::ellipsis‿carray‿sub‿_Ctra().
|
extern |
|
extern |
|
extern |