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
46c76a6c
Kaydet (Commit)
46c76a6c
authored
Ock 20, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
added changes for NetBSD dynamic linking; removed shared linking for NeXT
üst
7f9fa97c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
importdl.c
Python/importdl.c
+16
-3
No files found.
Python/importdl.c
Dosyayı görüntüle @
46c76a6c
...
@@ -36,7 +36,7 @@ extern int verbose; /* Defined in pythonrun.c */
...
@@ -36,7 +36,7 @@ extern int verbose; /* Defined in pythonrun.c */
symbol -- defined for:
symbol -- defined for:
DYNAMIC_LINK -- any kind of dynamic linking
DYNAMIC_LINK -- any kind of dynamic linking
USE_RLD -- NeXT dynamic linking
USE_RLD -- NeXT dynamic linking
(currently disabled)
USE_DL -- Jack's dl for IRIX 4 or GNU dld with emulation for Jack's dl
USE_DL -- Jack's dl for IRIX 4 or GNU dld with emulation for Jack's dl
USE_SHLIB -- SunOS or IRIX 5 (SVR4?) shared libraries
USE_SHLIB -- SunOS or IRIX 5 (SVR4?) shared libraries
_AIX -- AIX style dynamic linking
_AIX -- AIX style dynamic linking
...
@@ -46,6 +46,7 @@ extern int verbose; /* Defined in pythonrun.c */
...
@@ -46,6 +46,7 @@ extern int verbose; /* Defined in pythonrun.c */
SHORT_EXT -- short extension for dynamic module, e.g. ".so"
SHORT_EXT -- short extension for dynamic module, e.g. ".so"
LONG_EXT -- long extension, e.g. "module.so"
LONG_EXT -- long extension, e.g. "module.so"
hpux -- HP-UX Dynamic Linking - defined by the compiler
hpux -- HP-UX Dynamic Linking - defined by the compiler
__NetBSD__ -- NetBSD shared libraries (not quite SVR4 compatible)
(The other WITH_* symbols are used only once, to set the
(The other WITH_* symbols are used only once, to set the
appropriate symbols.)
appropriate symbols.)
...
@@ -62,6 +63,13 @@ typedef void (*dl_funcptr)();
...
@@ -62,6 +63,13 @@ typedef void (*dl_funcptr)();
#define LONG_EXT "module.sl"
#define LONG_EXT "module.sl"
#endif
#endif
#ifdef __NetBSD__
#define DYNAMIC_LINK
#define USE_SHLIB
#define dlerror() "error in dynamic linking"
#endif
#ifdef NT
#ifdef NT
#define DYNAMIC_LINK
#define DYNAMIC_LINK
#include <windows.h>
#include <windows.h>
...
@@ -71,7 +79,7 @@ typedef FARPROC dl_funcptr;
...
@@ -71,7 +79,7 @@ typedef FARPROC dl_funcptr;
#define LONG_EXT "module.pyd"
#define LONG_EXT "module.pyd"
#endif
#endif
#if
defined(NeXT) || defined(WITH_RLD)
#if
def WITH_RLD
#define DYNAMIC_LINK
#define DYNAMIC_LINK
#define USE_RLD
#define USE_RLD
#endif
#endif
...
@@ -106,7 +114,12 @@ static void aix_loaderror(char *name);
...
@@ -106,7 +114,12 @@ static void aix_loaderror(char *name);
#ifdef DYNAMIC_LINK
#ifdef DYNAMIC_LINK
#ifdef USE_SHLIB
#ifdef USE_SHLIB
#ifdef __NetBSD__
#include <nlist.h>
#include <link.h>
#else
#include <dlfcn.h>
#include <dlfcn.h>
#endif
#ifndef _DL_FUNCPTR_DEFINED
#ifndef _DL_FUNCPTR_DEFINED
typedef
void
(
*
dl_funcptr
)();
typedef
void
(
*
dl_funcptr
)();
#endif
#endif
...
@@ -136,7 +149,7 @@ typedef void (*dl_funcptr)();
...
@@ -136,7 +149,7 @@ typedef void (*dl_funcptr)();
extern
char
*
getprogramname
();
extern
char
*
getprogramname
();
#ifndef FUNCNAME_PATTERN
#ifndef FUNCNAME_PATTERN
#if defined(__hp9000s300)
#if defined(__hp9000s300)
|| defined(__NetBSD__)
#define FUNCNAME_PATTERN "_init%.200s"
#define FUNCNAME_PATTERN "_init%.200s"
#else
#else
#define FUNCNAME_PATTERN "init%.200s"
#define FUNCNAME_PATTERN "init%.200s"
...
...
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