diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-10-08 15:32:17 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-10-08 15:32:17 (GMT) |
commit | 509ad42470b5faef7ff96b886b5a9ef224c60357 (patch) | |
tree | 27f4e86a1c8f547a2c6fa32a085a35e61c923211 /Mac | |
parent | 1c45073aba8f4097b4dc74d4fd3b2f5ed5e5ea9b (diff) | |
download | cpython-509ad42470b5faef7ff96b886b5a9ef224c60357.zip cpython-509ad42470b5faef7ff96b886b5a9ef224c60357.tar.gz cpython-509ad42470b5faef7ff96b886b5a9ef224c60357.tar.bz2 |
Brought up to date with the current state of affairs.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Demo/embed/demo.c | 11 | ||||
-rw-r--r-- | Mac/Demo/embed/embeddemo.prj | bin | 25071 -> 51653 bytes |
2 files changed, 6 insertions, 5 deletions
diff --git a/Mac/Demo/embed/demo.c b/Mac/Demo/embed/demo.c index a23c249..7d450f1 100644 --- a/Mac/Demo/embed/demo.c +++ b/Mac/Demo/embed/demo.c @@ -3,7 +3,6 @@ #include "Python.h" #ifdef macintosh #include "macglue.h" -#include <SIOUX.h> #endif /* macintosh */ static char *argv0; @@ -21,6 +20,12 @@ main(argc, argv) /* Initialize the Python interpreter. Required. */ #ifdef macintosh + /* If the first option is "-q" we don't open a console */ + if ( argc > 1 && strcmp(argv[1], "-q") == 0 ) { + PyMac_SetConsoleHandler(PyMac_DummyReadHandler, PyMac_DummyWriteHandler, + PyMac_DummyWriteHandler); +/* freopen("demo output", "w", stdout); */ + } PyMac_Initialize(); #else Py_Initialize(); @@ -45,10 +50,6 @@ main(argc, argv) /* Some more application specific code */ printf("\nGoodbye, cruel world\n"); -#ifdef macintosh - printf("Type return or so-\n"); - getchar(); -#endif /* Exit, cleaning up the interpreter */ Py_Exit(0); /*NOTREACHED*/ diff --git a/Mac/Demo/embed/embeddemo.prj b/Mac/Demo/embed/embeddemo.prj Binary files differindex 8bcb272..e519b5c 100644 --- a/Mac/Demo/embed/embeddemo.prj +++ b/Mac/Demo/embed/embeddemo.prj |