ObjFW  Check-in [5adb201b41]

Overview
Comment:Declare of_std{in,out,err} as OFStream.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5adb201b41acfd58e1825e7b0a3b109dfc62eb1b7cc7ee41aa18abd60ec9088f
User & Date: js on 2011-09-10 20:35:06
Other Links: manifest | tags
Context
2011-09-10
22:17
Add -[setName:] and -[setNamespace:] to OFXMLElement. check-in: 2473176537 user: js tags: trunk
20:35
Declare of_std{in,out,err} as OFStream. check-in: 5adb201b41 user: js tags: trunk
20:24
Treat \f as whitespace. check-in: 7eff7e3918 user: js tags: trunk
Changes

Modified src/OFFile.h from [e4a6ab01fe] to [dda7fbe65f].

216
217
218
219
220
221
222
223
224
225
226
227
228
 */
- initWithFileDescriptor: (int)fileDescriptor;
@end

#ifdef __cplusplus
extern "C" {
#endif
extern OFFile *of_stdin;
extern OFFile *of_stdout;
extern OFFile *of_stderr;
#ifdef __cplusplus
}
#endif







|
|
|



216
217
218
219
220
221
222
223
224
225
226
227
228
 */
- initWithFileDescriptor: (int)fileDescriptor;
@end

#ifdef __cplusplus
extern "C" {
#endif
extern OFStream *of_stdin;
extern OFStream *of_stdout;
extern OFStream *of_stderr;
#ifdef __cplusplus
}
#endif

Modified src/OFFile.m from [478769a586] to [20426bd041].

84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef S_IWOTH
# define S_IWOTH 0
#endif

#define DEFAULT_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
#define DIR_MODE DEFAULT_MODE | S_IXUSR | S_IXGRP | S_IXOTH

OFFile *of_stdin = nil;
OFFile *of_stdout = nil;
OFFile *of_stderr = nil;

#if defined(OF_THREADS) && !defined(_WIN32)
static OFMutex *mutex;
#endif

static int parse_mode(const char *mode)
{







|
|
|







84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef S_IWOTH
# define S_IWOTH 0
#endif

#define DEFAULT_MODE S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH
#define DIR_MODE DEFAULT_MODE | S_IXUSR | S_IXGRP | S_IXOTH

OFStream *of_stdin = nil;
OFStream *of_stdout = nil;
OFStream *of_stderr = nil;

#if defined(OF_THREADS) && !defined(_WIN32)
static OFMutex *mutex;
#endif

static int parse_mode(const char *mode)
{