27 lines
438 B
C
27 lines
438 B
C
//
|
|
// Created by nano on 4/30/25.
|
|
//
|
|
|
|
#ifndef STACK_H
|
|
#define STACK_H
|
|
|
|
#include "../cell/cell.h"
|
|
|
|
|
|
typedef struct stack {
|
|
cell *data;
|
|
int length;
|
|
int size;
|
|
} stack;
|
|
|
|
void stack_init(stack *stack) ;
|
|
void stack_free(stack *stack) ;
|
|
void stack_reinit(stack *stack);
|
|
|
|
void stack_push(stack *stack, cell c) ;
|
|
cell stack_pop(stack *stack) ;
|
|
void stack_invert(stack *stack);
|
|
void stack_append(const stack *from, stack *to);
|
|
|
|
#endif //STACK_H
|