home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
sampl254.zip
/
gcc2
/
samples
/
sample5
/
Stack.h
< prev
next >
Wrap
Text File
|
1993-11-07
|
421b
|
19 lines
// Stack.h - comp.lang.objective-c simple sample Objective-C program
#import <objc/Object.h>
#import "Node.h"
@interface Stack : Object
{
id stack;
unsigned stack_size;
}
+ new; // create a new Stack
- empty; // clear out all contents of the Stack
- put: anItem; // put anItem on the Stack
- get; // return the item on top of the Stack
- (unsigned) size; // tell us the current size of the Stack
@end