2004-12-23 15:16:30 +02:00
|
|
|
#ifndef __CMPH_VSTACK_H__
|
|
|
|
#define __CMPH_VSTACK_H__
|
|
|
|
|
|
|
|
#include "cmph_types.h"
|
2005-01-21 22:42:33 +02:00
|
|
|
typedef struct __vstack_t vstack_t;
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
vstack_t *vstack_new();
|
|
|
|
void vstack_destroy(vstack_t *stack);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void vstack_push(vstack_t *stack, cmph_uint32 val);
|
|
|
|
cmph_uint32 vstack_top(vstack_t *stack);
|
|
|
|
void vstack_pop(vstack_t *stack);
|
|
|
|
int vstack_empty(vstack_t *stack);
|
|
|
|
cmph_uint32 vstack_size(vstack_t *stack);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
2005-01-21 22:42:33 +02:00
|
|
|
void vstack_reserve(vstack_t *stack, cmph_uint32 size);
|
2004-12-23 15:16:30 +02:00
|
|
|
|
|
|
|
#endif
|