summary refs log tree commit diff
path: root/include/stack.h
blob: ac17ed35a3f843934275216a9dc07be98dc34d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __CCL_STACK_H__
#define __CCL_STACK_H__

#include "3cl.h"


/**
 * Push num to the stack
 * @param stack Stack where to push
 * @param num Number to push
 */
void ccl_stack_push(struct CCLStack *stack, CCLNum num);

/**
 * Pop number from the stack
 * @param stack Stack from where to pop
 * @return Popped number
 */
CCLNum ccl_stack_pop(struct CCLStack *stack);

#endif /* __CCL_STACK_H__ */