|
Derive-C
|
#include <derive-c/core/includes/def.h>#include "includes.h"#include <derive-c/core/alloc/def.h>#include <derive-c/core/self/def.h>#include <derive-c/core/self/undef.h>#include <derive-c/core/alloc/undef.h>#include <derive-c/core/includes/undef.h>Go to the source code of this file.
Data Structures | |
| struct | SELF |
| An allocator that prints to stdout when it allocates or frees memory. More... | |
Macros | |
| #define | INVARIANT_CHECK(self) |
Functions | |
| static ssize_t PRIV | read (void *capture, char *buf, size_t size) |
| static ssize_t PRIV | write (void *capture, const char *data, size_t size) |
| static int PRIV | seek (void *capture, off_t *offset, int whence) |
| static int PRIV | close (void *capture) |
| static DC_PUBLIC SELF | new (ref alloc_ref) |
| static DC_PUBLIC FILE * | stream (SELF *self) |
| static DC_PUBLIC void | reset (SELF *self) |
| Resets the string, but keps the same stream pointer alive. | |
| static DC_PUBLIC char const * | string (SELF const *self) |
| Gets access to the null terminated string. | |
| static DC_PUBLIC char * | release_string (SELF *self) |
| static DC_PUBLIC size_t | string_size (SELF *self) |
| static DC_PUBLIC void | delete (SELF *self) |
Variables | |
| static size_t const | additional_alloc_size = 32 |
| #define INVARIANT_CHECK | ( | self | ) |
Definition at line 26 of file template.h.
|
static |
Definition at line 92 of file template.h.
Definition at line 165 of file template.h.
Definition at line 98 of file template.h.
|
static |
Definition at line 32 of file template.h.
Disowns the current string, free/management with chosen allocator determined by user. DANGER: The user needs to be careful to cleanup the string using the same allocator as the string builder.
Definition at line 150 of file template.h.
Resets the string, but keps the same stream pointer alive.
Definition at line 133 of file template.h.
|
static |
Definition at line 80 of file template.h.
Definition at line 108 of file template.h.
Gets access to the null terminated string.
Definition at line 139 of file template.h.
Definition at line 160 of file template.h.
|
static |
Definition at line 44 of file template.h.
|
static |
Definition at line 24 of file template.h.