From 9a8d28872431ad12eb3fd56050ba03ff1242f7af Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 14 Mar 2009 16:39:48 -0700 Subject: [PATCH] Remove ctypedef of size_t --- docs/external_C_code.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/external_C_code.rst b/docs/external_C_code.rst index 4d5c3828..14910c28 100644 --- a/docs/external_C_code.rst +++ b/docs/external_C_code.rst @@ -119,15 +119,15 @@ match the C ones, and in some cases they shouldn't or can't. In particular: -4. If the header file uses ``typedef`` names such as :ctype:`size_t` to refer +4. If the header file uses ``typedef`` names such as :ctype:`word` to refer to platform-dependent flavours of numeric types, you will need a corresponding :keyword:`ctypedef` statement, but you don't need to match the type exactly, just use something of the right general kind (int, float, etc). For example,:: - ctypedef int size_t + ctypedef int word - will work okay whatever the actual size of a :ctype:`size_t` is (provided the header + will work okay whatever the actual size of a :ctype:`word ` is (provided the header file defines it correctly). Conversion to and from Python types, if any, will also be used for this new type. -- 2.26.2