SourceForge.net | 9 Feb 13:00
Picon

[ swig-Patches-3486202 ] Allow use of malloc() in C++ mode

Patches item #3486202, was opened at 2012-02-09 04:00
Message generated for change (Tracker Item Submitted) made by kwwette
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3486202&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
Resolution: None
Priority: 5
Private: No
Submitted By: Karl Wette (kwwette)
Assigned to: Nobody/Anonymous (nobody)
Summary: Allow use of malloc() in C++ mode

Initial Comment:
I would like to be able to make SWIG use malloc() for memory allocation in typemaps (using %new_instance,
et. al), even when compiling in C++ mode. The reason is basically that malloc() is easier to replace with a
custom allocation function than new(). For example, if I have a custom string type that needs to be
allocated using a custom allocation function, I can do something like:

#define malloc MyStringMalloc
%fragment("SWIG_FromMyStringPtrAndSize" ...
%typemaps_string(...)
#undef malloc

and still re-use SWIG's typemaps for strings using MyStringMalloc() instead of malloc().
(Continue reading)

SourceForge.net | 3 Feb 07:57
Picon

[ swig-Bugs-3447426 ] memory leak in vector.__getitem__

Bugs item #3447426, was opened at 2011-12-01 12:57
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3447426&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: python
Group: None
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: szager (szager)
Assigned to: szager (szager)
Summary: memory leak in vector.__getitem__

Initial Comment:
>From the swig-user mailing list:

On Thu, Dec 1, 2011 at 3:38 AM, Andrew Ward <andrew.derek.ward <at> gmail.com> wrote:

> In the process I have found a bug in the Python std::vector implementation.
> The __getitem__ method has two versions, one takes an index, the other takes
> a slice object. The version that takes a slice object returns a new std::vector
> but does not use SWIG_POINTER_OWN and therefore leaks memory.

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

(Continue reading)

SourceForge.net | 31 Jan 17:01
Picon

[ swig-Bugs-3019674 ] Running 32 bit class example on 64 bit windows fails

Bugs item #3019674, was opened at 2010-06-22 07:58
Message generated for change (Comment added) made by blowekamp
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3019674&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: Dea Gust (deagust)
Assigned to: William Fulton (wsfulton)
Summary: Running 32 bit class example on 64 bit windows fails

Initial Comment:
It is not possible to run the csharp class example built for 32 bits on 64 bit windows (7,vista). I tried the
examples when my application crashed on 64 bit, It   needs to run in 32 bit mode as it has 3pp 32 bit
dependencies. Building the examples for 64 bit and running them on 64 bit windows of works, as well as
building 32 bit on 63 bit system and running them on a 32 bit system.

System.TypeInitializationException was unhandled
  Message="De type-initialisatiefunctie voor examplePINVOKE heeft een uitzondering veroorzaakt."
  Source="runme"
  TypeName="examplePINVOKE"
  StackTrace:
       bij examplePINVOKE.new_Square(Double jarg1)
(Continue reading)

SourceForge.net | 30 Jan 19:01
Picon

[ swig-Bugs-3479190 ] [php] invalid type conversion in foobar_wrap.cpp

Bugs item #3479190, was opened at 2012-01-24 13:13
Message generated for change (Comment added) made by boruch-baum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3479190&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: php
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Boruch Baum (boruch-baum)
Assigned to: Olly Betts (olly)
Summary: [php] invalid type conversion in foobar_wrap.cpp

Initial Comment:
Following is output from an attempt to create a binding to php5.4 (5.4.0~rc6-1) using swig v2.0.4-4 and
also using the swig svn version 12901. This was done in debian testing (wheezy) with the php5 package
installed from debian experimental. See the patch proposed at: http://www.graphviz.org/mantisbt/view.php?id=2177



make[2]: Entering directory `.../libhdate/libhdate-now/trunk/libhdate/bindings/php'
swig -php5 -c++ hdate.i
g++ -I../../src `php-config --includes` -fpic -c hdate_wrap.cpp
hdate_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:
hdate_wrap.cpp:933:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[2]: *** [hdate.so] Error 1
(Continue reading)

SourceForge.net | 27 Jan 21:56
Picon

[ swig-Bugs-3474250 ] Bad rename regexp causes segfault

Bugs item #3474250, was opened at 2012-01-15 13:22
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3474250&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: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
>Assigned to: William Fulton (wsfulton)
Summary: Bad rename regexp causes segfault

Initial Comment:
Hello,

I've just mistakenly entered a rename statement into interface file:

%rename("%(regex:/idis_(.*)/\\4/)s") "";

Which is of course bad, since \\4 is not there. I would imagine, that swig would generate error, warning or
would just ignore it. Instead, swig compiler, run as:

swig -w314,451,462 -python python.i

(Continue reading)

SourceForge.net | 27 Jan 21:44
Picon

[ swig-Bugs-3479190 ] [php] invalid type conversion in foobar_wrap.cpp

Bugs item #3479190, was opened at 2012-01-24 13:13
Message generated for change (Comment added) made by olly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3479190&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: php
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Boruch Baum (boruch-baum)
Assigned to: Olly Betts (olly)
Summary: [php] invalid type conversion in foobar_wrap.cpp

Initial Comment:
Following is output from an attempt to create a binding to php5.4 (5.4.0~rc6-1) using swig v2.0.4-4 and
also using the swig svn version 12901. This was done in debian testing (wheezy) with the php5 package
installed from debian experimental. See the patch proposed at: http://www.graphviz.org/mantisbt/view.php?id=2177



make[2]: Entering directory `.../libhdate/libhdate-now/trunk/libhdate/bindings/php'
swig -php5 -c++ hdate.i
g++ -I../../src `php-config --includes` -fpic -c hdate_wrap.cpp
hdate_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:
hdate_wrap.cpp:933:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[2]: *** [hdate.so] Error 1
(Continue reading)

SourceForge.net | 27 Jan 17:52
Picon

[ swig-Bugs-3479190 ] [php] invalid type conversion in foobar_wrap.cpp

Bugs item #3479190, was opened at 2012-01-24 13:13
Message generated for change (Comment added) made by boruch-baum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3479190&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: php
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Boruch Baum (boruch-baum)
Assigned to: Olly Betts (olly)
Summary: [php] invalid type conversion in foobar_wrap.cpp

Initial Comment:
Following is output from an attempt to create a binding to php5.4 (5.4.0~rc6-1) using swig v2.0.4-4 and
also using the swig svn version 12901. This was done in debian testing (wheezy) with the php5 package
installed from debian experimental. See the patch proposed at: http://www.graphviz.org/mantisbt/view.php?id=2177



make[2]: Entering directory `.../libhdate/libhdate-now/trunk/libhdate/bindings/php'
swig -php5 -c++ hdate.i
g++ -I../../src `php-config --includes` -fpic -c hdate_wrap.cpp
hdate_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:
hdate_wrap.cpp:933:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[2]: *** [hdate.so] Error 1
(Continue reading)

SourceForge.net | 27 Jan 17:49
Picon

[ swig-Bugs-3479190 ] [php] invalid type conversion in foobar_wrap.cpp

Bugs item #3479190, was opened at 2012-01-24 13:13
Message generated for change (Comment added) made by boruch-baum
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3479190&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: php
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Boruch Baum (boruch-baum)
Assigned to: Olly Betts (olly)
Summary: [php] invalid type conversion in foobar_wrap.cpp

Initial Comment:
Following is output from an attempt to create a binding to php5.4 (5.4.0~rc6-1) using swig v2.0.4-4 and
also using the swig svn version 12901. This was done in debian testing (wheezy) with the php5 package
installed from debian experimental. See the patch proposed at: http://www.graphviz.org/mantisbt/view.php?id=2177



make[2]: Entering directory `.../libhdate/libhdate-now/trunk/libhdate/bindings/php'
swig -php5 -c++ hdate.i
g++ -I../../src `php-config --includes` -fpic -c hdate_wrap.cpp
hdate_wrap.cpp: In function ‘void* SWIG_ZTS_ConvertResourcePtr(zval*, swig_type_info*, int)’:
hdate_wrap.cpp:933:65: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make[2]: *** [hdate.so] Error 1
(Continue reading)

SourceForge.net | 27 Jan 08:45
Picon

[ swig-Patches-3421791 ] virous.i director typemap support

Patches item #3421791, was opened at 2011-10-11 06:46
Message generated for change (Comment added) made by wsfulton
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3421791&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
Resolution: None
Priority: 5
Private: No
Submitted By: qinjin (wangqinjin)
Assigned to: Nobody/Anonymous (nobody)
Summary: virous.i director typemap support

Initial Comment:
The patch added director typemap between char* in C++ and byte[] in Java, which is based on version swig-2.0.4.

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

>Comment By: William Fulton (wsfulton)
Date: 2012-01-26 23:45

Message:
Thanks for patch. My runtime tests do not work. Could you provide a runtime
test to show it working. I suggest a simple modification of the
Examples/java/callback example.
(Continue reading)

SourceForge.net | 27 Jan 07:08
Picon

[ swig-Patches-3480366 ] Lua 5.2 support patch

Patches item #3480366, was opened at 2012-01-26 22:08
Message generated for change (Tracker Item Submitted) made by 
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3480366&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
Resolution: None
Priority: 5
Private: No
Submitted By: https://www.google.com/accounts ()
Assigned to: Nobody/Anonymous (nobody)
Summary: Lua 5.2 support patch

Initial Comment:
This patch adds Lua 5.2 support to Swig 2.0.4.

Tested on lua bindings in GraphViz.

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

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

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
(Continue reading)

SourceForge.net | 26 Jan 23:40
Picon

[ swig-Bugs-3428833 ] std::vector template in PHP

Bugs item #3428833, was opened at 2011-10-26 10:48
Message generated for change (Comment added) made by olly
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3428833&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: php
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jcf (frickson)
Assigned to: Olly Betts (olly)
Summary: std::vector template in PHP

Initial Comment:
In my test.i file, I have:
    %include "std_vector.i"
    %template(vectorDbl) std::vector<double>;
    %include "test.h"

In a test.h, I have:
    #include <vector>
    typedef std::vector<double>	DblVector;
    class test
    {
           ...
(Continue reading)


Gmane