STINNER Victor added the comment:

Using #include "_sre.c" in _sre.c looks weird. Instead of huge sections 
delimited by "#ifdef SRE_RECURSIVE", I would prefer something similar to the 
stringlib. ".h" template files included more than once. I also expect shorter 
files: _sre.c is close to 4000 lines of C code :-(

If you move code from _sre.c to a new file, you should use "hg cp" to keep the 
history. For the review, it's maybe better to continue with your SRE_RECURSIVE 
hack :)

--

#define SRE_CHAR Py_UCS1
#define SIZEOF_SRE_CHAR 1
..
#define SRE_CHAR Py_UCS2
#define SIZEOF_SRE_CHAR 1
...
#define SRE_CHAR Py_UCS4
#define SIZEOF_SRE_CHAR 1

The value of SIZEOF_SRE_CHAR looks suspicious.

Does test_re have some non-ASCII tests? If not, we should probably start by 
adding such tests!

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18685>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to