repo.or.cz
/
blacktomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Adicionado Stack usando as Foundation.h
[blacktomato.git]
/
gnustep
/
Stack-generic.h
blob
53ef8622d67e98390a507d66f2c2c043ca17d3dc
1
#import <Foundation/Foundation.h>
2
3
typedef
struct
StackLink
{
4
struct
StackLink
*
next
;
5
int
data
;
6
}
StackLink
;
7
8
@interface Stack
:
NSObject
9
{
10
StackLink
*
top
;
11
unsigned int
size
;
12
}
13
14
-
free
;
15
-
push
: (
int
)
anData
;
16
- (
int
)
pop
;
17
- (
unsigned int
)
size
;
18
- (
id
)
print
;
19
@end