Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 17396:beb9d2b02846 legacy-trunk
Updated version of RISCOS support. SF patch 411213 by Dietmar Schwertberger
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 10 Apr 2001 22:07:43 +0000 |
| parents | b44e77a12978 |
| children | ee24bd0cad29 4cb34314bd97 |
comparison
equal
deleted
inserted
replaced
| 17395:863e8073c7aa | 17396:beb9d2b02846 |
|---|---|
| 806 } | 806 } |
| 807 #else /* All other filename syntaxes */ | 807 #else /* All other filename syntaxes */ |
| 808 if (argc > 0 && argv0 != NULL) | 808 if (argc > 0 && argv0 != NULL) |
| 809 p = strrchr(argv0, SEP); | 809 p = strrchr(argv0, SEP); |
| 810 if (p != NULL) { | 810 if (p != NULL) { |
| 811 #ifndef RISCOS | |
| 811 n = p + 1 - argv0; | 812 n = p + 1 - argv0; |
| 813 #else /* don't include trailing separator */ | |
| 814 n = p - argv0; | |
| 815 #endif /* RISCOS */ | |
| 812 #if SEP == '/' /* Special case for Unix filename syntax */ | 816 #if SEP == '/' /* Special case for Unix filename syntax */ |
| 813 if (n > 1) | 817 if (n > 1) |
| 814 n--; /* Drop trailing separator */ | 818 n--; /* Drop trailing separator */ |
| 815 #endif /* Unix */ | 819 #endif /* Unix */ |
| 816 } | 820 } |
