Simon Marchetto
2bd8c0eada
Merge branch 'gsoc2012-scilab' of https://github.com/swig/swig into gsoc2012-scilab
2013-08-06 10:23:07 +02:00
Sylvestre Ledru
21e17eaa73
Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
...
Conflicts:
Examples/Makefile.in
2013-08-06 10:06:31 +02:00
Simon Marchetto
774dddca00
Scilab: fix li_std_vector & ignore_template_constructor test case
...
fix: return a runtime error for not supported type containers
2013-08-02 12:09:11 +02:00
Simon Marchetto
6735b9727f
Scilab: fix arrays_global test_case
2013-07-31 18:28:45 +02:00
Simon Marchetto
255603639f
Scilab: rollback, support of container<class*> only (not <class>)
2013-07-31 18:28:23 +02:00
Simon Marchetto
077e69a851
Scilab: fix SWIT_Init() close in C mode
2013-07-31 11:57:16 +02:00
Simon Marchetto
25ffa87cab
Scilab: fix dynamic_cast test case
...
Close SWIG_Init() in Scilab executable.
2013-07-23 15:02:39 +02:00
Simon Marchetto
2ea501d488
Scilab: small typo fix
2013-07-22 17:39:25 +02:00
Simon Marchetto
c3992df0bb
Scilab: support of containers of "complex type" values (like vector<class>)
2013-07-22 17:37:25 +02:00
Simon Marchetto
f09525bcd8
Scilab: add generic support for STL list
2013-07-19 17:59:49 +02:00
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
William S Fulton
5481270c2a
Fix Python 3 inconsistency handling -ve numbers for unsigned C types.
...
An OverFlow error is now consistently thrown instead of a TypeError.
Fixes primitive_types testcase for Python 3
2013-05-25 10:36:14 +01:00
Artem Serebriyskiy
3e188e508d
Add test case for attributes with moderately complex templates
...
* New test case tests that %attribute macros correctly supports passing
template with multiple parameters as class name or attribute type name
* Some further changes were made to %attribute macros - now
AttributeType is protected with %arg as well. This allows you
to have attributes of type e.g. std::pair<int,int> etc
Update CHANGES file for %attribute template fixes
Closes #48
2013-05-25 00:44:36 +01:00
Artem Serebriyskiy
c956c4c87f
Fix %arg in Lib/attribute.i
2013-05-25 00:37:57 +01:00
Artem Serebriyskiy
3357ee85cd
Fix all attributes macroses
2013-05-25 00:37:57 +01:00
William S Fulton
04b9037c70
Simplify and improve Guile FILE * in typemap
...
Fix incorrect special variable $name and remove unnecessary temporary
variable.
2013-05-16 19:21:59 +01:00
William S Fulton
ea2e615cec
Fix some typos in directive names
2013-05-12 19:14:59 +01:00
Karl Wette
93650b2911
Octave: install functions only once, when creating module
...
- once installed, Octave functions can never really be uninstalled
(clear -f doesn't prevent the function being called again), so
it makes no sense to install functions more than once
- this can lead to a significant speed-up of module loading times,
up to a factor of 10 for a large module loaded multiple times
2013-05-12 17:32:09 +01:00
Karl Wette
ef160ec072
Octave: remove allocation of new octave_value in SWIG_Octave_SetGlobalValue()
...
- this introduces a memory leak, which becomes significant for large
modules (many global variables) and many module re-loadings (e.g.
during a long-running script)
- the original motivation was to prevent double-frees on exit, but this
problem appears to have been fixed by the _Exit() hack in later commits,
and in any case is an issue only for Octave ~3.2, so it should be safe to
remove; tested by running Octave examples/test suite with Debian 3.2.4 and
built-from-source 3.2.4, 3.4.3, and 3.6.3
2013-05-12 17:32:08 +01:00
Yung Lee
dc852580d1
Fix bug in scilab\matrix.i
2013-04-29 20:22:12 +08:00