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
7c496ec6
Kaydet (Commit)
7c496ec6
authored
Şub 20, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ported to CFM-68K
üst
42a69c84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
macshlglue.c
Mac/Python/macshlglue.c
+19
-12
No files found.
Mac/Python/macshlglue.c
Dosyayı görüntüle @
7c496ec6
/*
** mac shared lib glue.
**
** Partially stolen from MW Startup.c, which is
** Copyright 1993 metrowerks inc. All Rights Reserved.
** Mac shared lib glue.
*/
#ifdef __powerc
#include <CPlusLibPPC.h>
#endif
#include <Quickdraw.h>
#include <SegLoad.h>
#include <setjmp.h>
#include <FragLoad.h>
#include <Files.h>
#include <Resources.h>
#ifdef __MWERKS__
/*
** This part is copied from MW Startup.c, which is
** Copyright 1993 metrowerks inc. All Rights Reserved.
*/
#include <setjmp.h>
#include <stdio.h>
char
*
macstrerror
();
DestructorChain
*
__local_destructor_chain
;
/* chain of local objects that need destruction */
/* public data */
...
...
@@ -26,17 +28,22 @@ 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
/*
** Variables passed from shared lib initialization to PyMac_AddLibResources.
*/
static
int
library_fss_valid
;
static
FSSpec
library_fss
;
int
library_fss_valid
;
FSSpec
library_fss
;
/*
** Routine called upon fragment load. We attempt to save the FSSpec from which we're
** loaded. We always return noErr (we just continue without the resources).
*/
OSErr
OSErr
pascal
__sinit
(
InitBlockPtr
data
)
{
if
(
data
==
NULL
)
return
noErr
;
if
(
data
==
nil
)
return
noErr
;
if
(
data
->
fragLocator
.
where
==
kOnDiskFlat
)
{
library_fss
=
*
data
->
fragLocator
.
u
.
onDisk
.
fileSpec
;
library_fss_valid
=
1
;
...
...
@@ -62,4 +69,4 @@ PyMac_AddLibResources()
return
;
fd
=
FSpOpenResFile
(
&
library_fss
,
fsRdPerm
);
}
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