(SOC) Storage Only Commit
(ADD) Name, NameScope, Catlog, Object, String, Attribute, Char, Registry, Utils, Type, <Platform Support>, <Global Constants>, README (MOD) Array, Var, Status, MemMan, <Common>
This commit is contained in:
18
Stack/include/stack.h
Normal file
18
Stack/include/stack.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef STACK_H
|
||||
# define STACK_H
|
||||
|
||||
# include <Compound/var.h>
|
||||
# include <Compound/status.h>
|
||||
|
||||
typedef struct {
|
||||
Var *members;
|
||||
int len;
|
||||
} Stack;
|
||||
|
||||
Status Stack_Create(Stack *inst, int len);
|
||||
Status Stack_CopyOf(Stack *inst, Stack *other);
|
||||
Status Stack_Push(Stack *inst, Var *item);
|
||||
Status Stack_Pop(Stack *inst);
|
||||
bool Stack_IsEmpty(Stack *inst);
|
||||
|
||||
#endif /* STACK_H */
|
Reference in New Issue
Block a user