move debugger version into the wrapper

This commit is contained in:
Riccardo Mottola 2021-07-05 01:07:16 +02:00
parent 7c741d63e6
commit 5beb3dfe39
4 changed files with 16 additions and 16 deletions

View file

@ -59,8 +59,12 @@ typedef enum PCDebuggerOutputType_enum {
NSFont *font;
BOOL debuggerStarted;
float debuggerVersion;
}
- (float) debuggerVersion;
- (void) setDebuggerVersion:(float)ver;
- (void)logStdOut:(NSNotification *)aNotif;
- (void)logErrOut:(NSNotification *)aNotif;

View file

@ -56,6 +56,7 @@
promptColor = [[NSColor purpleColor] retain];
debuggerStarted = NO;
debuggerVersion = 0.0;
}
return self;
}
@ -121,6 +122,16 @@
return errorColor;
}
- (float) debuggerVersion
{
return debuggerVersion;
}
- (void) setDebuggerVersion:(float)ver
{
debuggerVersion = ver;
}
/**
* Log string to the view.
*/
@ -347,7 +358,7 @@
[stringScanner scanString: @"~" intoString: &prefix];
if(prefix != nil)
{
if ([debugger debuggerVersion] == 0.0)
if (debuggerVersion == 0.0)
{
NSString *str1 = nil;
NSString *str2 = nil;

View file

@ -45,7 +45,6 @@ extern NSString *PCDBDebuggerStartedNotification;
NSString *executablePath;
NSString *debuggerPath;
int subProcessId;
float debuggerVersion;
NSDictionary *lastInfoParsed;
NSString *lastFileNameParsed;
NSUInteger lastLineNumberParsed;
@ -59,8 +58,6 @@ extern NSString *PCDBDebuggerStartedNotification;
- (void) interrupt;
- (int) subProcessId;
- (void) setSubProcessId:(int)pid;
- (float) debuggerVersion;
- (void) setDebuggerVersion:(float)ver;
- (NSDictionary *)lastInfoParsed;
- (void)setSetInfoParsed: (NSDictionary *)dict;
- (NSString *)lastFileNameParsed;

View file

@ -156,8 +156,6 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
[debuggerView setFont: [self consoleFont]];
subProcessId = 0;
debuggerVersion = 0.0;
lastInfoParsed = nil;
lastFileNameParsed = nil;
lastLineNumberParsed = NSNotFound;
@ -281,16 +279,6 @@ NSString *PCDBDebuggerStartedNotification = @"PCDBDebuggerStartedNotification";
subProcessId = pid;
}
- (float) debuggerVersion
{
return debuggerVersion;
}
- (void) setDebuggerVersion:(float)ver
{
debuggerVersion = ver;
}
- (NSDictionary *)lastInfoParsed
{
return lastInfoParsed;