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
4a79e360
Commit
4a79e360
authored
Jun 10, 2002
by
Andrew MacIntyre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make _sre a dynamically loadable module and build xxsubtype
parent
388fbf3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
PC/os2emx/Makefile
PC/os2emx/Makefile
+14
-3
PC/os2emx/config.c
PC/os2emx/config.c
+3
-1
No files found.
PC/os2emx/Makefile
View file @
4a79e360
...
...
@@ -252,8 +252,7 @@ SRC.MODULES= $(addprefix $(TOP), \
Modules/gcmodule.c
\
Modules/signalmodule.c
\
Modules/posixmodule.c
\
Modules/threadmodule.c
\
Modules/_sre.c
)
Modules/threadmodule.c
)
SRC.PARSER
=
$(
addprefix
$(TOP)
,
\
Parser/acceler.c
\
Parser/grammar1.c
\
...
...
@@ -382,11 +381,13 @@ HARDEXTMODULES= binascii \
pcre
\
regex
\
_socket
\
_sre
\
termios
\
_testcap
\
unicoded
\
_weakref
\
xreadlin
xreadlin
\
xxsubtyp
# Python external ($(MODULE.EXT)) modules - can be EASY or HARD
ifeq
($(ZLIB),yes)
...
...
@@ -513,6 +514,9 @@ regex$(MODULE.EXT): $(OUT)regexmodule$O $(OUT)regexpr$O $(OUT)regex_m.def $(PYTH
_socket$(MODULE.EXT)
:
$(OUT)socketmodule$O $(OUT)_socket_m.def $(PYTHON.IMPLIB)
$(LD)
$(LDFLAGS.DLL)
-o
$@
$
(
^^
)
$
(
L^
)
$(LIBS)
_sre$(MODULE.EXT)
:
$(OUT)_sre$O $(OUT)_sre_m.def $(PYTHON.IMPLIB)
$(LD)
$(LDFLAGS.DLL)
-o
$@
$
(
^^
)
$
(
L^
)
$(LIBS)
# _symtable needs to be renamed to be useful
_symtable$(MODULE.EXT)
:
$(OUT)symtablemodule$O $(OUT)_symtable_m.def $(PYTHON.IMPLIB)
$(LD)
$(LDFLAGS.DLL)
-o
$@
$
(
^^
)
$
(
L^
)
$(LIBS)
...
...
@@ -547,6 +551,13 @@ xreadlines$(MODULE.EXT): $(OUT)xreadlinesmodule$O $(OUT)xreadlines_m.def $(PYTHO
xreadlin$(MODULE.EXT)
:
xreadlines$(MODULE.EXT)
cp
$^
$@
# xxsubtype needs to be renamed to be useful
xxsubtype$(MODULE.EXT)
:
$(OUT)xxsubtype$O $(OUT)xxsubtype_m.def $(PYTHON.IMPLIB)
$(LD)
$(LDFLAGS.DLL)
-o
$@
$
(
^^
)
$
(
L^
)
$(LIBS)
xxsubtyp$(MODULE.EXT)
:
xxsubtype$(MODULE.EXT)
cp
$^
$@
# - optional modules (requiring other software to be installed)
bsddb$(MODULE.EXT)
:
$(OUT)bsddbmodule$O $(OUT)bsddb_m.def $(PYTHON.IMPLIB)
$(LD)
$(LDFLAGS.DLL)
-o
$@
$
(
^^
)
$
(
L^
)
-ldb
$(LIBS)
...
...
PC/os2emx/config.c
View file @
4a79e360
...
...
@@ -80,6 +80,7 @@ extern void inittime();
extern
void
inittiming
();
extern
void
initunicodedata
();
extern
void
initxreadlines
();
extern
void
initxxsubtype
();
extern
void
initzlib
();
/* -- ADDMODULE MARKER 1 -- */
...
...
@@ -91,7 +92,6 @@ struct _inittab _PyImport_Inittab[] = {
{
"gc"
,
initgc
},
{
"os2"
,
initos2
},
{
"_sre"
,
init_sre
},
{
"signal"
,
initsignal
},
#ifdef WITH_THREAD
{
"thread"
,
initthread
},
...
...
@@ -102,6 +102,7 @@ struct _inittab _PyImport_Inittab[] = {
{
"_curses_panel"
,
init_curses_panel
},
{
"_hotshot"
,
init_hotshot
},
{
"_locale"
,
init_locale
},
{
"_sre"
,
init_sre
},
{
"_testcapi"
,
init_testcapi
},
{
"_weakref"
,
init_weakref
},
{
"array"
,
initarray
},
...
...
@@ -134,6 +135,7 @@ struct _inittab _PyImport_Inittab[] = {
{
"timing"
,
inittiming
},
{
"unicodedata"
,
initunicodedata
},
{
"xreadlines"
,
initxreadlines
},
{
"xxsubtype"
,
initxxsubtype
},
{
"zlib"
,
initzlib
},
#ifdef USE_SOCKET
{
"_socket"
,
init_socket
},
...
...
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