|
![](/i/fill.gif) |
Nathan Kopp <Nat### [at] Kopp com> wrote in message
news:389789e9@news.povray.org...
>
> david sharp <dsh### [at] interport net> wrote...
> >
> > What is it that the FastMacroPatch does that other fseek/ftell dependent
> > stuff in POV doesn't?
>
> 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.
I just posted a message (since cancelled), about a fix. But it didn't
really (only coincidentally worked), so if anyone read it, forget it,
please.
Post a reply to this message
|
![](/i/fill.gif) |