Argh! save/restore off-by-one error
[RExecServer.git] / RInterpreter.h
blob7f27caaac9d4d0335b7309596a51297df424767e
1 #import <Cocoa/Cocoa.h>
3 @interface RInterpreter : NSObject {
5 char *readerPrompt;
6 unsigned char *readerBuffer,*readerTemp;
7 int readerBufferLength,readerBufferUsed;
8 int readerAddToHistory;
10 NSLock *evalLock;
12 BOOL configured,suppressOutput,allowTerminal;
13 long bufferSize;
14 int (*ptr_R_OldReadConsole)(char*,unsigned char*,int,int);
15 void (*ptr_R_OldWriteConsole)(char*,int);
16 void (*ptr_R_OldFlushConsole)();
17 int (*ptr_R_OldShowFiles)(int,char**,char**,char*,int,char*);
20 NSMutableAttributedString *buffer;
22 NSMutableArray *deviceList;
23 int _argc;
24 char **_argv;
28 id delegate;
30 + (RInterpreter*)sharedInterpreter;
31 - (BOOL)isConfigured;
32 - (void)run;
34 #pragma mark Configuration
35 - (void)setArgv:(char**)argv argc:(int)argc;
37 - (void)setDelegate:(id)delegate;
38 - (id)delegate;
40 - (void)setBufferSize:(long)bufferSize;
41 - (long)bufferSize;
43 - (void)setAllowTerminal:(BOOL)aBool;
44 - (BOOL)allowTerminal;
46 - (void)setHomePath:(NSString*)aPath;
47 - (NSString*)homePath;
49 - (void)setLocaleIdentifier:(NSString*)aLocale;
50 - (NSString*)localeIdentifier;
53 #pragma mark Interaction Protocol
55 - (void)evaluateInput:(NSString*)aString;
56 - (NSArray*)devices;
58 @end