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
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
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
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
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
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
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
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
William S Fulton
1be894e058
Fix PyArg_ParseTuple for swigregister method
...
Fix some typos in -help
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10201 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-12 22:37:11 +00:00
William S Fulton
7c9ece71ad
Fix gcc-4.2 warnings
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10180 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-08 00:22:03 +00:00
William S Fulton
e024efafce
Correct display of templates in warning message
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10178 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-12-05 00:19:41 +00:00
William S Fulton
575efcdd53
Fix using statements for overloaded methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10176 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-30 22:34:50 +00:00
Olly Betts
8dabd96606
PHP4 reaches EOL at the end of 2007, so remove PHP4 specific entry from the
...
todo list. Tweak message about lack of multiple inheritance to say "PHP"
rather than "Php4".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10174 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-28 00:46:53 +00:00
Mikel Bancroft
ca9c273546
[allegrocl] multiple small fixes to interface. have const std::string *'s automacitally marshalled to lisp strings.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10162 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-21 21:33:42 +00:00
William S Fulton
373e85a713
Fix static extern C compilation errors for Perl C++ wrappers
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10151 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-19 21:30:57 +00:00
William S Fulton
98b2e4a95c
Use -package to change the package name. Ensure the initialization routine is called since the package name changes.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10136 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 23:50:45 +00:00
William S Fulton
1f36b6e0b0
Rename dll/shared object name to be the same as the module name - _wrap is no longer postfixed to the name
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-14 22:33:09 +00:00
Gonzalo Garramuno
a55e5f3b94
Removed useless VALUE parent = Qnil; which was
...
also leading to gcc warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10115 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-12 11:47:40 +00:00
William S Fulton
3f567de7ba
Fixes for Visual C++ for C++ code
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10111 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 21:48:25 +00:00
William S Fulton
a80c41bef5
Dont use the global namespace polluting methods in the R headers - provides Visual C++ support
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10109 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 20:26:58 +00:00
Joseph Wang
cd9c301b48
Remove _wrap from .R files
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10105 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-11 03:08:10 +00:00
William S Fulton
9aa5096836
Fix for VC++ 6 which doesnt seem to initialise member variables which are default constructed
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10103 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 23:34:51 +00:00
William S Fulton
12d39f7cb0
Windows fix (need to dllexport funtions)
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 22:23:53 +00:00
William S Fulton
39abd80eef
Changes to compile with VC++6
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 21:10:17 +00:00
Olly Betts
ece41d9c9f
[php] Fix makefile generated by -make (SF#1633679). Update
...
documentation to mark "-make" as deprecated (none of the other
SWIG backends seem to offer such a feature, it can't realistically
generate a fully portable makefile, and the commands to build an
extension are easy enough to write for the user's preferred build
tool). Also recommend against the use of "-phpfull" (it's only
really useful when static linking, and a dynamically loadable
module is virtually always the better approach).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10098 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-10 00:59:02 +00:00
Olly Betts
9abc24813b
Fix --help output to note that `export SWIG_FEATURES' is required.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10095 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-09 08:59:44 +00:00
William S Fulton
1b908b175e
Fix uninitialised variables, generation of illegal C variable names and seg fault on Windows.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10092 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-11-08 21:41:25 +00:00
Mark Gossage
0c2bbb25a3
[lua] fixed bug in template classes which cases template_default2 and template_specialization_defarg to fail.
...
Added several warning filters into the overload's test cases.
Added runtime tests for several codes.
You can now make check-lua-test-suite with no errors and only a few warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10076 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-30 06:10:04 +00:00
Olly Betts
cc879f7c29
[lua] Fix swig_lua_class instances to be static to allow multiple
...
SWIG wrappers to be compiled into the same executable statically.
Patch from Andreas Fredriksson (posted to the swig mailing list).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10068 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-29 00:02:20 +00:00
William S Fulton
421eb7ae60
New templated method SwigValueInit to initialise all types - used initially for return types in director methods
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10063 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 23:07:33 +00:00
Joseph Wang
3b9574953c
Fix so that it works for 2.6 and 2.5
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-28 18:21:44 +00:00
John Lenz
4ace915a56
Chicken test suite now runs with no errors
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10054 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2007-10-26 23:08:34 +00:00