diff options
Diffstat (limited to 'MLKLinkedList.h')
-rw-r--r-- | MLKLinkedList.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/MLKLinkedList.h b/MLKLinkedList.h new file mode 100644 index 0000000..70e4604 --- /dev/null +++ b/MLKLinkedList.h @@ -0,0 +1,26 @@ +/* -*- mode: objc; coding: utf-8 -*- */ +/* Copyright 2008, Matthias Benkard. */ + +#import "Foundation/NSObject.h" +#import "MLKLispValue.h" + +@class MLKCons; + + +@interface MLKLinkedList : NSObject +{ + MLKCons *_firstCons; +} + +-(MLKLinkedList*) init; +-(MLKLinkedList*) initWithCons:(MLKCons*)cons; + +-(void) push: (id)object; +-(id) pop; +-(MLKCons*) firstCons; +-(BOOL) null; + +#ifdef __OBJC2__ +-(NSUInteger) countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len; +#endif +@end |