Commit graph

2,400 commits

Author SHA1 Message Date
Simon Marchetto
bc80012e0a Scilab: add support for STL bool containers 2013-07-19 17:29:10 +02:00
Simon Marchetto
c66952a3f0 Scilab: add generic support for STL set 2013-07-18 08:56:48 +02:00
Simon Marchetto
983af237b0 Scilab: generic support for STL vector 2013-07-18 08:56:31 +02:00
Simon Marchetto
cdb6554fba Scilab: generic support for STL containers.
STL containers are mapped in Scilab as:
- for int, double, string: matrices (of int, or double, etc....)
- for other types (like pointers on objects): list of pointers
2013-07-18 08:56:24 +02:00
Simon Marchetto
3dd0ebdde9 Scilab: wrap SWIG_Init() function to initialize module SWIG types (needed for STL support) 2013-07-18 08:56:05 +02:00
Simon Marchetto
627e4002fe Scilab: small fix on int matrix typemap 2013-06-21 11:30:11 +02:00
Simon Marchetto
87e0005276 Scilab: reference passing default mode is INPUT (here fix for vectors) 2013-06-20 18:17:20 +02:00
Simon Marchetto
8ee91b4352 Scilab: add support of STL vector<string> 2013-06-20 11:15:13 +02:00
Simon Marchetto
e6af8948ef Scilab: add string matrix typemaps 2013-06-19 16:34:12 +02:00
Simon Marchetto
9b270b9f6a Scilab: fix matrix typemap parameter names 2013-06-19 16:28:57 +02:00
Simon Marchetto
347dee5cda Scilab: refactor SwigScilabStringToCharPtrAndSize (use String API getAllocatedString) 2013-06-19 16:10:24 +02:00
Simon Marchetto
1efaa1ae67 Scilab: refactor SwigScilabStringToCharPtr (use String API getAllocatedString()) 2013-06-19 16:10:23 +02:00
Simon Marchetto
6280dd2d1a Scilab: fix SWIG_FromCharPtr error 2013-06-19 16:10:23 +02:00
Simon Marchetto
f268b0564a Scilab: remove SwigScilabStringFromCharPtrAndSize (same as SwigScilabStringFromCharPtr) 2013-06-19 16:10:22 +02:00
Simon Marchetto
e42055dcc4 Scilab: fix SWIG_NewPointerObj & SWIG_NewFunctionPtrObj error 2013-06-19 09:35:50 +02:00
Simon Marchetto
eddbb8f59e Scilab: SWIG exception raise macro : rethrow exceptions 2013-06-19 09:35:42 +02:00
Simon Marchetto
e9437fe400 Scilab: fix test case li_boost_shared_ptr 2013-06-12 12:14:53 +02:00
Simon Marchetto
7c9163e48a Scilab: fix test case import_stl_b 2013-06-12 11:02:59 +02:00
Simon Marchetto
af03df97c4 Scilab: C++ operators not wrapped in Scilab yet, remove warnings 2013-06-12 11:01:46 +02:00
Simon Marchetto
4f2715a9ec Scilab: fix test case li_std_vector 2013-06-12 10:59:11 +02:00
Simon Marchetto
ffc1d1221a Scilab: fix test case autodoc 2013-06-11 18:01:16 +02:00
Simon Marchetto
45dbdb2776 Scilab: fix test case constructor_copy (and others)
Signed-off-by: Simon Marchetto <simon.marchetto@scilab-enterprises.com>
2013-06-11 16:46:38 +02:00
Simon Marchetto
96ba677aa2 Add typemaps for STL sets (supports set<int>) 2013-06-03 17:20:09 +02:00
Simon Marchetto
c61f9b233d Fix STL vector typemaps (supports vector<int> and vector<double>) 2013-06-03 17:20:08 +02:00
Simon Marchetto
cf88d6a109 Add int matrix typemaps 2013-06-03 17:20:07 +02:00
Simon Marchetto
0531f30fea Fix double matrix typemaps (add some typemaps) + move code in separate file 2013-06-03 17:20:07 +02:00
Simon Marchetto
2847765ddf Fix int matrix typemap (accept empty matrix as input) 2013-06-03 17:20:06 +02:00
Simon Marchetto
46a234ed8f Fix int scalar typemap (do not base on double typemap) 2013-06-03 17:20:06 +02:00
Simon Marchetto
e667d59ed9 Fix enum typemaps (now base on int conversion) 2013-06-03 17:20:06 +02:00
Simon Marchetto
e2cc98ffc1 Add typemap for returning enum from function 2013-06-03 17:20:05 +02:00
Simon Marchetto
f48e95cb47 Fix compilation error 2013-06-03 17:20:05 +02:00
Yung Lee
dc852580d1 Fix bug in scilab\matrix.i 2013-04-29 20:22:12 +08:00
Yung Lee
604ebe8ad3 Add C++ conditional macro in scirun.swg 2013-04-29 20:20:19 +08:00
Yung Lee
680374f251 Redefine SWIG_Error and add testing code in examples\scilab\contract 2013-04-29 20:16:36 +08:00
Yung Lee
e22184553a Replace MALLOC/FREE to malloc/free fot fix heap memory leak error on Win/VC++ 2013-04-29 20:13:22 +08:00
Vincent Couvert
6138b43d7b Better vector/C++ containers support for Scilab
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-24 15:06:40 +00:00
Vincent Couvert
28565a5b65 Better management of containers based on Octave one
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-06 16:17:10 +00:00
Vincent Couvert
53b2b4405d Update tests & examples after Scilab API modifications
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13526 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-08-06 11:31:47 +00:00
Sylvestre Ledru
1d19873227 Update previous syntax to the latest. LhsVar => AssignOutputVariable + Rhs => nbInputArgument
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2012-scilab@13099 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-22 07:07:08 +00:00
Vincent Couvert
7444913fda Merge from trunk
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@13053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-05-09 14:28:04 +00:00
William S Fulton
a0e21e82ca char **STRING_ARRAY typemaps fixed to handle null pointers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:29:23 +00:00
William S Fulton
52fe61820a More for Mac OSX STL fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13020 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 14:27:55 +00:00
William S Fulton
c13131986e Warning fix in python STL wrappers
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13019 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 11:39:13 +00:00
William S Fulton
e39322cd01 Fix STL wrapper compilation errors on Mac OSX 64bit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-28 11:18:10 +00:00
William S Fulton
60b9635c79 Fix uninitialised variable in Lua SWIGTYPE **OUTPUT typemaps
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-25 05:53:14 +00:00
William S Fulton
dc7818db81 Add missing Lua factory.i for patch #3219676
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13014 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-24 18:37:53 +00:00
William S Fulton
56965adb05 warning fix using vc++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13004 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-19 06:35:00 +00:00
Robert Stone
121086fb77 * revert perl5 li_typemaps run tests due to Windows regressions.
* stricter casting to sidestep compiler warnings on Windows.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13002 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-18 21:49:32 +00:00
David Nadlinger
7615b099d1 [D] Reverted part of #3502431 mistakenly applied in r12948.
(The changes only concerned D2, and were already present in trunk.)

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13000 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-17 12:17:42 +00:00
William S Fulton
1fbcafc0ea Go back to using free/malloc rather than realloc as may be slower
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12999 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-04-17 07:02:15 +00:00