|
![](/i/fill.gif) |
In article <382edd15@news.povray.org> , "Thorsten Froehlich"
<tho### [at] trf de> wrote:
> Second, the Mac 3.1 code will be replaced completely with 3.5, so it makes
> no sense to fix something that will never be used again, nor to invest even
> a few seconds into it if those can be spend better on 3.5 :-)
BTW, of course I made sure there won't be a problem in the Mac 3.5, and it
was already fixed in there :-)
pascal OSErr MacPOVRay_GetInfo(StringPtr versionstr, StringPtr
distributionstr)
{
strncpy((char *)(versionstr + 1), POV_RAY_VERSION, 254);
versionstr[0] = strlen((char *)(versionstr + 1));
strncpy((char *)(distributionstr + 1), DISTRIBUTION_MESSAGE_1, 84);
strncat((char *)(distributionstr + 1), DISTRIBUTION_MESSAGE_2, 84);
strncat((char *)(distributionstr + 1), DISTRIBUTION_MESSAGE_3, 84);
distributionstr[0] = strlen((char *)(distributionstr + 1));
return noErr;
}
(Note that StringPtr points to pascal string buffers, each 256 bytes in
size).
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |