[AD] [ alleg-Bugs-2781457 ] clarifying file operations

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Bugs item #2781457, was opened at 2009-04-26 13:00
Message generated for change (Settings changed) made by tjaden
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2781457&group_id=5665

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 4.9
>Status: Closed
>Resolution: Fixed
Priority: 6
Private: No
Submitted By: Peter Wang (tjaden)
Assigned to: Nobody/Anonymous (nobody)
Summary: clarifying file operations

Initial Comment:
Boring things that need to be done:

* al_fseek() should clear the EOF indicator and clear the pushback buffer.

* Unreading a byte on a stream that is at the end of the file should
  clear the EOF indicator.

* Unreading a byte is supposed to shift the file position. Past
  position 0, return -1 (that is what libc does, AFAICT) but otherwise
  should still work (i.e. not set the error indicator).

* What should happen if you try to unread a byte and the pushback buffer
  is already full?

* Consider adding an equivalent of clearerr(). Not sure what the use case is
  though. It might be better to leave it out as it makes the vtable easier to
  implement.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105665&aid=2781457&group_id=5665




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/