#include "token/ellipsis-tarray.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 |
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‿token‿array * ellipsis‿token‿array‿alloc‿_Inner | ( | size_t | len | ) |
References ellipsis‿token‿array::array, ellipsis‿token‿array::length, and ellipsis‿token‿array::length_mod.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿alloc‿_Ctra().
ellipsis‿token‿array * ellipsis‿token‿array‿append‿_Inner | ( | ellipsis‿token‿array *restrict | s, |
s->array | c[0] | ||
) |
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿append‿_Ctra().
int ellipsis‿token‿array‿compare | ( | ellipsis‿token‿array const * | s, |
ellipsis‿token‿array const * | t | ||
) |
ellipsis‿token‿array * ellipsis‿token‿array‿concat‿_Inner | ( | ellipsis‿token‿array const * | s, |
ellipsis‿token‿array const * | t | ||
) |
References ellipsis‿token‿array::array, and ellipsis‿token‿array::length.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿concat‿_Ctra().
ellipsis‿token‿array * ellipsis‿token‿array‿concat_inplace‿_Inner | ( | ellipsis‿token‿array const * | s0, |
ellipsis‿token‿array const * | t | ||
) |
References ellipsis‿token‿array::array, ellipsis‿token‿array::capacity, ellipsis‿token‿array::length, and ellipsis‿token‿array::length_mod.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿concat_inplace‿_Ctra().
ellipsis‿token‿array const * ellipsis‿token‿array‿cpy_const‿_Inner | ( | ellipsis‿token‿array const *restrict | s | ) |
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿cpy_const‿_Ctra().
void ellipsis‿token‿array‿delete | ( | ellipsis‿token‿array const * | s | ) |
Referenced by ellipsis‿token‿dictionary::ellipsis‿token‿dictionary‿destroy(), and ellipsis‿token‿dictionary::ellipsis‿token‿dictionary‿fputs().
ellipsis‿token‿array * ellipsis‿token‿array‿grow‿_Inner | ( | ellipsis‿token‿array *restrict | s, |
size_t | length | ||
) |
References ellipsis_alloc_flex, ellipsis_init_flex, ellipsis_realloc_flex, and ellipsis‿token‿array::length.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿grow‿_Ctra().
ellipsis‿token‿array * ellipsis‿token‿array‿remove | ( | ellipsis‿token‿array | s[restrict static 1], |
size_t | amount | ||
) |
ellipsis‿token‿array * ellipsis‿token‿array‿shrink‿_Inner | ( | ellipsis‿token‿array | s[restrict static 1], |
size_t | length | ||
) |
References ellipsis_realloc_flex, and ELLIPSIS_WARNING.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿shrink‿_Ctra().
ellipsis‿token‿array * ellipsis‿token‿array‿sub‿_Inner | ( | ellipsis‿token‿array const * | s, |
size_t | pos, | ||
size_t | len | ||
) |
References ellipsis‿token‿array::array, ellipsis‿token‿array::length, and ellipsis‿token‿array::length_mod.
Referenced by ellipsis‿token‿array::ellipsis‿token‿array‿sub‿_Ctra().
|
extern |
|
extern |
|
extern |