Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
71219dad
Commit
71219dad
authored
Feb 25, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More eol-style's
parent
7f1e174c
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1420 additions
and
1421 deletions
+1420
-1421
PC/python3.def
PC/python3.def
+689
-689
PC/python3.mak
PC/python3.mak
+10
-10
PC/python33gen.py
PC/python33gen.py
+24
-25
PC/python33stub.def
PC/python33stub.def
+689
-689
PC/python3dll.c
PC/python3dll.c
+8
-8
No files found.
PC/python3.def
View file @
71219dad
This diff is collapsed.
Click to expand it.
PC/python3.mak
View file @
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
View file @
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
View file @
71219dad
This diff is collapsed.
Click to expand it.
PC/python3dll.c
View file @
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