2018-07-23 04:59:16 +00:00
|
|
|
#ifndef STACK_H
|
|
|
|
#define STACK_H
|
2018-08-07 04:10:55 +00:00
|
|
|
#include "../type/type.h"
|
2018-07-23 04:59:16 +00:00
|
|
|
#include "../list/list_expand.h"
|
|
|
|
|
|
|
|
Stack *initStack(void);
|
|
|
|
SNode *initSNode(void);
|
2018-07-30 09:45:33 +00:00
|
|
|
int initMallocValueForSNode(SNode *p_snode, unsigned int type, void *value);
|
2018-07-23 04:59:16 +00:00
|
|
|
|
|
|
|
SNode *popStack(Stack *p_stack);
|
|
|
|
int pushStack(Stack *p_stack, SNode *p_snode);
|
|
|
|
|
|
|
|
int releaseStack(Stack *p_stack);
|
|
|
|
int releaseSNode(SNode *p_snode);
|
|
|
|
|
|
|
|
#endif /* stack_h */
|