Differences From Artifact [21ad1ce6b7]:
- File
src/OFFile.h
— part of check-in
[29403cc56a]
at
2017-06-04 17:39:30
on branch trunk
— OFFile: Better abstraction of file handle
As a nice side effect, this adds a designated initializer to OFFile. (user: js, size: 4168) [annotate] [blame] [check-ins using]
To Artifact [60494c4dc6]:
- File src/OFFile.h — part of check-in [1ffd8f9f16] at 2017-06-04 18:16:19 on branch trunk — OFFile: Make sure to not leak handles on MorphOS (user: js, size: 4183) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # define BOOL EXEC_BOOL # include <proto/dos.h> # undef BOOL # define OF_INVALID_FILE_HANDLE ((of_file_handle_t){ 0, false }) # define OF_FILE_HANDLE_IS_VALID(h) (h.handle != 0) typedef struct of_file_handle_t { BPTR handle; bool append; } of_file_handle_t; #endif OF_ASSUME_NONNULL_BEGIN /*! | > | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # define BOOL EXEC_BOOL # include <proto/dos.h> # undef BOOL # define OF_INVALID_FILE_HANDLE ((of_file_handle_t){ 0, false }) # define OF_FILE_HANDLE_IS_VALID(h) (h.handle != 0) typedef struct of_file_handle_t { BPTR handle; size_t index; bool append; } of_file_handle_t; #endif OF_ASSUME_NONNULL_BEGIN /*! |
︙ | ︙ |