Differences From Artifact [10bbd8e570]:
- File
src/OFStdIOStream.m
— part of check-in
[a98ad80cd3]
at
2020-06-24 22:30:40
on branch trunk
— OFStdIOStream: Don't use isatty() on iOS
When having Xcode attached to see the log, isatty() returns true, but
does not handle any control sequences. (user: js, size: 10185) [annotate] [blame] [check-ins using] [more...]
To Artifact [56aed5bccb]:
- File src/OFStdIOStream.m — part of check-in [1b82d3bf4f] at 2021-03-07 20:25:21 on branch trunk — *.m: Fold methods into one line where it fits (user: js, size: 10078) [annotate] [blame] [check-ins using] [more...]
1 | /* | < < | | 1 2 3 4 5 6 7 8 9 | /* * Copyright (c) 2008-2021 Jonathan Schleifer <js@nil.im> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * |
︙ | ︙ | |||
208 209 210 211 212 213 214 | self = [super init]; _fd = fd; return self; } #else | | < | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | self = [super init]; _fd = fd; return self; } #else - (instancetype)of_initWithHandle: (BPTR)handle closable: (bool)closable { self = [super init]; _handle = handle; _closable = closable; return self; |
︙ | ︙ | |||
244 245 246 247 248 249 250 | if (_handle == 0) #endif @throw [OFNotOpenException exceptionWithObject: self]; return _atEndOfStream; } | | < | 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | if (_handle == 0) #endif @throw [OFNotOpenException exceptionWithObject: self]; return _atEndOfStream; } - (size_t)lowlevelReadIntoBuffer: (void *)buffer length: (size_t)length { ssize_t ret; #ifndef OF_AMIGAOS if (_fd == -1) @throw [OFNotOpenException exceptionWithObject: self]; |
︙ | ︙ | |||
286 287 288 289 290 291 292 | if (ret == 0) _atEndOfStream = true; return ret; } | | < | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | if (ret == 0) _atEndOfStream = true; return ret; } - (size_t)lowlevelWriteBuffer: (const void *)buffer length: (size_t)length { #ifndef OF_AMIGAOS if (_fd == -1) @throw [OFNotOpenException exceptionWithObject: self]; # ifndef OF_WINDOWS ssize_t bytesWritten; |
︙ | ︙ |