Overview
| Comment: | Work around a compiler bug. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
0972a6eb5651a1f639ceaa34b96ff0b6 |
| User & Date: | js on 2011-03-29 19:28:13 |
| Other Links: | manifest | tags |
Context
|
2011-03-29
| ||
| 23:19 | Make it possible to let -[bindToPort:onHost:] choose a port. (check-in: d983af3d93 user: js tags: trunk) | |
| 19:28 | Work around a compiler bug. (check-in: 0972a6eb56 user: js tags: trunk) | |
| 19:27 | Fix missing include in OFBlock.m for the Apple 32 bit runtime. (check-in: ac7830ff4f user: js tags: trunk) | |
Changes
Modified src/OFFile.m from [7f0444f958] to [696b6c1432].
| ︙ | ︙ | |||
173 174 175 176 177 178 179 180 181 182 |
+ fileWithFileDescriptor: (int)fd_
{
return [[[self alloc] initWithFileDescriptor: fd_] autorelease];
}
+ (OFString*)currentDirectoryPath
{
char *buf = getcwd(NULL, 0);
@try {
| > | > > | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 |
+ fileWithFileDescriptor: (int)fd_
{
return [[[self alloc] initWithFileDescriptor: fd_] autorelease];
}
+ (OFString*)currentDirectoryPath
{
OFString *ret;
char *buf = getcwd(NULL, 0);
@try {
ret = [OFString stringWithCString: buf];
} @finally {
free(buf);
}
return ret;
}
+ (BOOL)fileExistsAtPath: (OFString*)path
{
struct stat s;
if (stat([path cString], &s) == -1)
|
| ︙ | ︙ |