POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov 0.4, macros trouble : Re: MegaPov 0.4, macros trouble Server Time
2 Sep 2024 18:15:38 EDT (-0400)
  Re: MegaPov 0.4, macros trouble  
From: Ron Parker
Date: 2 Feb 2000 08:27:45
Message: <slrn89gc7g.v8.ron.parker@ron.gwmicro.com>
On Tue, 1 Feb 2000 20:33:49 -0500, Nathan Kopp wrote:
>Not much different.  Part of it is to use ftell twice to determine the
>length of the macro.  But the problem is that fread() reads a single byte
>for CR+LF (converts two to '\n'), but ftell()-ftell() will give two bytes
>for CR+LF.  Unfortunately, this does not always happen and is not at all
>consistent across operating systems or even compilers on the same OS.

With all the problems CR/LF/CRLF cause us, why don't we just open the 
scene files in binary mode?

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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