From: Robert Bradshaw Date: Sat, 14 Mar 2009 23:39:48 +0000 (-0700) Subject: Remove ctypedef of size_t X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a8d28872431ad12eb3fd56050ba03ff1242f7af;p=cython.git Remove ctypedef of size_t --- 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.