Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 2529:16ea57c38c4f legacy-trunk
In NT, write fatal() msg to debugging device
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 14 Mar 1995 15:01:17 +0000 |
| parents | 99e7ac22bd2e |
| children | ca6b60d4ea90 |
comparison
equal
deleted
inserted
replaced
| 2528:ae2b032445f9 | 2529:16ea57c38c4f |
|---|---|
| 48 #include <console.h> | 48 #include <console.h> |
| 49 #endif | 49 #endif |
| 50 | 50 |
| 51 #ifdef __MWERKS__ | 51 #ifdef __MWERKS__ |
| 52 #include <SIOUX.h> | 52 #include <SIOUX.h> |
| 53 #endif | |
| 54 | |
| 55 #ifdef NT | |
| 56 #undef BYTE | |
| 57 #include "windows.h" | |
| 53 #endif | 58 #endif |
| 54 | 59 |
| 55 extern char *getpythonpath(); | 60 extern char *getpythonpath(); |
| 56 | 61 |
| 57 extern grammar gram; /* From graminit.c */ | 62 extern grammar gram; /* From graminit.c */ |
| 561 { | 566 { |
| 562 fprintf(stderr, "Fatal Python error: %s\n", msg); | 567 fprintf(stderr, "Fatal Python error: %s\n", msg); |
| 563 #ifdef macintosh | 568 #ifdef macintosh |
| 564 for (;;); | 569 for (;;); |
| 565 #endif | 570 #endif |
| 571 #ifdef NT | |
| 572 OutputDebugString("Fatal Python error:"); | |
| 573 OutputDebugString(msg); | |
| 574 OutputDebugString("\n"); | |
| 575 #endif | |
| 566 abort(); | 576 abort(); |
| 567 } | 577 } |
| 568 | 578 |
| 569 /* Clean up and exit */ | 579 /* Clean up and exit */ |
| 570 | 580 |
