Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 2502:d5978238e3ba legacy-trunk
changes in NT tests
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 09 Mar 1995 12:11:31 +0000 |
| parents | c31eaed7798b |
| children | b8937e74fdf5 |
comparison
equal
deleted
inserted
replaced
| 2501:b5ce80114416 | 2502:d5978238e3ba |
|---|---|
| 67 #ifdef macintosh | 67 #ifdef macintosh |
| 68 /* Replace strerror with a Mac specific routine. | 68 /* Replace strerror with a Mac specific routine. |
| 69 XXX PROBLEM: some positive errors have a meaning for MacOS, | 69 XXX PROBLEM: some positive errors have a meaning for MacOS, |
| 70 but some library routines set Unix error numbers... | 70 but some library routines set Unix error numbers... |
| 71 */ | 71 */ |
| 72 extern char *PyMac_StrError PROTO((int)); | |
| 72 #undef strerror | 73 #undef strerror |
| 73 #define strerror PyMac_StrError | 74 #define strerror PyMac_StrError |
| 74 #endif /* macintosh */ | 75 #endif /* macintosh */ |
| 75 | 76 |
| 76 #ifndef NT | 77 #ifndef __STDC__ |
| 77 extern char *strerror PROTO((int)); | 78 extern char *strerror PROTO((int)); |
| 78 #endif /* !NT */ | 79 #endif |
| 79 | 80 |
| 80 /* Last exception stored by err_setval() */ | 81 /* Last exception stored by err_setval() */ |
| 81 | 82 |
| 82 static object *last_exception; | 83 static object *last_exception; |
| 83 static object *last_exc_val; | 84 static object *last_exc_val; |
