#4 mxflib::FileGetc does not and cannot return errors

closed
Matt Beard
5
2004-07-15
2003-09-30
Anonymous
No

The mxflib::FileGetc implementation in
system.h returns an
int8 (character). It has no
way to return an error indication if a
read error occurs.
At the moment it does not even check if a
byte was
read, when e.g. EOF occurs, it will simply return
whatever happened to be on the
stack.

Rob.Lievaart@nob.nl

Discussion

  • Matt Beard
    Matt Beard
    2003-11-17

    • assigned_to: nobody --> matt-beard
     
  • Matt Beard
    Matt Beard
    2004-07-15

    Logged In: YES
    user_id=613688

    New version returns the unsigned byte read as the bottom
    8-bits of a signed (platform optimized) integer, or EOF if
    there is an error (including end-of-file).

     
  • Matt Beard
    Matt Beard
    2004-07-15

    Logged In: YES
    user_id=613688

    Fixed and checked in - will be in next release

     
  • Matt Beard
    Matt Beard
    2004-07-15

    • status: open --> closed