From: Jack Jansen Date: Thu, 19 Jul 2001 21:03:19 +0000 (+0000) Subject: Converted the project to CW6 (it hadn't been compiled X-Git-Tag: v2.1.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481191961940ac85456c61e54e98ed721e82bc6e;p=thirdparty%2FPython%2Fcpython.git Converted the project to CW6 (it hadn't been compiled in a long time), added a carbon target and added 2 missing routines in Carbon. --- diff --git a/Mac/Contrib/osam/OSAm.prj b/Mac/Contrib/osam/OSAm.prj index 3215c1c18535..87ce163394bf 100644 Binary files a/Mac/Contrib/osam/OSAm.prj and b/Mac/Contrib/osam/OSAm.prj differ diff --git a/Mac/Contrib/osam/ScriptRunner.c b/Mac/Contrib/osam/ScriptRunner.c index 7fd68f64737e..bf77d6bfd4a4 100644 --- a/Mac/Contrib/osam/ScriptRunner.c +++ b/Mac/Contrib/osam/ScriptRunner.c @@ -21,7 +21,26 @@ #include #include +#ifdef TARGET_API_MAC_CARBON +static +p2cstr(StringPtr p) +{ + unsigned char *c = p; + int len = c[0]; + strncpy((char *)c+1, (char *)c, len); + c[len] = 0; +} +static c2pstr(const char *cc) +{ + char *c = (char *)cc; /* Ouch */ + int len = strlen(c); + + if ( len > 255 ) len = 255; + strncpy(c, c+1, len); + c[0] = len; +} +#endif OSAError LoadScriptingComponent (ComponentInstance * scriptingComponent);