Differences From Artifact [8a99cd99a6]:
- File
src/OFFile.m
— part of check-in
[085bfc12a0]
at
2013-04-27 01:26:35
on branch trunk
— Add OFStdIOStream.
This is used for of_std{in,out,err} now instead of OFFile. (user: js, size: 16470) [annotate] [blame] [check-ins using]
To Artifact [4b255af215]:
- File
src/OFFile.m
— part of check-in
[2713b481a1]
at
2013-04-27 02:22:43
on branch trunk
— Initial Wii port.
Threads and sockets still missing. (user: js, size: 16668) [annotate] [blame] [check-ins using]
︙ | |||
37 38 39 40 41 42 43 44 45 46 47 48 49 50 | 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | + + + + + + | #ifdef HAVE_PWD_H # include <pwd.h> #endif #ifdef HAVE_GRP_H # include <grp.h> #endif #ifdef __wii__ # define BOOL OGC_BOOL # include <fat.h> # undef BOOL #endif #import "OFFile.h" #import "OFString.h" #import "OFArray.h" #ifdef OF_HAVE_THREADS # import "threading.h" #endif |
︙ | |||
129 130 131 132 133 134 135 | 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | - + + - + + + + + + | if (!strcmp(mode, "ab+") || !strcmp(mode, "a+b")) return O_RDWR | O_CREAT | O_APPEND | O_BINARY; return -1; } @implementation OFFile |
︙ | |||
284 285 286 287 288 289 290 | 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | - + | DIR *dir; struct dirent *dirent; if ((dir = opendir([path cStringWithEncoding: OF_STRING_ENCODING_NATIVE])) == NULL) @throw [OFOpenFileFailedException exceptionWithClass: self path: path |
︙ |