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

Skip to content

Commit 0040b47

Browse files
committed
- Put USE_MAC_DYNAMIC_LOADING beack here in stead of auto-enabling it
in importdl.c (I had just one crash too many with a static python importing a dynamic module) - On powerpc, enable USE_CACHE_ALIGNED with a linesize of 32 bytes.
1 parent 7e94404 commit 0040b47

3 files changed

Lines changed: 13 additions & 0 deletions

File tree

Mac/mwerks/mwerks_nonshared_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,9 @@
1818
#define MAC_TCL /* This *must* be on if USE_TK is on */
1919
/* #define USE_MAC_SHARED_LIBRARY /* Enable code to add shared-library resources */
2020
/* #define USE_MAC_APPLET_SUPPORT /* Enable code to run a PYC resource */
21+
/* #define USE_MAC_DYNAMIC_LOADING /* Enable dynamically loaded modules */
2122
/* #define USE_MALLOC_DEBUG /* Enable range checking and other malloc debugging */
2223
#define USE_GDBM /* Include the gdbm module */
24+
#ifdef __powerc
25+
#define USE_CACHE_ALIGNED 8 /* Align on 32-byte boundaries for 604 */
26+
#endif

Mac/mwerks/mwerks_shared_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@
1919
/* #define MAC_TCL /* This *must* be on if USE_TK is on */
2020
#define USE_MAC_SHARED_LIBRARY /* Enable code to add shared-library resources */
2121
#define USE_MAC_APPLET_SUPPORT /* Enable code to run a PYC resource */
22+
#define USE_MAC_DYNAMIC_LOADING /* Enable dynamically loaded modules */
2223
/* #define USE_MALLOC_DEBUG /* Enable range checking and other malloc debugging */
24+
#ifdef __powerc
25+
#define USE_CACHE_ALIGNED 8 /* Align on 32-byte boundaries for 604 */
26+
#endif

Mac/mwerks/mwerks_small_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@
1818
/* #define MAC_TCL /* This *must* be on if USE_TK is on */
1919
/* #define USE_MAC_SHARED_LIBRARY /* Enable code to add shared-library resources */
2020
/* #define USE_MAC_APPLET_SUPPORT /* Enable code to run a PYC resource */
21+
/* #define USE_MAC_DYNAMIC_LOADING /* Enable dynamically loaded modules */
2122
/* #define USE_MALLOC_DEBUG /* Enable range checking and other malloc debugging */
23+
/* #define USE_GDBM /* Include the gdbm module */
24+
#ifdef __powerc
25+
#define USE_CACHE_ALIGNED 8 /* Align on 32-byte boundaries for 604 */
26+
#endif

0 commit comments

Comments
 (0)