Commit graph

2,052 commits

Author SHA1 Message Date
Olly Betts
42965a73cc Rename BSIZE in Examples/test-suite/arrays_scope.i to BBSIZE to avoid
a clash with BSIZE defined by headers on AIX with Perl (reported in
SF#1928048).


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10386 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-24 11:07:56 +00:00
William S Fulton
9976dc9d75 Add allprotected mode for wrapping protected members when using directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 20:41:01 +00:00
Xavier Delacour
b0921513e0 Move null_pointer.i to common.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10380 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 15:48:56 +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
2ad4024977 Move samename test to common.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10370 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-12 13:49:01 +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
Jason Stewart
5d625e950d committed patch for bug SWIG-1937031 ; moved operator_overload_break back to working tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10367 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-08 04:04:37 +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
William S Fulton
518ac1b415 suppress warning for Lua
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 21:22:38 +00:00
William S Fulton
4b88b00600 add missing header
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10357 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 20:01:46 +00:00
William S Fulton
b89d50d52c add missing header
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10355 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 23:17:05 +00:00
William S Fulton
7f5e24cacb python warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10354 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 22:12:07 +00:00
William S Fulton
ec4491556f workaround for Perl5 on OSX including math.h somewhere
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10352 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 21:04:11 +00:00
William S Fulton
d51a2f9322 fixes for languages without shared_ptr support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 20:27:42 +00:00
William S Fulton
a356382aeb swig warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10349 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 20:24:31 +00:00
William S Fulton
462304094b warning fixes for most target languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10346 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 19:37:51 +00:00
William S Fulton
843674e12a gcc-4.3 fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10345 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 19:36:58 +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
William S Fulton
a37115f55d Correct test for global shared_ptr variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 23:26:54 +00:00
Jason Stewart
36e9ba403f added test which breaks perl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10342 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-04 10:30:49 +00:00
Jason Stewart
da4c710d60 added post- and pre- increment tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 12:03:04 +00:00
Jason Stewart
ad93f971ca new operator overload tests to locate bugs in pre- increment/decrement operators
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10338 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:48:41 +00:00
Jason Stewart
128880ea1d added __rsub__() and test for reversed subtraction operator
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10337 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:40:20 +00:00
Jason Stewart
ccff189174 fixed name typo
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10335 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:27:18 +00:00
Jason Stewart
e294f2e158 fixed test-name typo ; add tests for pre- increment/decrement
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10333 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:20:37 +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
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
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
13c0b040fc Fix Octave C support by adding extern "C" around header section. Fix Octave examples (simple, contract, variables, pointer, funcptr) such that example.c files are built with C compiler, and wrappers with C++ compiler.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-05 15:29:01 +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
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
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
d995ec534b fixes for vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10274 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 20:22:09 +00:00
William S Fulton
0c55b8dad8 vc++ fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10273 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 18:18:03 +00:00
William S Fulton
2e342337c0 windows fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10272 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 18:12:18 +00:00
William S Fulton
69e6f39cfd test more global function pointer variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 13:07:26 +00:00
William S Fulton
f0a4145cb3 Add shared_ptr test to regular test-suite
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10262 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 23:07:30 +00:00
William S Fulton
3d2f9af64d minor comment mods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10261 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-14 22:54:27 +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
8b7ec50ab9 Fix test for the extra whitespace in template parameter lists
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10257 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:59:01 +00:00
William S Fulton
4d58a827d1 Add support function for displaying the declaration of a methods. Add special variables for use in %exception: $wrapname $overname $decl $fulldecl
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10256 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:48:37 +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
William S Fulton
9029bae5e0 Move funcptr.i from being an R only test to a test for all languages. Modify the test to test function pointers with no arguments, which is a problem for R.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10250 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 22:41:34 +00:00
Joseph Wang
1094fcda7b Fix memory overflow. Need to allocate one extra byte for the null
termination for the string


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10248 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-12 06:53:35 +00:00
Mark Gossage
9441b672cd [Lua] Added a patch by Torsten Landschoff to fix the unary minus issue
Ran 'astyle --style=kr -2' across lua.cxx to neaten it up

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10246 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-11 03:11:18 +00:00
William S Fulton
e9dc2e8dc9 Fix test since #1798728 was backed out
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10242 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 20:47:49 +00:00
William S Fulton
1dc594f292 remove multiple inheritance warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10241 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-10 20:37:30 +00:00
William S Fulton
a85143fe7d further testing of shared_ptr and derived classes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10235 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:14:31 +00:00