Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
b760923b
Kaydet (Commit)
b760923b
authored
Agu 07, 2001
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Got rid of 68k-Mac and other outdated ifdefs.
üst
71c5b028
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
37 deletions
+0
-37
pyconfig.h
Mac/Include/pyconfig.h
+0
-5
macspeechmodule.c
Mac/Modules/macspeechmodule.c
+0
-6
macapplication.c
Mac/Python/macapplication.c
+0
-4
macglue.c
Mac/Python/macglue.c
+0
-16
macimport.c
Mac/Python/macimport.c
+0
-6
No files found.
Mac/Include/pyconfig.h
Dosyayı görüntüle @
b760923b
...
...
@@ -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
...
...
Mac/Modules/macspeechmodule.c
Dosyayı görüntüle @
b760923b
...
...
@@ -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
;
}
...
...
Mac/Python/macapplication.c
Dosyayı görüntüle @
b760923b
...
...
@@ -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
);
...
...
Mac/Python/macglue.c
Dosyayı görüntüle @
b760923b
...
...
@@ -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
...
...
Mac/Python/macimport.c
Dosyayı görüntüle @
b760923b
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment