Various fixes for Visual C++ 7.1 and Sun Studio 10

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-06-03 20:52:16 +00:00
commit 4fea1d827a
7 changed files with 8 additions and 7 deletions

View file

@ -540,7 +540,7 @@ namespace swig
%{
namespace swig {
template <class PySeq, class Seq>
static inline void
inline void
assign(const PySeq& pyseq, Seq* seq) {
#ifdef SWIG_STD_NOASSIGN_STL
typedef typename PySeq::value_type value_type;

View file

@ -195,7 +195,7 @@ PySwigObject_type(void) {
= {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
"PySwigObject", /*tp_name*/
(char *)"PySwigObject", /*tp_name*/
sizeof(PySwigObject), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */
@ -352,7 +352,7 @@ PySwigPacked_type(void) {
= {
PyObject_HEAD_INIT(&PyType_Type)
0, /*ob_size*/
"PySwigPacked", /*tp_name*/
(char *)"PySwigPacked", /*tp_name*/
sizeof(PySwigPacked), /*tp_basicsize*/
0, /*tp_itemsize*/
/* methods */

View file

@ -6,7 +6,7 @@
{
namespace swig {
template <class PySeq, class K, class T >
static inline void
inline void
assign(const PySeq& pyseq, std::map<K,T > *map) {
typedef typename std::map<K,T>::value_type value_type;
typename PySeq::const_iterator it = pyseq.begin();

View file

@ -7,7 +7,7 @@
{
namespace swig {
template <class PySeq, class K, class T >
static inline void
inline void
assign(const PySeq& pyseq, std::multimap<K,T > *multimap) {
typedef typename std::map<K,T>::value_type value_type;
typename PySeq::const_iterator it = pyseq.begin();

View file

@ -8,7 +8,7 @@
%{
namespace swig {
template <class PySeq, class T>
static inline void
inline void
assign(const PySeq& pyseq, std::multiset<T>* seq) {
#ifdef SWIG_STD_NOINSERT_TEMPLATE_STL
typedef typename PySeq::value_type value_type;

View file

@ -6,7 +6,7 @@
%{
namespace swig {
template <class PySeq, class T>
static inline void
inline void
assign(const PySeq& pyseq, std::set<T>* seq) {
#ifdef SWIG_STD_NOINSERT_TEMPLATE_STL
typedef typename PySeq::value_type value_type;