SourceForge.net | 1 Jun 2011 14:10
Picon
Favicon

[ swig-Bugs-3310145 ] Arrays generation from c++ code

Bugs item #3310145, was opened at 2011-06-01 14:10
Message generated for change (Tracker Item Submitted) made by santiagorp
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3310145&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: csharp
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Santiago Rodrigez Pozo (santiagorp)
Assigned to: William Fulton (wsfulton)
Summary: Arrays generation from c++ code

Initial Comment:
Arrays inside of structs do not generate the right code. Example of interface file:

%module example
%{
#include "example.h"
%}

typedef struct _TestStruct {
	int A;
	int B;
	int* pIntArray;
(Continue reading)

Benjamin Ruard | 1 Jun 2011 14:15

[SWIG and Java]cast of lvalue used by SWIG

Hi everybody!
I asked a question on SWIG-user mailing list and I think it is more
appropriate to ask it on this mailing list. This is a copy of the
message:

Hi everybody!
I have a problem of wrapping when I want use my wrapping generated by
SWIG from C++ to Java.
First I use a program in c++ to check if the code is good:

//file.cpp
#include <stdio.h>
#include "GModel.h" 
#include "GModelFactory.h"
#include "GVertex.h"

int main(int argc, char** argv)
{
        double x=1.0;
        double y=0.0;
        double z=0.0;
        double lc=0.1;  

        GModel *m = new GModel();
        GeoFactory *gFact=new GeoFactory();
        GVertex *v=gFact->addVertex(m, x, y, z, lc);
}

I check this code works.
Then I wrap with SWIG the code of c++ to java.
(Continue reading)

William S Fulton | 1 Jun 2011 20:01
Picon
Favicon
Gravatar

Re: [SWIG and Java]cast of lvalue used by SWIG

On 01/06/11 13:15, Benjamin Ruard wrote:
> Hi everybody!
> I asked a question on SWIG-user mailing list and I think it is more
> appropriate to ask it on this mailing list. This is a copy of the
> message:
>
> Hi everybody!
> I have a problem of wrapping when I want use my wrapping generated by
> SWIG from C++ to Java.
> First I use a program in c++ to check if the code is good:
>
> //file.cpp
> #include<stdio.h>
> #include "GModel.h"
> #include "GModelFactory.h"
> #include "GVertex.h"
>
> int main(int argc, char** argv)
> {
>          double x=1.0;
>          double y=0.0;
>          double z=0.0;
>          double lc=0.1;
>
>          GModel *m = new GModel();
>          GeoFactory *gFact=new GeoFactory();
>          GVertex *v=gFact->addVertex(m, x, y, z, lc);
> }
>
> I check this code works.
(Continue reading)

SourceForge.net | 2 Jun 2011 11:32
Picon
Favicon

[ swig-Bugs-3310528 ] autodoc missing typedef'd struct names

Bugs item #3310528, was opened at 2011-06-02 11:32
Message generated for change (Tracker Item Submitted) made by kwwette
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3310528&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: code generation (general)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Karl Wette (kwwette)
Assigned to: Nobody/Anonymous (nobody)
Summary: autodoc missing typedef'd struct names

Initial Comment:
There seems to a bug in SWIG's autodoc feature. I have the following test interface:

-----
%module test

%feature("autodoc", 1);

typedef struct tagS {
 int a;
 char b;
} S;
(Continue reading)

SourceForge.net | 2 Jun 2011 11:33
Picon
Favicon

[ swig-Bugs-3310528 ] autodoc missing typedef'd struct names

Bugs item #3310528, was opened at 2011-06-02 11:32
Message generated for change (Settings changed) made by kwwette
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3310528&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: code generation (general)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Karl Wette (kwwette)
>Assigned to: William Fulton (wsfulton)
Summary: autodoc missing typedef'd struct names

Initial Comment:
There seems to a bug in SWIG's autodoc feature. I have the following test interface:

-----
%module test

%feature("autodoc", 1);

typedef struct tagS {
 int a;
 char b;
} S;
(Continue reading)

SourceForge.net | 2 Jun 2011 16:25
Picon
Favicon

[ swig-Bugs-3007410 ] template template parameter fails

Bugs item #3007410, was opened at 2010-05-26 15:11
Message generated for change (Comment added) made by kardoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3007410&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: code generation (general)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Guillaume Buisson (gbuisson)
Assigned to: Nobody/Anonymous (nobody)
Summary: template template parameter fails

Initial Comment:
template <template <typename> class T>
void foo(T<float> bar);

%template(fooVec) foo<Vector>;

generates invalid arg1 declaration :
T< float > arg1 ;  // instead of Vector<float>

and type conversion :
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_TT_float_t,  0  | 0);

(Continue reading)

SourceForge.net | 4 Jun 2011 19:04
Picon
Favicon

[ swig-Bugs-3311561 ] Problem with swig + perl 5.14

Bugs item #3311561, was opened at 2011-06-04 19:04
Message generated for change (Tracker Item Submitted) made by bouloumag
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3311561&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: perl
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Christine Darcoux (bouloumag)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with swig + perl 5.14

Initial Comment:
Subversion generate perl bindings using swig. A test fail with swig + perl 5.14. See Debian bug report : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628507

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3311561&group_id=1645

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
(Continue reading)

SourceForge.net | 6 Jun 2011 16:04
Picon
Favicon

[ swig-Patches-3312505 ] Fix wrapping of foo(char *outbuffer)

Patches item #3312505, was opened at 2011-06-06 16:04
Message generated for change (Tracker Item Submitted) made by malat
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3312505&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: general
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mathieu Malaterre (malat)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix wrapping of foo(char *outbuffer)

Initial Comment:
It would be nice to add support for char* in arrays_java.i 

see attached patch

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3312505&group_id=1645

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
(Continue reading)

王振国 | 9 Jun 2011 07:45
Picon

Operator!= doesn't Work for Python 'None

Hello all,

 

I am using Swig(2.0.0) to wrapper a c++ class which have overwrite operator!= like below:

class MyClass {

        public:

                MyClass(int i) {

                        m = i;

                }

                int m;

                bool operator!=(const MyClass& other) const {

                        return (m != other.m);

                }

};

 

Now in Python(2.6), below code works:

m = MyClass(1)

n = MyClass(2)

m != n

 

but neither m or n can’t compare with None, like below:

m != None

n != None

 

The error is:

Traceback (most recent call last):

  File "a.py", line 4, in <module>

    m != None

  File "C:\Python26\lib\mytest.py", line 82, in __ne__                           # m != None

    def __ne__(self, *args): return _mytest.MyClass___ne__(self, *args)

ValueError: invalid null reference in method 'MyClass___ne__', argument 2 of typ            

e 'MyClass const &'

 

 

I checked the generated wrapper code, we can update the statement to return true directly while the argument is None(Py_None), but I find it should be the final way.

Does anyone know how to solve this issue? Or is it a known Swig issue?

 

Thanks in advance.

 

Thanks.

Zhenguo Wang.

 

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
SourceForge.net | 12 Jun 2011 09:24
Picon
Favicon

[ swig-Feature Requests-3315346 ] Support the director feature in Lua

Feature Requests item #3315346, was opened at 2011-06-12 15:24
Message generated for change (Tracker Item Submitted) made by ladace
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=351645&aid=3315346&group_id=1645

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: ladace (ladace)
Assigned to: Nobody/Anonymous (nobody)
Summary: Support the director feature in Lua

Initial Comment:
Though Lua is not a typical oop language, I hope the director feature is supported in Lua.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=351645&aid=3315346&group_id=1645

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev

Gmane