[Python-bugs-list] [ python-Bugs-431557 ] issue with include/cStringIO.h and C++
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 09 Jun 2001 01:00:14 -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: Closed
>Resolution: Fixed
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.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2001-06-09 01:00
Message:
Logged In: YES
user_id=21627
Fixed with cStringIO.h 2.15.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431557&group_id=5470