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
dadc824c
Kaydet (Commit)
dadc824c
authored
May 23, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
removed verbose decl; added win3.1 dynamic linking.
üst
40f470f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
importdl.c
Python/importdl.c
+19
-3
No files found.
Python/importdl.c
Dosyayı görüntüle @
dadc824c
...
@@ -29,8 +29,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -29,8 +29,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "osdefs.h"
#include "osdefs.h"
#include "importdl.h"
#include "importdl.h"
extern
int
verbose
;
/* Defined in pythonrun.c */
/* Explanation of some of the the various #defines used by dynamic linking...
/* Explanation of some of the the various #defines used by dynamic linking...
symbol -- defined for:
symbol -- defined for:
...
@@ -41,6 +39,7 @@ extern int verbose; /* Defined in pythonrun.c */
...
@@ -41,6 +39,7 @@ extern int verbose; /* Defined in pythonrun.c */
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
NT -- NT style dynamic linking (using DLLs)
NT -- NT style dynamic linking (using DLLs)
WIN16_DL -- Windows 16-bit dynamic linking (using DLLs)
_DL_FUNCPTR_DEFINED -- if the typedef dl_funcptr has been defined
_DL_FUNCPTR_DEFINED -- if the typedef dl_funcptr has been defined
USE_MAC_DYNAMIC_LOADING -- Mac CFM shared libraries
USE_MAC_DYNAMIC_LOADING -- Mac CFM shared libraries
SHORT_EXT -- short extension for dynamic module, e.g. ".so"
SHORT_EXT -- short extension for dynamic module, e.g. ".so"
...
@@ -79,7 +78,11 @@ typedef void (*dl_funcptr)();
...
@@ -79,7 +78,11 @@ typedef void (*dl_funcptr)();
#define NT
#define NT
#endif
#endif
#ifdef NT
#ifdef MS_WIN16
#define WIN16_DL
#endif
#if defined(NT) || defined(WIN16_DL)
#define DYNAMIC_LINK
#define DYNAMIC_LINK
#include <windows.h>
#include <windows.h>
typedef
FARPROC
dl_funcptr
;
typedef
FARPROC
dl_funcptr
;
...
@@ -377,6 +380,19 @@ load_dynamic_module(name, pathname, fp)
...
@@ -377,6 +380,19 @@ load_dynamic_module(name, pathname, fp)
p
=
GetProcAddress
(
hDLL
,
funcname
);
p
=
GetProcAddress
(
hDLL
,
funcname
);
}
}
#endif
/* NT */
#endif
/* NT */
#ifdef WIN16_DL
{
HINSTANCE
hDLL
;
hDLL
=
LoadLibrary
(
pathname
);
if
(
hDLL
<
HINSTANCE_ERROR
){
char
errBuf
[
256
];
sprintf
(
errBuf
,
"DLL load failed with error code %d"
,
hDLL
);
err_setstr
(
ImportError
,
errBuf
);
return
NULL
;
}
p
=
GetProcAddress
(
hDLL
,
funcname
);
}
#endif
/* WIN16_DL */
#ifdef USE_DL
#ifdef USE_DL
p
=
dl_loadmod
(
getprogramname
(),
pathname
,
funcname
);
p
=
dl_loadmod
(
getprogramname
(),
pathname
,
funcname
);
#endif
/* USE_DL */
#endif
/* USE_DL */
...
...
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