Mark Gossage
ef7c0cbbd2
[Lua] Removed generation of _wrap_delete_XXXXX (wrappered destructor) which was unused and causing warning with g++ -Wall.
...
Removed other unused warning in typemaps.i and other places.
Added Examples/lua/embed3, and run tests a few test cases.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10402 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-30 00:17:53 +00:00
Joseph Wang
5993327dc0
remove numeric coercion which seems to be unnecessary
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10394 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 19:40:07 +00:00
Joseph Wang
25f30ff1b1
Add R 2.7 calls
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10392 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 07:12:26 +00:00
Joseph Wang
fd6be0ba40
Put in ifdef for 2.7
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10390 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 06:33:08 +00:00
Joseph Wang
7b37f04c7a
change CHAR method since mkCharEnc doesn't do what I thought it did in 2.6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 05:50:13 +00:00
Olly Betts
85f02c4ba4
[Python] Fix generated code for IBM's C++ compiler on AIX (patch
...
from Goeran Uddeborg in SF#1928048).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10387 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-24 12:26:29 +00:00
Xavier Delacour
e7894a104b
Add test for null pointer handling ([] taken as null pointer).
...
Support automatic single cell dereferencing. Add test for it and pass-through cell arrays.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10379 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 14:29:46 +00:00
Xavier Delacour
9d6e70ad35
Have convert pointer routines return SWIG_ERROR rather than more specific error, since older bindings (for other languages) depend on that interface.
...
Use SWIGRUNTIME instead of anonymous namespace to allow for correct linkage when using external runtime. Fixes infinite-recursion bug when calling director method of class whose base is in another module (since the common Director base gets a different typename in each module, per anonymous namespace).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10376 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-18 01:06:23 +00:00
Xavier Delacour
87390fac26
Add map_keys support so member auto-completion works.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10373 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-13 21:16:12 +00:00
Xavier Delacour
9a0cf47532
Print all class members.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10372 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-13 21:04:43 +00:00
Xavier Delacour
4e6c09da80
Don't use __gnu_ext::hash_map.
...
Use octave_swig_packed to hold swig_module_info *.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10371 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-12 14:29:38 +00:00
Xavier Delacour
6878125b87
Fix bug where module will segfault on load if it contains an object w/ the same name as the module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10369 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-11 22:28:30 +00:00
Xavier Delacour
de6e25f3bb
Fixes for building w/ 64-bit gcc.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10368 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-11 21:58:42 +00:00
William S Fulton
6054159ecf
Add array reference typemaps which are needed since the pointer reference typemaps were committed in the last checkin
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10364 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-07 21:06:23 +00:00
William S Fulton
929f68b069
Add Lua pointer reference typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10363 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-07 20:06:37 +00:00
John Lenz
4d10d60d7c
Add SWIG_TYPE_TABLE and SWIG_RUNTIME_VERSION to the octave module
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10358 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 20:58:43 +00:00
William S Fulton
69d6ce4f33
Fix shared_ptr typemaps for use with %pythonnondynamic
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10344 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 23:29:59 +00:00
Xavier Delacour
05097de0ff
Add support for manual %docstrings, so users can provide texinfo help for wrapped functions.
...
Add some support for autodoc feature, so otherwise undocumented functions at least get prototype.
Fix bug in argument number check.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10341 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 13:22:19 +00:00
Jason Stewart
7c15385e4e
modified to match current perl5.cxx capabilities
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10334 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:22:02 +00:00
Olly Betts
b85052384c
Remove a pointless cast which drops const and causes a warning with certain GCC
...
warning flag settings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10329 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-31 04:52:32 +00:00
William S Fulton
8c24e2ca74
Fix shared_ptr typemaps where the pointer type is a templated type with with more than one parameter.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10327 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-27 20:29:01 +00:00
Mark Gossage
11647d87e8
[lua] Added a typemap DISOWN for SWIGTYPE* and SWIGTYPE[], and support for %delobject feature.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10326 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-27 01:58:30 +00:00
William S Fulton
97b910d726
Apply patch #1844301 from Monty Taylor to suppress enum constructor unused warnings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10324 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 21:04:59 +00:00
William S Fulton
aa4d91b319
Apply patch #1925702 from Casey Raymondson which removeswarning 512 for std::vector wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 20:25:56 +00:00
Olly Betts
b2375fd6e6
[Python] Apply GCC 4.3 warnings patch from Philipp Thomas (SF#1925122).
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10321 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 08:52:57 +00:00
Xavier Delacour
7b1cab1554
varargs fixes.
...
Added passthrough out typemaps for internal Octave types.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10320 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-24 22:33:55 +00:00
Xavier Delacour
316a2decd7
Differentiate complex and real scalar types.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10319 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-23 00:48:49 +00:00
William S Fulton
a1100e9964
Thread safety patch for Python STL iterators from Abhinandan Jain
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10317 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-21 23:11:24 +00:00
Xavier Delacour
fe15a5a87c
Fix varargs.
...
Allow manual construction of entire result octave_value_list.
Make octrun.swg conform to style conventions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-20 23:23:38 +00:00
William S Fulton
b697a8fc75
operator bool mapping to __nonzero__ as per Josh Cherry suggestion
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10315 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-20 22:01:39 +00:00
Xavier Delacour
e314d97f32
Added some support for inline texinfo documentation, and fixed a handful of small items needed to get OpenCV bindings to build.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10313 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 18:46:30 +00:00
Mark Gossage
e543cd9040
[lua] added %luacode feature, documentation & examples
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10312 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 08:50:59 +00:00
William S Fulton
77cd446a53
remove debugging info from shared_ptr typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10302 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-12 16:48:37 +00:00
Xavier Delacour
cb131bfeb9
Fixed import directive, string access segv bug, SWIG_Octave_{Get,Set}Module bug, and added partial support for boost pointers.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10301 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-09 20:21:14 +00:00
Mark Gossage
8350c724f5
[lua] updated docs for exceptions
...
added new examples (exception,embed2)
update typmaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-06 09:44:48 +00:00
Xavier Delacour
4d283f59c3
Fix ~15 tests, minor doc fixes, improve STL support.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-05 04:35:34 +00:00
William S Fulton
2cf3cb3dc9
char *& typemaps added
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10295 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-04 21:35:22 +00:00
Xavier Delacour
2ded60495f
Implement OCTAVE::runtimeCode, wrap some parts of runtime in anonymous namespace, put Director rtdir map into module clientdata.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10291 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-02 15:35:49 +00:00
Xavier Delacour
393391965c
Initial commit of Octave module.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10290 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-01 23:35:44 +00:00
William S Fulton
30c4214ece
Fix #1904537 Swig causes a Perl warning 'x used only once' in Perl 5.10 reported by Ari Jolma
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10286 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-29 23:42:52 +00:00
William S Fulton
1a560e3866
global variables test and shared_ptr varin/varout typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10285 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-29 23:23:35 +00:00
William S Fulton
9b7042280c
Add member variable support for shared_ptr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10260 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 22:53:11 +00:00
William S Fulton
f7deb81de1
Fix C compilation
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10253 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:18:39 +00:00
William S Fulton
a025af2d2e
Remove some unnecessary casts
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10252 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:12:09 +00:00
William S Fulton
444f643c4e
Add shared_ptr typecheck typemaps for Python and add overloaded method tests for shared_ptr
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10251 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:10:58 +00:00
Joseph Wang
9dde51fcf3
Set S4 flag which should fix the problem in R 2.6 that some S4 methods
...
are not working.
Remove 2.6 warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10247 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-12 06:16:20 +00:00
William S Fulton
c6d76a5965
Bump SWIG_RUNTIME_VERSION due to change in the conversion functions, ie change in definition of swig_converter_func
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10244 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 21:44:18 +00:00
William S Fulton
c62cb6180e
always pass in non-null value for newmemory parameter in the casting function
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10243 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 21:34:56 +00:00
William S Fulton
a91e4906b5
Add newmemory parameter for SWIG_TypeCast
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10240 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 00:35:11 +00:00
William S Fulton
3d1356dead
Complete the Python support for shared_ptr mainly for derived classes. This includes the smartptr feature for overriding the class registration function and shared_ptr typemaps
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10237 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:26:21 +00:00