[Python-bugs-list] [ python-Bugs-431557 ] issue with include/cStringIO.h and C++
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 08 Jun 2001 19:16:46 -0700
Bugs item #431557, was updated on 2001-06-08 19:16
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431557&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Gravereaux (davygrvy)
Assigned to: Nobody/Anonymous (nobody)
Summary: issue with include/cStringIO.h and C++
Initial Comment:
The #define for PycString_IMPORT, should probably be
wrapped in a pre-processor check for __cplusplus.
what is:
#define PycString_IMPORT \
PycStringIO=xxxPyCObject_Import
("cStringIO", "cStringIO_CAPI")
could be:
#ifdef __cplusplus
# define PycString_IMPORT \
PycStringIO=static_cast<struct
PycStringIO_CAPI*>(xxxPyCObject_Import
("cStringIO", "cStringIO_CAPI"))
#else
# define PycString_IMPORT \
PycStringIO=xxxPyCObject_Import
("cStringIO", "cStringIO_CAPI")
#endif
to avoid a compiler warning about not being able to
place a void* where a struct PycStringIO_CAPI* should
go.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431557&group_id=5470