Adicionado Stack usando as Foundation.h
[blacktomato.git] / gnustep / Stack-generic.h
blob53ef8622d67e98390a507d66f2c2c043ca17d3dc
1 #import <Foundation/Foundation.h>
3 typedef struct StackLink {
4 struct StackLink *next;
5 int data;
6 } StackLink;
8 @interface Stack : NSObject
10 StackLink *top;
11 unsigned int size;
14 - free;
15 - push: (int) anData;
16 - (int) pop;
17 - (unsigned int) size;
18 - (id) print;
19 @end