mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 10:12:24 +00:00
We don't currently need the Thread Manager (and all being well we never will),
so stop checking for it. [originally from svn r2246]
This commit is contained in:
parent
721399ac82
commit
a90e1fda80
11
mac/mac.c
11
mac/mac.c
@ -1,4 +1,4 @@
|
|||||||
/* $Id: mac.c,v 1.1 2002/11/19 02:13:46 ben Exp $ */
|
/* $Id: mac.c,v 1.2 2002/11/23 15:11:13 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Ben Harris
|
* Copyright (c) 1999 Ben Harris
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@ -41,7 +41,6 @@
|
|||||||
#include <DiskInit.h>
|
#include <DiskInit.h>
|
||||||
#include <Gestalt.h>
|
#include <Gestalt.h>
|
||||||
#include <Resources.h>
|
#include <Resources.h>
|
||||||
#include <Threads.h>
|
|
||||||
#include <ToolUtils.h>
|
#include <ToolUtils.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -115,13 +114,6 @@ static void mac_startup(void) {
|
|||||||
InitDialogs(nil);
|
InitDialogs(nil);
|
||||||
cold = 0;
|
cold = 0;
|
||||||
|
|
||||||
/* Check for the Thread Manager. Bail out if it's not there. */
|
|
||||||
if (Gestalt(gestaltThreadMgrAttr, &mac_gestalts.thdsattr) != noErr ||
|
|
||||||
!(mac_gestalts.thdsattr & (1 << gestaltThreadMgrPresent)) ||
|
|
||||||
&NewThread == kUnresolvedCFragSymbolAddress)
|
|
||||||
fatalbox("PuTTY requires the Thread Manager in order to operate. "
|
|
||||||
"The Thread Manager can be obtained from Apple Software "
|
|
||||||
"Updates.");
|
|
||||||
/* Find out if we've got Color Quickdraw */
|
/* Find out if we've got Color Quickdraw */
|
||||||
if (Gestalt(gestaltQuickdrawVersion, &mac_gestalts.qdvers) != noErr)
|
if (Gestalt(gestaltQuickdrawVersion, &mac_gestalts.qdvers) != noErr)
|
||||||
mac_gestalts.qdvers = gestaltOriginalQD;
|
mac_gestalts.qdvers = gestaltOriginalQD;
|
||||||
@ -173,7 +165,6 @@ static void mac_eventloop(void) {
|
|||||||
mac_adjustcursor(cursrgn);
|
mac_adjustcursor(cursrgn);
|
||||||
if (gotevent)
|
if (gotevent)
|
||||||
mac_event(&event);
|
mac_event(&event);
|
||||||
YieldToAnyThread();
|
|
||||||
}
|
}
|
||||||
DisposeRgn(cursrgn);
|
DisposeRgn(cursrgn);
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ struct mac_gestalts {
|
|||||||
long apprvers;
|
long apprvers;
|
||||||
long cntlattr;
|
long cntlattr;
|
||||||
long windattr;
|
long windattr;
|
||||||
long thdsattr;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern struct mac_gestalts mac_gestalts;
|
extern struct mac_gestalts mac_gestalts;
|
||||||
@ -65,7 +64,6 @@ typedef struct {
|
|||||||
PaletteHandle palette;
|
PaletteHandle palette;
|
||||||
ControlHandle scrollbar;
|
ControlHandle scrollbar;
|
||||||
WCTabHandle wctab;
|
WCTabHandle wctab;
|
||||||
ThreadID thread;
|
|
||||||
int raw_mouse;
|
int raw_mouse;
|
||||||
} Session;
|
} Session;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user