[Python-bugs-list] [ python-Bugs-592446 ] missing extern "C"

noreply@sourceforge.net noreply@sourceforge.net
Thu, 08 Aug 2002 16:09:44 -0700


Bugs item #592446, was opened at 2002-08-08 07:51
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=592446&group_id=5470

Category: None
Group: Python 2.2.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: David Abrahams (david_abrahams)
Assigned to: Nobody/Anonymous (nobody)
>Summary: missing extern "C"

Initial Comment:
cxx: Error: ../../../libs/python/src/object/function.cpp, 
line 276: #144-D a
          value of type "PyObject *(*)(PyObject *, void *) 
C" cannot be used
          to initialize an entity of type "getter"
        {"__doc__", function_get_doc, (setter)
function_set_doc},

This indicates that the typedef "getter" for the function 
pointer type PyObject* (*)(PyObject*, void*) is missing 
the

 #ifdef __cplusplus
 extern "C" {
 #endif
  ...

 #ifdef __cplusplus
 }
 #endif

brackets

-Dave

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2002-08-09 01:09

Message:
Logged In: YES 
user_id=21627

This was fixed in descrobject.h 1.9, in response to your
patch 536908; to be released with Python 2.3.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=592446&group_id=5470