Stack implementation.
More...
#include <cstdlib>
#include "utils/yaml.h"
#include "gtk_wrapper.h"
Go to the source code of this file.
|
#define | STACK_PUSH(s, element) stack_push (s, (void *) element) |
|
|
Stack * | stack_new (int length) |
| Creates a new stack of the given size.
|
|
int | stack_size (Stack *s) |
|
int | stack_is_empty (Stack *s) |
|
int | stack_is_full (Stack *s) |
|
void * | stack_peek (Stack *s) |
|
void * | stack_peek_last (Stack *s) |
|
void | stack_push (Stack *s, void *element) |
|
void * | stack_pop (Stack *s) |
|
void * | stack_pop_last (Stack *s) |
| Pops the last element and moves everything back.
|
|
void | stack_free_members (Stack *s) |
|
void | stack_free (Stack *s) |
|
Stack implementation.
Definition in file stack.h.