comparison Modules/_struct.c @ 38371:a4e433c136da legacy-trunk

Enable PY_USE_INT_WHEN_POSSIBLE in struct
author Bob Ippolito <bob@redivi.com>
date Fri, 26 May 2006 14:29:35 +0000
parents fa98b8df0fe2
children 1ba3e40e8649
comparison
equal deleted inserted replaced
38370:fa98b8df0fe2 38371:a4e433c136da
14 #if (PY_VERSION_HEX < 0x02050000) 14 #if (PY_VERSION_HEX < 0x02050000)
15 typedef int Py_ssize_t; 15 typedef int Py_ssize_t;
16 #endif 16 #endif
17 17
18 18
19 /* PY_USE_INT_WHEN_POSSIBLE is an experimental flag that changes the 19 /* PY_USE_INT_WHEN_POSSIBLE is a flag that changes the
20 struct API to return int instead of long when possible. This is 20 struct API to return int instead of long when possible. This is
21 often a significant performance improvement. */ 21 often a significant performance improvement. */
22 /*
23 #define PY_USE_INT_WHEN_POSSIBLE 1 22 #define PY_USE_INT_WHEN_POSSIBLE 1
24 */
25 23
26 /* PY_STRUCT_RANGE_CHECKING performs range checking on all arguments 24 /* PY_STRUCT_RANGE_CHECKING performs range checking on all arguments
27 to be packed. This will break some incorrect code that happened 25 to be packed. This will break some incorrect code that happened
28 to accidentally do the right thing anyway (such as binhex). */ 26 to accidentally do the right thing anyway (such as binhex). */
29 #define PY_STRUCT_RANGE_CHECKING 1 27 #define PY_STRUCT_RANGE_CHECKING 1