[Python-checkins] python/dist/src/Modules sre.h,2.24,2.25

loewis at users.sourceforge.net loewis at users.sourceforge.net
Fri May 7 03:18:16 EDT 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24486/Modules

Modified Files:
	sre.h 
Log Message:
Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848.
Backported to 2.3.


Index: sre.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/sre.h,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -d -r2.24 -r2.25
*** sre.h	14 Feb 2004 00:31:13 -0000	2.24
--- sre.h	7 May 2004 07:18:13 -0000	2.25
***************
*** 17,21 ****
     large enough to hold a Py_UNICODE character) */
  #ifdef Py_UNICODE_WIDE
! #define SRE_CODE unsigned long
  #else
  #define SRE_CODE unsigned short
--- 17,21 ----
     large enough to hold a Py_UNICODE character) */
  #ifdef Py_UNICODE_WIDE
! #define SRE_CODE Py_UCS4
  #else
  #define SRE_CODE unsigned short




More information about the Python-checkins mailing list