Welcome to the NetCologne GmbH open source mirroring service!

This machine mirrors various open-source projects. 20 Gbit/s uplink.

If there are any issues or you want another project mirrored, please contact mirror-service -=AT=- netcologne DOT de !

Comma: lib/runtime/crt_vstack.c File Reference

lib/runtime/crt_vstack.c File Reference

#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_entryvstack_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 Documentation

typedef struct vstack_entry* vstack_entry_t

Definition at line 22 of file crt_vstack.c.


Function Documentation

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.


Variable Documentation

char* _comma_vstack = 0

Definition at line 28 of file crt_vstack.c.


Generated on 1 Feb 2010 for Comma by  doxygen 1.6.1