mirror of https://github.com/python/cpython
bpo-47152: Move sources of the _sre module into a subdirectory (GH-32290)
This commit is contained in:
parent
4216dce04b
commit
1578f06c1c
|
@ -234,7 +234,7 @@ if __name__ == "__main__":
|
||||||
*
|
*
|
||||||
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
||||||
*
|
*
|
||||||
* See the _sre.c file for information on usage and redistribution.
|
* See the sre.c file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
""")
|
""")
|
||||||
|
|
|
@ -1226,7 +1226,7 @@ Programs/python.o: $(srcdir)/Programs/python.c
|
||||||
Programs/_testembed.o: $(srcdir)/Programs/_testembed.c Programs/test_frozenmain.h
|
Programs/_testembed.o: $(srcdir)/Programs/_testembed.c Programs/test_frozenmain.h
|
||||||
$(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c
|
$(MAINCC) -c $(PY_CORE_CFLAGS) -o $@ $(srcdir)/Programs/_testembed.c
|
||||||
|
|
||||||
Modules/_sre.o: $(srcdir)/Modules/_sre.c $(srcdir)/Modules/sre.h $(srcdir)/Modules/sre_constants.h $(srcdir)/Modules/sre_lib.h
|
Modules/_sre/sre.o: $(srcdir)/Modules/_sre/sre.c $(srcdir)/Modules/_sre/sre.h $(srcdir)/Modules/_sre/sre_constants.h $(srcdir)/Modules/_sre/sre_lib.h
|
||||||
|
|
||||||
Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmodule.h
|
Modules/posixmodule.o: $(srcdir)/Modules/posixmodule.c $(srcdir)/Modules/posixmodule.h
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ _collections _collectionsmodule.c
|
||||||
errno errnomodule.c
|
errno errnomodule.c
|
||||||
_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
_io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c
|
||||||
itertools itertoolsmodule.c
|
itertools itertoolsmodule.c
|
||||||
_sre _sre.c
|
_sre _sre/sre.c
|
||||||
_thread _threadmodule.c
|
_thread _threadmodule.c
|
||||||
time timemodule.c
|
time timemodule.c
|
||||||
_weakref _weakref.c
|
_weakref _weakref.c
|
||||||
|
|
|
@ -2788,7 +2788,7 @@ pattern_richcompare(PyObject *lefto, PyObject *righto, int op)
|
||||||
return PyBool_FromLong(cmp);
|
return PyBool_FromLong(cmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "clinic/_sre.c.h"
|
#include "clinic/sre.c.h"
|
||||||
|
|
||||||
static PyMethodDef pattern_methods[] = {
|
static PyMethodDef pattern_methods[] = {
|
||||||
_SRE_SRE_PATTERN_MATCH_METHODDEF
|
_SRE_SRE_PATTERN_MATCH_METHODDEF
|
|
@ -5,7 +5,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
||||||
*
|
*
|
||||||
* See the _sre.c file for information on usage and redistribution.
|
* See the sre.c file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SRE_INCLUDED
|
#ifndef SRE_INCLUDED
|
|
@ -8,7 +8,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
||||||
*
|
*
|
||||||
* See the _sre.c file for information on usage and redistribution.
|
* See the sre.c file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SRE_MAGIC 20220402
|
#define SRE_MAGIC 20220402
|
|
@ -5,7 +5,7 @@
|
||||||
*
|
*
|
||||||
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
* Copyright (c) 1997-2001 by Secret Labs AB. All rights reserved.
|
||||||
*
|
*
|
||||||
* See the _sre.c file for information on usage and redistribution.
|
* See the sre.c file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* String matching engine */
|
/* String matching engine */
|
|
@ -296,9 +296,6 @@
|
||||||
<ClInclude Include="..\Modules\_math.h" />
|
<ClInclude Include="..\Modules\_math.h" />
|
||||||
<ClInclude Include="..\Modules\hashtable.h" />
|
<ClInclude Include="..\Modules\hashtable.h" />
|
||||||
<ClInclude Include="..\Modules\rotatingtree.h" />
|
<ClInclude Include="..\Modules\rotatingtree.h" />
|
||||||
<ClInclude Include="..\Modules\sre.h" />
|
|
||||||
<ClInclude Include="..\Modules\sre_constants.h" />
|
|
||||||
<ClInclude Include="..\Modules\sre_lib.h" />
|
|
||||||
<ClInclude Include="..\Modules\_io\_iomodule.h" />
|
<ClInclude Include="..\Modules\_io\_iomodule.h" />
|
||||||
<ClInclude Include="..\Modules\cjkcodecs\alg_jisx0201.h" />
|
<ClInclude Include="..\Modules\cjkcodecs\alg_jisx0201.h" />
|
||||||
<ClInclude Include="..\Modules\cjkcodecs\cjkcodecs.h" />
|
<ClInclude Include="..\Modules\cjkcodecs\cjkcodecs.h" />
|
||||||
|
@ -359,7 +356,10 @@
|
||||||
<ClCompile Include="..\Modules\_pickle.c" />
|
<ClCompile Include="..\Modules\_pickle.c" />
|
||||||
<ClCompile Include="..\Modules\_randommodule.c" />
|
<ClCompile Include="..\Modules\_randommodule.c" />
|
||||||
<ClCompile Include="..\Modules\_sha3\sha3module.c" />
|
<ClCompile Include="..\Modules\_sha3\sha3module.c" />
|
||||||
<ClCompile Include="..\Modules\_sre.c" />
|
<ClCompile Include="..\Modules\_sre\sre.c" />
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre.h" />
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre_constants.h" />
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre_lib.h" />
|
||||||
<ClCompile Include="..\Modules\_stat.c" />
|
<ClCompile Include="..\Modules\_stat.c" />
|
||||||
<ClCompile Include="..\Modules\_struct.c" />
|
<ClCompile Include="..\Modules\_struct.c" />
|
||||||
<ClCompile Include="..\Modules\_weakref.c" />
|
<ClCompile Include="..\Modules\_weakref.c" />
|
||||||
|
|
|
@ -240,15 +240,6 @@
|
||||||
<ClInclude Include="..\Modules\rotatingtree.h">
|
<ClInclude Include="..\Modules\rotatingtree.h">
|
||||||
<Filter>Modules</Filter>
|
<Filter>Modules</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\Modules\sre.h">
|
|
||||||
<Filter>Modules</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Modules\sre_constants.h">
|
|
||||||
<Filter>Modules</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Modules\sre_lib.h">
|
|
||||||
<Filter>Modules</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\Modules\_io\_iomodule.h">
|
<ClInclude Include="..\Modules\_io\_iomodule.h">
|
||||||
<Filter>Modules\_io</Filter>
|
<Filter>Modules\_io</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -731,9 +722,18 @@
|
||||||
<ClCompile Include="..\Modules\_sha3\sha3module.c">
|
<ClCompile Include="..\Modules\_sha3\sha3module.c">
|
||||||
<Filter>Modules</Filter>
|
<Filter>Modules</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\Modules\_sre.c">
|
<ClCompile Include="..\Modules\_sre\sre.c">
|
||||||
<Filter>Modules</Filter>
|
<Filter>Modules</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre.h">
|
||||||
|
<Filter>Modules</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre_constants.h">
|
||||||
|
<Filter>Modules</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Modules\_sre\sre_lib.h">
|
||||||
|
<Filter>Modules</Filter>
|
||||||
|
</ClInclude>
|
||||||
<ClCompile Include="..\Modules\_statisticsmodule.c">
|
<ClCompile Include="..\Modules\_statisticsmodule.c">
|
||||||
<Filter>Modules</Filter>
|
<Filter>Modules</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
|
|
@ -148,7 +148,7 @@ Modules/_io/*.c Py_BUILD_CORE 1
|
||||||
Modules/_localemodule.c Py_BUILD_CORE 1
|
Modules/_localemodule.c Py_BUILD_CORE 1
|
||||||
Modules/_operator.c Py_BUILD_CORE 1
|
Modules/_operator.c Py_BUILD_CORE 1
|
||||||
Modules/_posixsubprocess.c Py_BUILD_CORE 1
|
Modules/_posixsubprocess.c Py_BUILD_CORE 1
|
||||||
Modules/_sre.c Py_BUILD_CORE 1
|
Modules/_sre/sre.c Py_BUILD_CORE 1
|
||||||
Modules/_threadmodule.c Py_BUILD_CORE 1
|
Modules/_threadmodule.c Py_BUILD_CORE 1
|
||||||
Modules/_tracemalloc.c Py_BUILD_CORE 1
|
Modules/_tracemalloc.c Py_BUILD_CORE 1
|
||||||
Modules/_weakref.c Py_BUILD_CORE 1
|
Modules/_weakref.c Py_BUILD_CORE 1
|
||||||
|
@ -262,8 +262,8 @@ Modules/expat/xmlparse.c XML_POOR_ENTROPY 1
|
||||||
Modules/_dbmmodule.c HAVE_GDBM_DASH_NDBM_H 1
|
Modules/_dbmmodule.c HAVE_GDBM_DASH_NDBM_H 1
|
||||||
|
|
||||||
# others
|
# others
|
||||||
Modules/sre_lib.h LOCAL(type) static inline type
|
Modules/_sre/sre_lib.h LOCAL(type) static inline type
|
||||||
Modules/sre_lib.h SRE(F) sre_ucs2_##F
|
Modules/_sre/sre_lib.h SRE(F) sre_ucs2_##F
|
||||||
Objects/stringlib/codecs.h STRINGLIB_IS_UNICODE 1
|
Objects/stringlib/codecs.h STRINGLIB_IS_UNICODE 1
|
||||||
Include/internal/pycore_bitutils.h _Py__has_builtin(B) 0
|
Include/internal/pycore_bitutils.h _Py__has_builtin(B) 0
|
||||||
|
|
||||||
|
|
|
@ -20557,6 +20557,7 @@ SRCDIRS="\
|
||||||
Modules/_multiprocessing \
|
Modules/_multiprocessing \
|
||||||
Modules/_sha3 \
|
Modules/_sha3 \
|
||||||
Modules/_sqlite \
|
Modules/_sqlite \
|
||||||
|
Modules/_sre \
|
||||||
Modules/_xxtestfuzz \
|
Modules/_xxtestfuzz \
|
||||||
Modules/cjkcodecs \
|
Modules/cjkcodecs \
|
||||||
Modules/expat \
|
Modules/expat \
|
||||||
|
|
|
@ -5992,6 +5992,7 @@ SRCDIRS="\
|
||||||
Modules/_multiprocessing \
|
Modules/_multiprocessing \
|
||||||
Modules/_sha3 \
|
Modules/_sha3 \
|
||||||
Modules/_sqlite \
|
Modules/_sqlite \
|
||||||
|
Modules/_sre \
|
||||||
Modules/_xxtestfuzz \
|
Modules/_xxtestfuzz \
|
||||||
Modules/cjkcodecs \
|
Modules/cjkcodecs \
|
||||||
Modules/expat \
|
Modules/expat \
|
||||||
|
|
Loading…
Reference in New Issue