A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-August/037602.html below:

[Python-Dev] Forward declaration of PyObject* values

[Python-Dev] Forward declaration of PyObject* values [Python-Dev] Forward declaration of PyObject* valuesTom Emerson tree at basistech.com
Wed Aug 13 17:14:46 EDT 2003
Scott Gilbert writes:
> I used the following for a similar task:
> 
> #ifndef PyObject_HEAD
> struct _object;
> typedef _object PyObject;
> #endif
> 
> Some compilers won't like the incomplete type on the struct, but it looks
> like you're using GCC which should be fine.

Thanks Scott. I'll eventually be on upwards of 11 platforms with this
code, so I'll soon find out what platform compilers don't like this.

    -tree

-- 
Tom Emerson                                          Basis Technology Corp.
Software Architect                                 http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4