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

Re: File I/O and Image file loading



Adrian Ratnapala wrote:

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

Well, there's no real alternative to this...

>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.

printf is useless for the archive files (as they will be read-only), but
including it in our API nevertheless makes sense.
(BTW: It wont be difficult to implement for non-GNU environments either
(sprintf is your friend))

Cu
	Christian