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
cad3d47f
Kaydet (Commit)
cad3d47f
authored
Ock 04, 1999
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Chris Herborth writes:
Donn Cave tells me the PyImport_BeImageID() function isn't needed anymore.
üst
d3b0921f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
38 deletions
+4
-38
importdl.c
Python/importdl.c
+4
-38
No files found.
Python/importdl.c
Dosyayı görüntüle @
cad3d47f
...
...
@@ -205,14 +205,6 @@ static void beos_init_dyn( void );
static
void
beos_cleanup_dyn
(
void
);
static
void
beos_nuke_dyn
(
PyObject
*
item
);
static
void
beos_add_dyn
(
char
*
pathname
,
image_id
id
);
/* External interface for finding image IDs; useful if you need to
* do your own symbol lookup in dynamically loaded modules. [Donn Cave]
*
* Hmm, could we hack up the Sun dlmodule instead for this sort of thing?
* That might be more generally useful. [chrish]
*/
image_id
PyImport_BeImageID
(
char
*
name
);
#endif
#ifdef DYNAMIC_LINK
...
...
@@ -985,6 +977,10 @@ aix_loaderror(pathname)
* Python without thread support; the 1.5 version required it, which wasn't
* very friendly. Note that I haven't tested it without threading... why
* would you want to avoid threads on BeOS? [chrish]
*
* As of 1.5.2, the PyImport_BeImageID() function has been removed; Donn
* tells me it's not necessary anymore because of PyCObject_Import().
* [chrish]
*/
/*
...
...
@@ -1092,34 +1088,4 @@ static void beos_add_dyn( char *name, image_id id )
#endif
}
/* Given a module name, return the image_id (if it's a dynamically loaded
* module). [Donn Cave]
*/
image_id
PyImport_BeImageID
(
char
*
name
)
{
int
retval
;
PyObject
*
py_id
;
long
id
;
if
(
!
beos_dyn_images
)
{
return
B_ERROR
;
}
#ifdef WITH_THREAD
retval
=
PyThread_acquire_lock
(
beos_dyn_lock
,
1
);
#endif
py_id
=
PyDict_GetItemString
(
beos_dyn_images
,
name
);
if
(
py_id
)
{
id
=
PyInt_AsLong
(
py_id
);
}
else
{
id
=
B_ERROR
;
}
#ifdef WITH_THREAD
PyThread_release_lock
(
beos_dyn_lock
);
#endif
return
(
image_id
)
id
;
}
#endif
/* __BEOS__ */
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