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
5bd85d93
Kaydet (Commit)
5bd85d93
authored
Agu 23, 1996
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Always call __initialize(), also on PPC
üst
27b10ece
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
23 deletions
+14
-23
macshlglue.c
Mac/Python/macshlglue.c
+14
-23
No files found.
Mac/Python/macshlglue.c
Dosyayı görüntüle @
5bd85d93
/*
** Mac shared lib glue.
** Shared library initialization code.
**
** This code calls the MetroWerks shared-library initialization code
** and performs one extra step: it remembers the FSSpec of the file
** we are loaded from, so we can later call PyMac_AddLibResources to
** add the file to our resource file chain.
**
** This file is needed for PythonCore and for any dynamically loaded
** module that has interesting resources in its .slb file.
** Use by replacing __initialize in the "CFM preferences" init field
** by __initialize_with_resources.
*/
#include <Quickdraw.h>
...
...
@@ -8,26 +18,6 @@
#include <Files.h>
#include <Resources.h>
#ifdef __MWERKS__
#ifdef PRE_CW8
/*
** This part is copied from MW Startup.c, which is
** Copyright 1993 metrowerks inc. All Rights Reserved.
*/
#include <setjmp.h>
#include <stdio.h>
/* void *__local_destructor_chain; /* chain of local objects that need destruction */
/* public data */
QDGlobals
qd
;
/* define the Quickdraw globals here! */
jmp_buf
__program_exit
;
/* exit() does a longjmp() to here */
void
(
*
__atexit_hook
)(
void
);
/* atexit() sets this up if it is ever called */
void
(
*
___atexit_hook
)(
void
);
/* _atexit() sets this up if it is ever called */
int
__aborting
;
/* abort() sets this and longjmps to __program_exit */
#endif
#endif
/*
** Variables passed from shared lib initialization to PyMac_AddLibResources.
...
...
@@ -40,10 +30,11 @@ static FSSpec library_fss;
** loaded. We always return noErr (we just continue without the resources).
*/
OSErr
pascal
PythonCore_init
(
InitBlockPtr
data
)
__initialize_with_resources
(
InitBlockPtr
data
)
{
/* Call the MW runtime's initialization routine */
#ifdef __CFM68K__
/* #ifdef __CFM68K__ */
#if 1
__initialize
();
#else
__sinit
();
...
...
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