[Python-checkins] r54148 - sandbox/trunk/pep3101/unicodeformat.c
eric.smith
python-checkins at python.org
Tue Mar 6 10:30:32 CET 2007
Author: eric.smith
Date: Tue Mar 6 10:30:21 2007
New Revision: 54148
Modified:
sandbox/trunk/pep3101/unicodeformat.c
Log:
Removed unused FORMATBUFLEN.
Modified: sandbox/trunk/pep3101/unicodeformat.c
==============================================================================
--- sandbox/trunk/pep3101/unicodeformat.c (original)
+++ sandbox/trunk/pep3101/unicodeformat.c Tue Mar 6 10:30:21 2007
@@ -77,23 +77,12 @@
+ 1 + 1 = 24 */
#define MAXLEN_INT_STRING 64
+#define ABS(x) ((x) < 0 ? -(x) : (x))
+
/************************************************************************/
/*********** Global data structures and forward declarations *********/
/************************************************************************/
-/* FORMATBUFLEN is taken from stringobject.c, it should probably be
- factored out */
-/* fmt%(v1,v2,...) is roughly equivalent to sprintf(fmt, v1, v2, ...)
-
- FORMATBUFLEN is the length of the buffer in which the floats, ints, &
- chars are formatted. XXX This is a magic number. Each formatting
- routine does bounds checking to ensure no overflow, but a better
- solution may be to malloc a buffer of appropriate size for each
- format. For now, the current solution is sufficient.
-*/
-#define FORMATBUFLEN (size_t)120
-
-#define ABS(x) ((x) < 0 ? -(x) : (x))
#ifdef __cplusplus
extern "C" {
More information about the Python-checkins
mailing list