diff options
Diffstat (limited to 'Mac/Contrib/osam')
-rw-r--r-- | Mac/Contrib/osam/OSAm.prj | bin | 49980 -> 80703 bytes | |||
-rw-r--r-- | Mac/Contrib/osam/ScriptRunner.c | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/Mac/Contrib/osam/OSAm.prj b/Mac/Contrib/osam/OSAm.prj Binary files differindex 3215c1c..87ce163 100644 --- a/Mac/Contrib/osam/OSAm.prj +++ b/Mac/Contrib/osam/OSAm.prj diff --git a/Mac/Contrib/osam/ScriptRunner.c b/Mac/Contrib/osam/ScriptRunner.c index 7fd68f6..bf77d6b 100644 --- a/Mac/Contrib/osam/ScriptRunner.c +++ b/Mac/Contrib/osam/ScriptRunner.c @@ -21,7 +21,26 @@ #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); |