Commit graph

2,455 commits

Author SHA1 Message Date
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
41220df85b Fixes problems people have been having with vector/matrix arguments
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10395 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-27 18:26:07 +00:00
Jason Stewart
bea5f1d47b package option for perl5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 13:12:45 +00:00
Joseph Wang
ade41d0a72 R does not like variables with leading underscores
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10391 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-26 06:46:16 +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
Olly Betts
dda6df974f Fix bogus vim modeline
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10378 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-20 11:30:21 +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
f1cabd08a2 fix stack overflow when using typemap warning suppression, eg %warnfilter(SWIGWARN_TYPEMAP_CHARLEAK_MSG)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10359 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 21:21:29 +00:00
Xavier Delacour
8317d87031 Use DOH rather than standard containers for texinfo docs support.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10356 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-06 01:15:51 +00:00
William S Fulton
5d8d045c1f fix #1934695 Getattr(n, wrap:name) assertion
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10351 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 20:53:23 +00:00
William S Fulton
1ec30ff479 remove redundant code
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 19:55:31 +00:00
William S Fulton
3e1799e7da gcc-4.3 warning fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10347 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-05 19:38:48 +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
8c7d3c7ae3 commented out operators: '=', '&', '|' because they have no tests ; added check for reversed arguments in subtraction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10336 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-04-03 11:31:41 +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
7c6f8dafa7 Apply patch #1924524 from Casey Raymondson which ensures the 'No constructor defined' message is displayed when attempting to call a constructor on a class that doesn't have a constructor wrapper, eg if the C++ class is abstract.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10323 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-26 20:43:45 +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
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
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
Olly Betts
f881f98daf Fix memory leak in SWIG's parser (based on patch from Russell
Bryant in SF#1914023).`


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10310 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-17 00:36:35 +00:00
William S Fulton
6f497c2807 Fix bug #1878285 - unnecessary cast for C struct creation wrappers.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10304 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-12 22:15:00 +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
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
25fd00698b fix seg fault when attempting to report errors on overloaded global functions
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10297 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-03-04 21:37:25 +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
03ac417e7f simpler error display for method names using new Swig_name_decl()
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10281 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-28 23:14:07 +00:00
William S Fulton
2bef4d6b0c Set wrap:name for variables for use in special variable
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10270 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 15:29:55 +00:00
William S Fulton
c0e0bf2a26 Improve wrapping of global function pointer variables for R - note that use of SWIG_exception_fail does not work as the in typemaps are being used for return types and really something like directorin/directorout typemaps are required
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10267 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 13:06:46 +00:00
William S Fulton
f858eca260 Add some generic function pointer support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10266 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-27 13:01:17 +00:00
William S Fulton
b67e0a28a3 Fixes for $wrapname to work in %exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-25 22:07:28 +00:00
William S Fulton
69771aa3aa remove unnecessary status message
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-25 22:06:29 +00:00
William S Fulton
61cc1dd334 Add support function for displaying the declaration of a methods. Add special variables for use in \%exception:
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10255 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:43:34 +00:00
William S Fulton
2cb828dbf8 Beautify the output a bit - always put spaces around a template type list, eg Foo< abc >, was Foo<abc >.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10254 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 23:25:37 +00:00
William S Fulton
14d23e5a59 Alter SwigType_parmlist to return an empty list if there are no parameters, rather than a list of one empty type
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10249 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-13 22:38:43 +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
c47f473b3c fix code comment
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10239 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:39:29 +00:00
William S Fulton
f39242fa92 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@10236 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 12:25:41 +00:00
William S Fulton
a4e2ca520f Add support for the optional noblock attribute for all features. It works the same as it does for typemaps removing {} braces.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10234 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-02-09 11:57:36 +00:00
William S Fulton
0460574284 Additions to %types so that a user can specify the code to go into the casting / conversion function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10225 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:55:24 +00:00
William S Fulton
300af7d484 remove some cruft possibly causing problems on old compilers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10224 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:49:56 +00:00
William S Fulton
629aae375c Additions to %types so that a user can specify the code to go into the casting / conversion function
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10222 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-31 22:45:59 +00:00
William S Fulton
5ad2a3ab0c Fix formatting of error messages for overloaded functions that use templates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10216 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:31:37 +00:00
William S Fulton
3ac369d8d0 Improve output formatting of generated code for overloaded methods
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10215 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-21 22:20:30 +00:00
William S Fulton
bc94eeb6a0 Add 'directorinattributes' and 'directoroutattributes' typemap attributes for the imtype typemap. These should contain C# attributes which will be generated into the C# director delegates methods.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-18 23:35:49 +00:00
Olly Betts
ddb7c73411 Fix handling of byte value 255 in input files on platforms where
char is signed (it was getting mapped to EOF).  Fixes SF#1518219.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-18 19:51:46 +00:00
William S Fulton
b79e9a7d7e Fix template member variables wrapped by a smart pointer bug reported by Robert Lupton
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10210 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-17 00:29:02 +00:00
Mark Gossage
a60c3ca8ca Substantial changes to configure script for detecting lua.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10208 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-14 01:23:36 +00:00