home *** CD-ROM | disk | FTP | other *** search
- /* on NEXTSTEP: cc -g -Wall -o Calc Calc.m -lFoundation_s */
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <signal.h>
- #include <ctype.h>
- #if defined (NeXT)
- # include <libc.h>
- #endif
- #import <remote/NXProxy.h>
- #import <foundation/NSNotification.h>
- #import <foundation/NSAutoreleasePool.h>
- #import <foundation/NXAutoreleaseConnection.h>
- #import <machkit/NXPort.h>
- #import <appkit/appkit.h>
-
- #import "objc/Object.h"
-
- @interface Calc:Object
- {
- int pendingOperation;
- double xRegister;
- }
-
- - init;
- - (void)clearAll;
- - (double)performOperationWith:(double)value;
- - (double)setOperation:(int)operator forValue:(double)value;
- - (void)changePendingOperation:(int)operator;
-
- @end
-