[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File I/O and Image file loading



Christian Reiniger wrote:

>
>
> Another thing: I also looked at the BC++ stdio.h. Its FILE type doesn´t
> provide _any_ hook for customization :(

TOLD YOU SO.

I think we should provide a type called   ppFile, then define functions like
    ppFPrintF
    ppFRead/Write
    etc.
As well our own extension API.

And say "ppFile may on some systems be an alias for FILE, and the operators may be
aliases for
stdio functions"

That way under GNU all we have to do is write a bunch of #defines.  When we port,
we'll have to add
real code.  I assume everyone thinks printf style functionality is wanted.