25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifdef _WIN32
# import <windows.h>
#endif
OFFile *of_stdin = nil;
OFFile *of_stdout = nil;
OFFile *of_stderr = nil;
@implementation OFFile
+ (void)load
{
if (self != [OFFile class])
return;
|
>
>
>
>
>
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifdef _WIN32
# import <windows.h>
#endif
OFFile *of_stdin = nil;
OFFile *of_stdout = nil;
OFFile *of_stderr = nil;
/// \cond internal
@interface OFFileSingleton: OFFile
@end
/// \endcond
@implementation OFFile
+ (void)load
{
if (self != [OFFile class])
return;
|
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
fclose(fp);
fp = NULL;
return self;
}
@end
@implementation OFFileSingleton
- initWithPath: (OFString*)path
mode: (OFString*)mode
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
}
|
>
|
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
fclose(fp);
fp = NULL;
return self;
}
@end
/// \cond internal
@implementation OFFileSingleton
- initWithPath: (OFString*)path
mode: (OFString*)mode
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
}
|
254
255
256
257
258
259
260
|
- (void)dealloc
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
[super dealloc]; /* Get rid of stupid warning */
}
@end
|
>
|
260
261
262
263
264
265
266
267
|
- (void)dealloc
{
@throw [OFNotImplementedException newWithClass: isa
selector: _cmd];
[super dealloc]; /* Get rid of stupid warning */
}
@end
/// \endcond
|