POV-Ray : Newsgroups : povray.programming : Possible problem in Mac source : Re: Possible problem in Mac source Server Time
29 Jul 2024 00:33:30 EDT (-0400)
  Re: Possible problem in Mac source  
From: Thorsten Froehlich
Date: 14 Nov 1999 11:13:06
Message: <382edf92@news.povray.org>
In article <382edd15@news.povray.org> , "Thorsten Froehlich" 
<tho### [at] trfde> 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] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.