]> granicus.if.org Git - python/commitdiff
Got rid of 68k-Mac and other outdated ifdefs.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 7 Aug 2001 15:30:23 +0000 (15:30 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 7 Aug 2001 15:30:23 +0000 (15:30 +0000)
Mac/Include/pyconfig.h
Mac/Modules/macspeechmodule.c
Mac/Python/macapplication.c
Mac/Python/macglue.c
Mac/Python/macimport.c

index 90b56c444a50b38816e43c29c4db7fb8670c26be..eb5372578b3821909e3af17791fa7c58a1d532d7 100644 (file)
@@ -469,12 +469,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #undef HAVE_HSTRERROR
 
 /* Define if you have the hypot function.  */
-#ifndef __MC68K__
-/* 68K hypot definition (and implementation) are unuseable
-** because they use 10-byte floats.
-*/
 #define HAVE_HYPOT
-#endif
 
 /* Define if you have the inet_pton function.  */
 #undef HAVE_INET_PTON
index a6fbddd645eea207651a22a09cbc2793ed3ecc21..b6c6c2c00d0260eed424c2c0225cfe0df77c1ef4 100644 (file)
@@ -42,10 +42,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include "pascal.h"
 #endif /* __MWERKS__ */
 
-#ifdef __powerc
 #include <CodeFragments.h>
 int lib_available;
-#endif /* __powerc */
 
 /* Somehow the Apple Fix2X and X2Fix don't do what I expect */
 #define fixed2double(x) (((double)(x))/32768.0)
@@ -60,9 +58,7 @@ init_available() {
        OSErr err;
        long result;
 
-#ifdef __powerc
        lib_available = ((ProcPtr)SpeakString != (ProcPtr)0);
-#endif
        err = Gestalt(gestaltSpeechAttr, &result);
        if ( err == noErr && (result & (1<<gestaltSpeechMgrPresent)))
                return 1;
@@ -75,12 +71,10 @@ check_available() {
                PyErr_SetString(ms_error_object, "Speech Mgr not available");
                return 0;
        }
-#ifdef __powerc
        if ( !lib_available ) {
                PyErr_SetString(ms_error_object, "Speech Mgr available, but shared lib missing");
                return 0;
        }
-#endif
        return 1;
 }
 
index 3923af204b288995ea10adb113b261749635355b..4c71234637f39a6014ec30c82e025faccdb21dee 100644 (file)
@@ -27,10 +27,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <Resources.h>
 #include <CodeFragments.h>
 
-#ifdef __CFM68K__
-#pragma lib_export on
-#endif
-
 extern void PyMac_InitApplication(void);
 #ifdef USE_MAC_APPLET_SUPPORT
 extern void PyMac_InitApplet(void);
index b81cd85e1459765fe8a8562839eae9944161cfb0..a8993f5c162a5e548a48436d7329ef5a7a915778 100644 (file)
@@ -46,19 +46,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 #include <Menus.h>
 #include <TextUtils.h>
 #include <LowMem.h>
-#ifdef __CFM68K__
-/* cfm68k InterfaceLib exports GetEventQueue, but Events.h doesn't know this
-** and defines it as GetEvQHdr (which is correct for PPC). This fix is for
-** CW9, check that the workaround is still needed for the next release.
-*/
-#define GetEvQHdr GetEventQueue
-#endif /* __CFM68K__ */
-
 #include <Events.h>
-
-#ifdef __CFM68K__
-#undef GetEventQueue
-#endif /* __CFM68K__ */
 #else
 #include <Carbon/Carbon.h>
 #endif
@@ -99,11 +87,7 @@ extern pascal unsigned char *PLstrrchr(unsigned char *, unsigned char);
 ** raise a MemoryError.
 */
 #ifndef MINIMUM_STACK_SIZE
-#ifdef __powerc
 #define MINIMUM_STACK_SIZE 8192
-#else
-#define MINIMUM_STACK_SIZE 4096
-#endif
 #endif
 
 #if TARGET_API_MAC_CARBON
index b47a6940f507cd255801d2446f8cbd4bf9bcc071..82d64385950676f75af214abebd710d29120db97 100644 (file)
@@ -145,15 +145,9 @@ findnamedresource(
        if ( ok && dataptr != NULL ) {
                HLock(h);
                /* XXXX Unsafe if resource not correctly formatted! */
-#ifdef __CFM68K__
-               /* for cfm68k we take the second pstring */
-               *dataptr = *((*h)+(**h)+1);
-               memcpy(dataptr+1, (*h)+(**h)+2, (int)*dataptr);
-#else
                /* for ppc we take the first pstring */
                *dataptr = **h;
                memcpy(dataptr+1, (*h)+1, (int)*dataptr);
-#endif
                HUnlock(h);
        }
        if ( filerh != -1 )