summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macapplication.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-02-24 22:53:16 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-02-24 22:53:16 (GMT)
commit76efd8e7a193d5e17f0f607ec5a2756636f9a9a5 (patch)
treefbd1495cc56a17715fbf6e8d175bcc7503c6330c /Mac/Python/macapplication.c
parent397c3fb4d7b0e3bca7471e2f3e166b59d769880f (diff)
downloadcpython-76efd8e7a193d5e17f0f607ec5a2756636f9a9a5.zip
cpython-76efd8e7a193d5e17f0f607ec5a2756636f9a9a5.tar.gz
cpython-76efd8e7a193d5e17f0f607ec5a2756636f9a9a5.tar.bz2
MAde a few things more orthogonal and did some cleanups:
- Applications now have their (minimal) main prrogram in macapplication.c and the rest of the init code in macglue.c. - A new define, USE_MAC_APPLET_SUPPORT, independent of USE_MAC_SHARED_LIB - chdir to script directory now done in PyMac_InitApplication.
Diffstat (limited to 'Mac/Python/macapplication.c')
-rw-r--r--Mac/Python/macapplication.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/Mac/Python/macapplication.c b/Mac/Python/macapplication.c
new file mode 100644
index 0000000..bac0620
--- /dev/null
+++ b/Mac/Python/macapplication.c
@@ -0,0 +1,35 @@
+/***********************************************************
+Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
+The Netherlands.
+
+ All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation, and that the names of Stichting Mathematisch
+Centrum or CWI not be used in advertising or publicity pertaining to
+distribution of the software without specific, written prior permission.
+
+STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
+THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
+FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+******************************************************************/
+
+/* Macintosh Applet Python main program */
+
+#ifdef __CFM68K__
+#pragma lib_export on
+#endif
+
+extern void PyMac_InitApplication();
+
+main() {
+ PyMac_InitApplication();
+}