david sharp <dsh### [at] interport net> wrote...
>
> Thanks much. Converting scene file cr-lf's to lf's 'fixes' the
> FastMacroPatch.
> (that is, lets the troublesome macros run).
>
> 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.
-Nathan
Post a reply to this message
|