341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
|
}
}
bool
execfile(OFString *cfgfile)
{
@autoreleasepool {
OFMutableData *data;
@try {
data = [OFMutableData dataWithContentsOfFile:cfgfile];
} @catch (id e) {
return false;
}
// Ensure \0 termination.
[data addItem:""];
execute(@((char *)data.mutableItems));
return true;
}
}
void
exec(OFString *cfgfile)
{
|
<
|
<
<
<
<
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
|
}
}
bool
execfile(OFString *cfgfile)
{
@autoreleasepool {
@try {
execute([OFString stringWithContentsOfFile:cfgfile]);
} @catch (id e) {
return false;
}
return true;
}
}
void
exec(OFString *cfgfile)
{
|