CVector
4.1.0
A C++ style vector library in strict ANSI C (C89)
|
#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 59 of file cvector_macro.h.
#define CVEC_FREE | ( | p | ) | free(p) |
Definition at line 49 of file cvector_macro.h.
#define CVEC_MALLOC | ( | sz | ) | malloc(sz) |
Definition at line 47 of file cvector_macro.h.
#define CVEC_MEMMOVE | ( | dst, | |
src, | |||
sz | |||
) | memmove(dst, src, sz) |
Definition at line 54 of file cvector_macro.h.
#define CVEC_NEW_DECLS | ( | TYPE | ) |
Definition at line 77 of file cvector_macro.h.
#define CVEC_NEW_DECLS2 | ( | TYPE | ) |
Definition at line 381 of file cvector_macro.h.
#define CVEC_NEW_DEFS | ( | TYPE, | |
RESIZE_MACRO | |||
) |
Definition at line 114 of file cvector_macro.h.
#define CVEC_NEW_DEFS2 | ( | TYPE, | |
RESIZE_MACRO | |||
) |
Definition at line 431 of file cvector_macro.h.
#define CVEC_REALLOC | ( | p, | |
sz | |||
) | realloc(p, sz) |
Definition at line 48 of file cvector_macro.h.
#define CVEC_SIZE_TYPE size_t |
Definition at line 63 of file cvector_macro.h.
#define CVEC_SZ |
Definition at line 67 of file cvector_macro.h.
typedef CVEC_SIZE_TYPE cvec_sz |
Definition at line 68 of file cvector_macro.h.