[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2007-05-28, Elias Pschernig <elias@xxxxxxxxxx> wrote:
> Why is it not in the docs? Attached is a patch to add it.. in case it
> should be in there.
It was exposed when we added custom packfiles. Previously it was
internal and only used to implement pack_fgets. The return value should
be documented:
pack_ungetc() returns c on success, or EOF on error.
Also, we have to do something about pack_fgets, as pack_ungetc only
guarantees a single pushback, and calling pack_fgets may clobber it.
Either we document that behaviour, or somehow fix the problem.
Peter