[Python-checkins] r71307 - in python/branches/py3k-short-float-repr: Include/dtoa.h Python/dtoa.c

mark.dickinson python-checkins at python.org
Mon Apr 6 15:17:26 CEST 2009


Author: mark.dickinson
Date: Mon Apr  6 15:17:24 2009
New Revision: 71307

Log:
Make freedtoa publicly available, and rename it to _Py_dg_freedtoa


Modified:
   python/branches/py3k-short-float-repr/Include/dtoa.h
   python/branches/py3k-short-float-repr/Python/dtoa.c

Modified: python/branches/py3k-short-float-repr/Include/dtoa.h
==============================================================================
--- python/branches/py3k-short-float-repr/Include/dtoa.h	(original)
+++ python/branches/py3k-short-float-repr/Include/dtoa.h	Mon Apr  6 15:17:24 2009
@@ -5,6 +5,8 @@
 PyAPI_FUNC(double) _Py_dg_strtod(const char *str, char **ptr);
 PyAPI_FUNC(char *) _Py_dg_dtoa(double d, int mode, int ndigits,
                         int *decpt, int *sign, char **rve);
+PyAPI_FUNC(void) _Py_dg_freedtoa(char *s);
+
 
 #ifdef __cplusplus
 }

Modified: python/branches/py3k-short-float-repr/Python/dtoa.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/dtoa.c	(original)
+++ python/branches/py3k-short-float-repr/Python/dtoa.c	Mon Apr  6 15:17:24 2009
@@ -2032,7 +2032,7 @@
  */
 
  void
-freedtoa(char *s)
+_Py_dg_freedtoa(char *s)
 {
 	Bigint *b = (Bigint *)((int *)s - 1);
 	b->maxwds = 1 << (b->k = *(int*)b);
@@ -2125,7 +2125,7 @@
 	char *s, *s0;
 
 	if (dtoa_result) {
-		freedtoa(dtoa_result);
+		_Py_dg_freedtoa(dtoa_result);
 		dtoa_result = 0;
 		}
 


More information about the Python-checkins mailing list