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
71219dad
Kaydet (Commit)
71219dad
authored
Şub 25, 2011
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
More eol-style's
üst
7f1e174c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
43 deletions
+43
-43
python3.def
PC/python3.def
+0
-0
python3.mak
PC/python3.mak
+10
-10
python33gen.py
PC/python33gen.py
+24
-25
python33stub.def
PC/python33stub.def
+0
-0
python3dll.c
PC/python3dll.c
+9
-8
No files found.
PC/python3.def
Dosyayı görüntüle @
71219dad
This diff is collapsed.
Click to expand it.
PC/python3.mak
Dosyayı görüntüle @
71219dad
$(OutDir)python33.dll: python3.def $(OutDir)python33stub.lib
cl /LD /Fe$(OutDir)python3.dll python3dll.c python3.def $(OutDir)python33stub.lib
$(OutDir)python33stub.lib: python33stub.def
lib /def:python33stub.def /out:$(OutDir)python33stub.lib /MACHINE:$(MACHINE)
clean:
del $(OutDir)python3.dll $(OutDir)python3.lib $(OutDir)python33stub.lib $(OutDir)python3.exp $(OutDir)python33stub.exp
rebuild: clean $(OutDir)python33.dll
$(OutDir)python33.dll: python3.def $(OutDir)python33stub.lib
cl /LD /Fe$(OutDir)python3.dll python3dll.c python3.def $(OutDir)python33stub.lib
$(OutDir)python33stub.lib: python33stub.def
lib /def:python33stub.def /out:$(OutDir)python33stub.lib /MACHINE:$(MACHINE)
clean:
del $(OutDir)python3.dll $(OutDir)python3.lib $(OutDir)python33stub.lib $(OutDir)python3.exp $(OutDir)python33stub.exp
rebuild: clean $(OutDir)python33.dll
PC/python33gen.py
Dosyayı görüntüle @
71219dad
# Generate python33stub.def out of python3.def
# The regular import library cannot be used,
# since it doesn't provide the right symbols for
# data forwarding
out
=
open
(
"python33stub.def"
,
"w"
)
out
.
write
(
'LIBRARY "python33"
\n
'
)
out
.
write
(
'EXPORTS
\n
'
)
inp
=
open
(
"python3.def"
)
inp
.
readline
()
line
=
inp
.
readline
()
assert
line
.
strip
()
==
'EXPORTS'
for
line
in
inp
:
# SYM1=python33.SYM2[ DATA]
head
,
tail
=
line
.
split
(
'.'
)
if
'DATA'
in
tail
:
symbol
,
tail
=
tail
.
split
(
' '
)
else
:
symbol
=
tail
.
strip
()
out
.
write
(
symbol
+
'
\n
'
)
inp
.
close
()
out
.
close
()
# Generate python33stub.def out of python3.def
# The regular import library cannot be used,
# since it doesn't provide the right symbols for
# data forwarding
out
=
open
(
"python33stub.def"
,
"w"
)
out
.
write
(
'LIBRARY "python33"
\n
'
)
out
.
write
(
'EXPORTS
\n
'
)
inp
=
open
(
"python3.def"
)
inp
.
readline
()
line
=
inp
.
readline
()
assert
line
.
strip
()
==
'EXPORTS'
for
line
in
inp
:
# SYM1=python33.SYM2[ DATA]
head
,
tail
=
line
.
split
(
'.'
)
if
'DATA'
in
tail
:
symbol
,
tail
=
tail
.
split
(
' '
)
else
:
symbol
=
tail
.
strip
()
out
.
write
(
symbol
+
'
\n
'
)
inp
.
close
()
out
.
close
()
PC/python33stub.def
Dosyayı görüntüle @
71219dad
This diff is collapsed.
Click to expand it.
PC/python3dll.c
Dosyayı görüntüle @
71219dad
#include <windows.h>
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpReserved
)
{
return
TRUE
;
#include <windows.h>
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpReserved
)
{
return
TRUE
;
}
\ No newline at end of file
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