[Python-checkins] cpython (2.7): #12670: Fix struct code after forward declaration on ctypes doc
sandro.tosi
python-checkins at python.org
Tue Aug 2 16:47:56 CEST 2011
http://hg.python.org/cpython/rev/2aa8dd4df650
changeset: 71694:2aa8dd4df650
branch: 2.7
parent: 71690:209ad8920b03
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Tue Aug 02 16:16:11 2011 +0200
summary:
#12670: Fix struct code after forward declaration on ctypes doc
files:
Doc/library/ctypes.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -869,10 +869,10 @@
struct cell; /* forward declaration */
- struct {
+ struct cell {
char *name;
struct cell *next;
- } cell;
+ };
The straightforward translation into ctypes code would be this, but it does not
work::
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list