Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 42622:4d2aa4bfb2d6
Remove RISCOS support
| author | Skip Montanaro <skip@pobox.com> |
|---|---|
| date | Thu, 16 Aug 2007 14:35:24 +0000 |
| parents | 6727cc9ed09f |
| children | 8bad8722f0e6 |
comparison
equal
deleted
inserted
replaced
| 42616:cb8c1dd7ee32 | 42622:4d2aa4bfb2d6 |
|---|---|
| 1288 } | 1288 } |
| 1289 #endif | 1289 #endif |
| 1290 p = strrchr(argv0, SEP); | 1290 p = strrchr(argv0, SEP); |
| 1291 } | 1291 } |
| 1292 if (p != NULL) { | 1292 if (p != NULL) { |
| 1293 #ifndef RISCOS | |
| 1294 n = p + 1 - argv0; | 1293 n = p + 1 - argv0; |
| 1295 #else /* don't include trailing separator */ | |
| 1296 n = p - argv0; | |
| 1297 #endif /* RISCOS */ | |
| 1298 #if SEP == '/' /* Special case for Unix filename syntax */ | 1294 #if SEP == '/' /* Special case for Unix filename syntax */ |
| 1299 if (n > 1) | 1295 if (n > 1) |
| 1300 n--; /* Drop trailing separator */ | 1296 n--; /* Drop trailing separator */ |
| 1301 #endif /* Unix */ | 1297 #endif /* Unix */ |
| 1302 } | 1298 } |
