2016-12-07 | Paul Boddie | file changeset files shortlog | Added support for reading to the end of a stream's input, fixing EOFError raising in fread by returning shorter amounts of data when EOF occurs, only raising an exception if no data was read before EOF occurred. Made the test input longer to exercise tests of reading remaining data. |
paul@143 | 1 | #include "exceptions.h" |
paul@143 | 2 | |
paul@143 | 3 | /* Define a global exception context. */ |
paul@143 | 4 | |
paul@143 | 5 | struct __exception_context __the_exception_context[1]; |