home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / Calc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-31  |  674 b   |  32 lines

  1. /*    on NEXTSTEP:  cc -g -Wall -o Calc Calc.m -lFoundation_s */
  2.  
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <signal.h>
  6. #include <ctype.h>
  7. #if defined (NeXT)
  8. #    include <libc.h>
  9. #endif
  10. #import <remote/NXProxy.h>
  11. #import <foundation/NSNotification.h>    
  12. #import <foundation/NSAutoreleasePool.h>
  13. #import <foundation/NXAutoreleaseConnection.h>
  14. #import <machkit/NXPort.h>
  15. #import <appkit/appkit.h>
  16.  
  17. #import "objc/Object.h"
  18.  
  19. @interface Calc:Object
  20. {
  21.     int pendingOperation;
  22.     double xRegister;
  23. }
  24.  
  25. - init;
  26. - (void)clearAll;
  27. - (double)performOperationWith:(double)value;
  28. - (double)setOperation:(int)operator forValue:(double)value;
  29. - (void)changePendingOperation:(int)operator;
  30.  
  31. @end
  32.