Differences From Artifact [4e34f334ab]:
- File
src/OFFile.h
— part of check-in
[17338ef1d5]
at
2011-02-01 14:27:31
on branch trunk
— Add of_log for easy logging to stderr.
Uses OFConstantString* for the format to prevent users from doing stupid
things like of_log([of_stdin readLine]). (user: js, size: 5165) [annotate] [blame] [check-ins using]
To Artifact [c3892e8bd0]:
- File
src/OFFile.h
— part of check-in
[03d1b71d10]
at
2011-02-01 22:11:48
on branch trunk
— Use extern "C" where useful.
Improves ObjC++ compatibility. (user: js, size: 5299) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #include <sys/types.h> #import "OFSeekableStream.h" @class OFArray; @class OFDate; extern void of_log(OFConstantString*, ...); /** * \brief A class which provides functions to read, write and manipulate files. */ @interface OFFile: OFSeekableStream { int fd; | > > > > > > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include <sys/types.h> #import "OFSeekableStream.h" @class OFArray; @class OFDate; #ifdef __cplusplus extern "C" { #endif extern void of_log(OFConstantString*, ...); #ifdef __cplusplus } #endif /** * \brief A class which provides functions to read, write and manipulate files. */ @interface OFFile: OFSeekableStream { int fd; |
︙ | ︙ | |||
202 203 204 205 206 207 208 209 210 211 | * * \param fd A file descriptor, returned from for example open(). * It is not closed when the OFFile object is deallocated! */ - initWithFileDescriptor: (int)fd; @end extern OFFile *of_stdin; extern OFFile *of_stdout; extern OFFile *of_stderr; | > > > > > > | 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 | * * \param fd A file descriptor, returned from for example open(). * It is not closed when the OFFile object is deallocated! */ - initWithFileDescriptor: (int)fd; @end #ifdef __cplusplus extern "C" { #endif extern OFFile *of_stdin; extern OFFile *of_stdout; extern OFFile *of_stderr; #ifdef __cplusplus } #endif |