summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-18 14:14:13 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-18 14:14:13 (GMT)
commit78694d970fbdc70cfbda5b21a556f6e11f684fb0 (patch)
treed71e26b1713a75e19efb6520c3f5499e4025fa66 /Include
parent43b655c0abe49fc5fd08c2a4c5a763cdaa8afb11 (diff)
downloadcpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.zip
cpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.tar.gz
cpython-78694d970fbdc70cfbda5b21a556f6e11f684fb0.tar.bz2
Patches from Greg Stein to support 'P' format in struct module's
native format, as void* (translated to Python int or long). Also adds PyLong_FromVoidPtr and PyLong_AsVoidPtr to longobject.c.
Diffstat (limited to 'Include')
-rw-r--r--Include/longobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/longobject.h b/Include/longobject.h
index d9bc086..afb8af1 100644
--- a/Include/longobject.h
+++ b/Include/longobject.h
@@ -49,6 +49,8 @@ extern PyObject *PyLong_FromDouble Py_PROTO((double));
extern long PyLong_AsLong Py_PROTO((PyObject *));
extern unsigned long PyLong_AsUnsignedLong Py_PROTO((PyObject *));
extern double PyLong_AsDouble Py_PROTO((PyObject *));
+extern PyObject *PyLong_FromVoidPtr Py_PROTO((void *));
+extern void *PyLong_AsVoidPtr Py_PROTO((PyObject *));
#ifdef HAVE_LONG_LONG
#ifndef LONG_LONG