#include <CodeFragments.h>
+#include <Gestalt.h>
+#include <Errors.h>
// Private function prototypes
Str255 pSymName,
ProcInfoType pProcInfo);
+static pascal Boolean HaveCFM(void);
+
static pascal OSErr GetSystemArchitecture(OSType *archType);
/* This code is directly from Technote 1077 */
return tOSErr;
}
+static pascal Boolean HaveCFM(void)
+{
+ long response;
+ return ( (Gestalt (gestaltCFMAttr, &response) == noErr) &&
+ (((response >> gestaltCFMPresent) & 1) != 0));
+}
+
static OSErr Find_Symbol(
Ptr* pSymAddr,
Str255 pSymName,
if (sOSErr != noErr)
return sOSErr; // OOPS!
}
+
+ if (!HaveCFM()) {
+ // If we don't have CFM68K, return a reasonable-looking error.
+ sOSErr = cfragLibConnErr;
+ return sOSErr;
+ }
if (sArchType == kMotorola68KCFragArch) // ...for CFM68K
tISAType = kM68kISA | kCFM68kRTA;
+Fri Sep 8 15:50:00 1998 Miro Jurisic <meeroh@mit.edu>
+ * CFMGlue.c: Added check for Code Fragment Manager
+
Fri Aug 28 16:30:00 1998 Miro Jurisic <meeroh@mit.edu>
* Makefile.tmpl, ReadMe, Makefile.initial, RunAppleScript.pl: Added stuff to