Simon Marchetto
e8fd0e506e
scilab: fix and optimize integer typemaps
2014-01-31 18:04:21 +01:00
Simon Marchetto
cfc9f1398e
scilab: put size_t & ptrdiff_t typemaps in separate file
2014-01-31 18:04:21 +01:00
Simon Marchetto
e9d36b6bc2
scilab: refactor runtime code
2014-01-31 18:04:21 +01:00
Simon Marchetto
530704486d
scilab: small clean
2014-01-31 18:04:20 +01:00
Simon Marchetto
9aa006e62b
scilab: remove typemap useless stuff
2014-01-31 18:03:52 +01:00
Simon Marchetto
7f14aa583a
scilab: optimize typemap AsInt
2014-01-31 18:03:52 +01:00
Simon Marchetto
a8d020f171
scilab: simplify 'from' integer typemaps: use createScalar* functions
2014-01-31 18:03:30 +01:00
Simon Marchetto
bca49968f1
scilab: fix ret_by_value test
2014-01-30 14:11:18 +01:00
Simon Marchetto
30f4336f59
scilab: use macro SWIG_NbInputArgument() instead of Rhs()
2014-01-30 11:58:02 +01:00
Simon Marchetto
a6f824a9a8
scilab: roll back on primitive typemaps: return Scilab double on signed integers
2014-01-30 11:00:47 +01:00
Simon Marchetto
ec2d851f4f
scilab: move scilab preprocessor directive before includes
2014-01-29 10:55:20 +01:00
Simon Marchetto
c4f0003465
Scilab: fix compilation error
2013-11-15 12:05:47 +01:00
Simon Marchetto
9b9b9cb999
Scilab: fix scalar typemaps & separate "interface" from "implementation"
2013-10-10 14:50:51 +02:00
Simon Marchetto
fd92e9e72f
Scilab: fix SWIG_Scilab_SetOutput (scilab version macro changed)
2013-10-09 17:09:11 +02:00
Simon Marchetto
626a1f5482
Scilab: use fname argument not global variable
2013-10-09 13:02:54 +02:00
Simon Marchetto
562c2d1a42
Scilab: fix compilation error on SWIG_SciInt32_FromSize
2013-10-09 13:01:16 +02:00
Simon Marchetto
8a3278ade2
Scilab: fix compilation error on createMatrixOfString
2013-10-09 12:58:04 +02:00
Simon Marchetto
8626d96aff
Scilab: refactor enum typemap
2013-09-27 10:30:12 +02:00
Simon Marchetto
018134f96c
Scilab: add fname parameter at typemap function (for consistency)
2013-09-27 10:22:25 +02:00
Simon Marchetto
32e1acfe4f
Scilab: fix last commit
2013-09-27 10:04:33 +02:00
Simon Marchetto
4cf15d9c1e
Scilab: fix scilab primitve typemaps
2013-09-26 16:54:55 +02:00
Simon Marchetto
9057101d70
Scilab: macro to check Scilab version
2013-09-26 16:16:02 +02:00
Simon Marchetto
caf2db6b8d
Scilab: fix dynamic_cast test error
2013-09-24 11:39:55 +02:00
Simon Marchetto
c32449e131
Scilab: group together Scilab includes
2013-09-23 10:15:28 +02:00
Simon Marchetto
934fc9b37b
Fix Iterators prefixes
2013-09-23 10:10:31 +02:00
Simon Marchetto
b7064539d0
Scilab: fix prefix SciObject
2013-09-23 09:57:12 +02:00
Simon Marchetto
77da84f549
Scilab: init function name SWIG_Init() changed to <module>_Init()
2013-09-18 10:24:47 +02:00
Sylvestre Ledru
228b7d9a6c
Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
2013-09-13 10:03:56 +02:00
Sylvestre Ledru
7a88729c87
Remove trailing spaces in the generated code.
...
No functional changes
2013-09-13 10:02:39 +02:00
Sylvestre Ledru
2374ff914d
Remove trailing spaces in the generated code
2013-09-13 09:50:21 +02:00
Sylvestre Ledru
9c5bac9887
Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
2013-09-13 09:18:06 +02:00
Artem Serebriyskiy
c3f3880d0c
Lua static member access improvements.
...
1) Static members and static functions inside class can be accessed as ModuleName.ClassName.FunctionName (MemberName respectively). Old way aka ModuleName.ClassName_FunctionName still works.
2) Same goes for enums inside classes: ModuleName.ClassName.EnumValue1 etc.
3) More 'runme' tests for lua + modifications to existing tests to test new changes.
Code is loosely based upon python implemenation of the same thing.
Patch #62 .
2013-09-12 21:32:26 +01:00
William S Fulton
a91cd0bc5c
Infinity is now by default an acceptable value for type 'float'.
...
This fix makes the handling of type 'float' and 'double' the same. The implementation requires the
C99 isfinite() macro, or otherwise some platform dependent equivalents, to be available.
2013-09-12 07:28:12 +01:00
Simon Marchetto
5c5528981e
Scilab: remove generated code compilation errors & warnings
2013-09-11 19:19:29 +02:00
Simon Marchetto
2610403d69
Scilab: consider int as default type for STL container of values (so it works for container of enums)
2013-09-02 11:06:00 +02:00
Simon Marchetto
ed135cb99c
Scilab: wrap enums to Scilab variables (if %feature scilab:const")
2013-09-02 11:06:00 +02:00
Simon Marchetto
2cf606c638
Scilab: add %feature scilab:const (constants are wrapped by Scilab variables)
2013-09-02 10:59:48 +02:00
Simon Marchetto
fcfb90219e
Scilab: list helper getScilabListAndSize()
2013-09-02 10:55:07 +02:00
William S Fulton
678058dbc7
Revert non-scilab changes: Octave modifications
2013-08-30 19:07:10 +01:00
Miles Bader
c746ae7a0f
Include Lua error locus in SWIG error messages
...
This is standard information in Lua error messages, and makes it much
easier to find bugs.
2013-08-30 06:56:33 +01:00
Miles Bader
663c41e248
Add Lua runtime helper functions for error-handling
...
Add two helper functions to the Lua runtime, "SWIG_Lua_pusherrstring"
and "SWIG_Lua_pushferrstring".
These are like the standard Lua functions lua_pushstring and
lua_pushfstring respectively, except that the strings are prefixed
with the location of the innermost Lua call-point (as generated by
luaL_where).
2013-08-30 06:56:33 +01:00
Vadim Zeitlin
9efaf954c7
Add support for std::map<> comparator template argument for C#.
...
Allow exporting maps using non-default comparison function.
Closes #77
2013-08-29 19:08:15 +01:00
William S Fulton
1cc735df5e
%implicitconv will now accept None where the implicit conversion takes a C/C++ pointer.
...
Problem highlighted by Bo Peng on the swig-user mailing list. SF patch #230 .
2013-08-28 20:28:15 +01:00
Simon Marchetto
7655b6df6d
Scilab: fix arrays_global test case
2013-08-21 14:35:48 +02:00
Simon Marchetto
0fc9e4d0a4
Scilab: support of Scilab 5.3.3 (api_scilab: Rhs, Lhs, ..)
2013-08-19 17:57:56 +02:00
Kris Thielemans
a495b5a985
Remove SwigPyObject_print and SwigPyObject_str, and make the generated wrapper use the default python implementations, which will fall back to repr (for -builtin option).
...
Advantages:
- it avoids the swig user having to jump through hoops to get print to
work as expected when redefining repr/str slots.
- typing the name of a variable on the python prompt now prints the
result of a (possibly redefined) repr, without the swig user having to
do any extra work.
- when redefining repr, the swig user doesn't necessarily have to
redefine str as it will call the redefined repr
- the behaviour is exactly the same as without the -builtin option while
requiring no extra work by the user (aside from adding the
%feature("python:slot...) statements of course)
- the patch simplifies pyrun.swg a tiny bit.
Disadvantage:
- default str() will give different (but clearer?) output on swigged
classes compared to unpatched swig
SF Bug #326
2013-08-07 20:22:03 +01:00
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
William S Fulton
80f8d1d922
Fix for missing C++ code in std::multimap wrappers.
...
%template for a std::multimap generated uncompilable code unless a
%template for a std::map of the same template types was also coded up.
This patch is needed in conjunction with previous commit - 5f1fff1849
Closes #64
Closes #65
2013-08-06 07:02:49 +01: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