Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e420178

Browse files
committed
Rationalized header files:
- mwerks_nonshared_config.h for standalone pythons - mwerks_shared_config.h for shared pythons (PythonCore, app and applet) - mwerks_plugin_config.h for plugins Only the _tkinter plugin uses a customized header. Old config files have gone to the "old" directory, for the time being.
1 parent 4b2c386 commit e420178

4 files changed

Lines changed: 52 additions & 21 deletions

File tree

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
#define HAVE_CONFIG_H
2-
#define USE_STDWIN
3-
#define USE_MACTCP
4-
#define USE_BGEN
5-
#define USE_MACSPEECH
6-
#define USE_IMG
7-
#define USE_MACCTB
8-
#define USE_STACKCHECK
9-
#ifdef __powerc
10-
#define USE_MAC_DYNAMIC_LOADING
11-
#endif
1+
/*
2+
** Configuration file for standalone 68k/ppc Python.
3+
**
4+
** Note: enabling the switches below is not enough to enable the
5+
** specific features, you may also need different sets of sources.
6+
*/
7+
8+
#define USE_GUSI /* Stdio implemented with GUSI */
9+
#define USE_TOOLBOX /* Include toolbox modules in core Python */
10+
#define USE_QT /* Include quicktime modules in core Python */
11+
#define USE_WASTE /* Include waste module in core Python */
12+
#define USE_MACSPEECH /* Include macspeech module in core Python */
13+
#define USE_IMG /* Include img modules in core Python */
14+
#define USE_MACCTB /* Include ctb module in core Python */
15+
/* #define USE_STDWIN /* Include stdwin module in core Python */
16+
/* #define USE_MACTCP /* Include mactcp (*not* socket) modules in core */
17+
/* #define USE_TK /* Include _tkinter module in core Python */
18+
/* #define MAC_TCL /* This *must* be on if USE_TK is on */
19+
/* #define USE_MAC_SHARED_LIBRARY /* Enable code to add shared-library resources */
20+
/* #define USE_MAC_APPLET_SUPPORT /* Enable code to run a PYC resource */

Mac/mwerks/mwerks_plugin_config.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
#define HAVE_CONFIG_H
1+
/*
2+
** Config file for dynamically-loaded ppc/cfm68k plugin modules.
3+
*/
4+
5+
#define USE_GUSI /* Stdio implemented with GUSI */

Mac/mwerks/mwerks_shared_config.h

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1-
#define USE_MAC_SHARED_LIBRARY
2-
#define USE_MAC_APPLET_SUPPORT
3-
/* #define USE_MACTCP */
4-
/* #define USE_BGEN */
5-
/* #define USE_MACSPEECH */
1+
/*
2+
** Configuration file for dynamically loaded cfm68k/ppc PythonCore,
3+
** interpreter and Applet.
4+
**
5+
** Note: enabling the switches below is not enough to enable the
6+
** specific features, you may also need different sets of sources.
7+
*/
68

9+
#define USE_GUSI /* Stdio implemented with GUSI */
10+
/* #define USE_TOOLBOX /* Include toolbox modules in core Python */
11+
/* #define USE_QT /* Include quicktime modules in core Python */
12+
/* #define USE_WASTE /* Include waste module in core Python */
13+
/* #define USE_MACSPEECH /* Include macspeech module in core Python */
14+
/* #define USE_IMG /* Include img modules in core Python */
15+
/* #define USE_MACCTB /* Include ctb module in core Python */
16+
/* #define USE_STDWIN /* Include stdwin module in core Python */
17+
/* #define USE_MACTCP /* Include mactcp (*not* socket) modules in core */
18+
/* #define USE_TK /* Include _tkinter module in core Python */
19+
/* #define MAC_TCL /* This *must* be on if USE_TK is on */
20+
#define USE_MAC_SHARED_LIBRARY /* Enable code to add shared-library resources */
21+
#define USE_MAC_APPLET_SUPPORT /* Enable code to run a PYC resource */
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
#define HAVE_CONFIG_H
2-
#define USE_TK
3-
#define MAC_TCL
4-
#define USE_GUSI
1+
/*
2+
** Special config-file for _tkinter plugin.
3+
*/
4+
5+
#define USE_GUSI /* Stdio implemented with GUSI */
6+
#define USE_TK /* Include _tkinter module in core Python */
7+
#define MAC_TCL /* This *must* be on if USE_TK is on */

0 commit comments

Comments
 (0)