summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-25 17:34:03 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-25 17:34:03 (GMT)
commitda53afa1b09218c0fb7ce8803cd783a43ee9d319 (patch)
tree55ed99dec4c151821786792c743032ccd72ff4af /Include
parente68955cf3299efa93c95a6638e8e68191c57302b (diff)
downloadcpython-da53afa1b09218c0fb7ce8803cd783a43ee9d319.zip
cpython-da53afa1b09218c0fb7ce8803cd783a43ee9d319.tar.gz
cpython-da53afa1b09218c0fb7ce8803cd783a43ee9d319.tar.bz2
A new table to help string->integer conversion was added yesterday to
both mystrtoul.c and longobject.c. Share the table instead. Also cut its size by 64 entries (they had been used for an inscrutable trick originally, but the code no longer tries to use that trick).
Diffstat (limited to 'Include')
-rw-r--r--Include/longobject.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index 77544ef..eef4e9b 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -25,6 +25,7 @@ PyAPI_FUNC(unsigned long) PyLong_AsUnsignedLongMask(PyObject *);
PyAPI_FUNC(Py_ssize_t) _PyLong_AsSsize_t(PyObject *);
PyAPI_FUNC(PyObject *) _PyLong_FromSize_t(size_t);
PyAPI_FUNC(PyObject *) _PyLong_FromSsize_t(Py_ssize_t);
+PyAPI_DATA(int) _PyLong_DigitValue[256];
/* _PyLong_AsScaledDouble returns a double x and an exponent e such that
the true value is approximately equal to x * 2**(SHIFT*e). e is >= 0.