XenevaOS
Loading...
Searching...
No Matches
stack.h
Go to the documentation of this file.
1
30#ifndef __STACK_H__
31#define __STACK_H__
32
33#include <stdint.h>
34#include <aurora.h>
35
36typedef struct _stack_item_ {
37 void* data;
40
46
47
48/*
49* AuStackCreate -- create a new stack
50*/
52
53/*
54* AuStackPush -- push a new item to the stack
55* @param stack -- pointer to the stack where to push
56* @param data -- data to be pushed
57*/
58AU_EXTERN AU_EXPORT void AuStackPush(AuStack *stack, void *data);
59
60/*
61* AuStackPop -- pop a new item from the stack
62* @param stack -- pointer to the stack from where to pop
63*/
65
66#endif
#define AU_EXTERN
Definition aurora.h:55
#define AU_EXPORT
Definition aurora.h:41
AU_EXTERN AU_EXPORT void * AuStackPop(AuStack *stack)
AuStackPop – pop a new item from the stack.
Definition stack.cpp:61
AU_EXTERN AU_EXPORT void AuStackPush(AuStack *stack, void *data)
AuStackPush – push a new item to the stack.
Definition stack.cpp:49
AU_EXTERN AU_EXPORT AuStack * AuStackCreate()
AuStackCreate – create a new stack.
Definition stack.cpp:38
struct _stack_item_ AuStackItem
struct _stack_ AuStack
Definition stack.h:41
int itemCount
Definition stack.h:44
AuStackItem * top
Definition stack.h:42
AuStackItem * bottom
Definition stack.h:43
Definition stack.h:36
void * data
Definition stack.h:37
struct _stack_item_ * link
Definition stack.h:38