]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Converted the project to CW6 (it hadn't been compiled
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 19 Jul 2001 21:03:19 +0000 (21:03 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 19 Jul 2001 21:03:19 +0000 (21:03 +0000)
in a long time), added a carbon target and added 2 missing
routines in Carbon.

Mac/Contrib/osam/OSAm.prj
Mac/Contrib/osam/ScriptRunner.c

index 3215c1c185350e5b4e03caa165d20464a1c16ed3..87ce163394bf0c61fcea7b18abce39ba5f0ebfa8 100644 (file)
Binary files a/Mac/Contrib/osam/OSAm.prj and b/Mac/Contrib/osam/OSAm.prj differ
index 7fd68f64737e2d18c5b2ca0ce42617ae70cd8097..bf77d6bfd4a4d644e82264ca99d2bd7376a7bfb7 100644 (file)
 #include <script.h>
 #include <resources.h>
 
+#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);