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 >
Text File  |  1993-11-07  |  421b  |  19 lines

  1.  
  2. // Stack.h - comp.lang.objective-c simple sample Objective-C program
  3.  
  4. #import <objc/Object.h>
  5. #import "Node.h"
  6.  
  7. @interface    Stack : Object
  8. {
  9.     id        stack;
  10.     unsigned    stack_size;
  11. }
  12.  
  13.  +        new;        // create a new Stack
  14.  -        empty;        // clear out all contents of the Stack
  15.  -        put: anItem;    // put anItem on the Stack
  16.  -        get;        // return the item on top of the Stack
  17.  - (unsigned)    size;        // tell us the current size of the Stack
  18. @end
  19.