Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 2019:9e3469c0ed75 legacy-trunk
Added hook for better mac error messages.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 14 Dec 1994 12:54:54 +0000 |
| parents | a70883803338 |
| children | d7e91437f0a2 |
comparison
equal
deleted
inserted
replaced
| 2018:5a0775ce7b31 | 2019:9e3469c0ed75 |
|---|---|
| 57 | 57 |
| 58 #include "allobjects.h" | 58 #include "allobjects.h" |
| 59 #include "traceback.h" | 59 #include "traceback.h" |
| 60 | 60 |
| 61 #include <errno.h> | 61 #include <errno.h> |
| 62 | |
| 63 #ifdef macintosh | |
| 64 /* | |
| 65 ** For the mac, there's a function macstrerror in macosmodule.c. We can't | |
| 66 ** call it strerror(), though, since that is already defined (for Think C) | |
| 67 ** in ANSI | |
| 68 */ | |
| 69 #define strerror macstrerror | |
| 70 #include "macdefs.h" /* For CW to find EINTR */ | |
| 71 #endif /* macintosh */ | |
| 62 | 72 |
| 63 extern char *strerror PROTO((int)); | 73 extern char *strerror PROTO((int)); |
| 64 | 74 |
| 65 /* Last exception stored by err_setval() */ | 75 /* Last exception stored by err_setval() */ |
| 66 | 76 |
