10#ifndef __UTILS_STACK_H__
11#define __UTILS_STACK_H__
17#include "gtk_wrapper.h"
25#define STACK_PUSH(s, element) stack_push (s, (void *) element)
63stack_size (
Stack * s);
66stack_is_empty (
Stack * s);
69stack_is_full (
Stack * s);
72stack_peek (
Stack * s);
75stack_peek_last (
Stack * s);
78stack_push (
Stack * s,
void * element);
90stack_free_members (
Stack * s);
93stack_free (
Stack * s);
void * stack_pop_last(Stack *s)
Pops the last element and moves everything back.
Stack * stack_new(int length)
Creates a new stack of the given size.
gint top
Index of the top of the stack.
int max_length
Max stack size, or -1 for unlimited.