Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
stack.h File Reference

Stack implementation. More...

#include <stdlib.h>
#include "utils/yaml.h"
#include <gtk/gtk.h>
Include dependency graph for stack.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Stack
 Stack implementation. More...
 

Macros

#define STACK_PUSH(s, element)   stack_push (s, (void *) element)
 

Functions

Stackstack_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)
 

Detailed Description

Stack implementation.

Definition in file stack.h.