#include "comma/runtime/crt_vstack.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | vstack_entry |
Typedefs | |
typedef struct vstack_entry * | vstack_entry_t |
Functions | |
static vstack_entry_t | get_vstack_entry () |
static void | set_vstack_entry (vstack_entry_t entry) |
void | _comma_vstack_alloc (int32_t size) |
void | _comma_vstack_push (void *data, int32_t size) |
void | _comma_vstack_pop () |
Variables | |
char * | _comma_vstack = 0 |
typedef struct vstack_entry* vstack_entry_t |
Definition at line 22 of file crt_vstack.c.
void _comma_vstack_alloc | ( | int32_t | size | ) |
Allocates a region of size
bytes on the vstack.
The allocated data is available thru the _comma_vstack pointer, and will be disposed of when a matching call to _comma_vstack_pop() is made.
Definition at line 51 of file crt_vstack.c.
void _comma_vstack_pop | ( | ) |
Pops the vstack and resets _comma_vstack to the next item.
Definition at line 68 of file crt_vstack.c.
void _comma_vstack_push | ( | void * | data, | |
int32_t | size | |||
) |
Copy's size
bytes from data
onto the vstack.
The allocated data is available thru the _comma_vstack pointer, and will be disposed of when a matching call to _comma_vstack_pop() is made.
Definition at line 59 of file crt_vstack.c.
static vstack_entry_t get_vstack_entry | ( | ) | [inline, static] |
Definition at line 33 of file crt_vstack.c.
static void set_vstack_entry | ( | vstack_entry_t | entry | ) | [inline, static] |
Definition at line 43 of file crt_vstack.c.
char* _comma_vstack = 0 |
Definition at line 28 of file crt_vstack.c.