|
CVector 4.3.0
A C++ style vector library in strict ANSI C (C89)
|
#include <stdlib.h>#include <string.h>#include <assert.h>Go to the source code of this file.
Macros | |
| #define | CVEC_MALLOC(sz) malloc(sz) |
| #define | CVEC_REALLOC(p, sz) realloc(p, sz) |
| #define | CVEC_FREE(p) free(p) |
| #define | CVEC_MEMMOVE(dst, src, sz) memmove(dst, src, sz) |
| #define | CVEC_ASSERT(x) assert(x) |
| #define | CVEC_SIZE_TYPE size_t |
| #define | CVEC_SZ |
| #define | CVEC_NEW_DECLS(TYPE) |
| #define | CVEC_NEW_DEFS(TYPE, RESIZE_MACRO) |
| #define | CVEC_NEW_DECLS2(TYPE) |
| #define | CVEC_NEW_DEFS2(TYPE, RESIZE_MACRO) |
Typedefs | |
| typedef CVEC_SIZE_TYPE | cvec_sz |
| #define CVEC_ASSERT | ( | x | ) | assert(x) |
Definition at line 60 of file cvector_macro.h.
| #define CVEC_FREE | ( | p | ) | free(p) |
Definition at line 50 of file cvector_macro.h.
| #define CVEC_MALLOC | ( | sz | ) | malloc(sz) |
Definition at line 48 of file cvector_macro.h.
| #define CVEC_MEMMOVE | ( | dst, | |
| src, | |||
| sz | |||
| ) | memmove(dst, src, sz) |
Definition at line 55 of file cvector_macro.h.
| #define CVEC_NEW_DECLS | ( | TYPE | ) |
Definition at line 79 of file cvector_macro.h.
| #define CVEC_NEW_DECLS2 | ( | TYPE | ) |
Definition at line 384 of file cvector_macro.h.
| #define CVEC_NEW_DEFS | ( | TYPE, | |
| RESIZE_MACRO | |||
| ) |
Definition at line 116 of file cvector_macro.h.
| #define CVEC_NEW_DEFS2 | ( | TYPE, | |
| RESIZE_MACRO | |||
| ) |
Definition at line 434 of file cvector_macro.h.
| #define CVEC_REALLOC | ( | p, | |
| sz | |||
| ) | realloc(p, sz) |
Definition at line 49 of file cvector_macro.h.
| #define CVEC_SIZE_TYPE size_t |
Definition at line 65 of file cvector_macro.h.
| #define CVEC_SZ |
Definition at line 69 of file cvector_macro.h.
| typedef CVEC_SIZE_TYPE cvec_sz |
Definition at line 70 of file cvector_macro.h.