summaryrefslogtreecommitdiff
path: root/Lib/scilab
Commit message (Collapse)AuthorAgeFilesLines
* [scilab] Extract values with ":"Clément DAVID2023-04-194-5/+38
| | | | Fixes #894
* std::string throws typemapsWilliam S Fulton2022-09-191-0/+8
| | | | | | | Go, Guile, Racket, Scilab: Add throws typemaps for std::string so that thrown string exception messages can be seen. Test all language for std::string throws typemaps
* Provide SWIGTYPE MOVE typemaps in swigmove.iWilliam S Fulton2022-09-161-0/+1
| | | | | | | | | | | | For implementing full move semantics when passing parameters by value. Based on SWIGTYPE && and std::unique_ptr typemaps which implement move semantics. Added for all languages, but untested for: Go, Ocaml, R, Scilab (and unlikely to be fully functional for same reasons as for std::unique_ptr support). Issue #999
* More move semantics improvementsWilliam S Fulton2022-07-041-2/+2
| | | | | More removal of casts in the out typemaps when copying objects to enable C++ compilers to possibly make use of move semantics.
* Performance optimisation for directors for classes passed by valueWilliam S Fulton2022-07-041-1/+1
| | | | | | | The directorin typemaps in the director methods now use std::move on the input parameter when copying the object from the stack to the heap prior to the callback into the target language, thereby taking advantage of move semantics if available.
* [scilab] Fix to work on WindowsYungLee2022-03-152-3/+3
| | | | | | | | | * Change the builder filename to match the loader filename * Mark extern functions with SWIGEXPORT * Fix bug: builder.sce not generated if with '-scilab -builder' option Fixes #1853
* [scilab] Name init function name to avoid collisionClement David2022-02-021-1/+1
| | | | | | | | Use SWIG_<module>_Init() function to init the module rather than <module>_Init() as the latter can collide with a function being wrapped. Fixes #745 Fixes #1739
* Remove redundant NULL checks before free()/delete (#2184)Olly Betts2022-01-291-4/+2
| | | | | | | | | Remove redundant NULL checks before free()/delete The ISO C and C++ standards guarantee that it's safe to call these on a NULL pointer, so it's not necessary for the calling code to also check. Fixes https://sourceforge.net/p/swig/feature-requests/70/
* Scilab compilation fix when wrapping C++11 enum classesWilliam S Fulton2021-11-151-1/+1
|
* Consistent parameter names for std::pairWilliam S Fulton2019-02-141-2/+2
|
* Add STL container copy constructors where missingWilliam S Fulton2019-02-141-1/+1
| | | | Also provide consistent copy constructor declarations.
* Add missing typedefs to std::pairWilliam S Fulton2019-02-131-0/+2
|
* Add missing typedefs to std::mapWilliam S Fulton2019-02-131-0/+10
|
* Add missing parameter names in STL container wrappersWilliam S Fulton2019-02-131-1/+1
| | | | | | | Mostly in STL copy constructors. Best to have parameter names as they make their way into the wrappers in some target languages.
* Create a consistent stl.i library fileWilliam S Fulton2019-02-121-1/+5
| | | | | Same file now for all languages except R which is still missing std_map.i. Recent Java changes adding in std_set.i removed.
* Fix overloading for non-pointers and NULL - ScilabWilliam S Fulton2018-12-301-1/+4
|
* Fix incorrect casts for Scilab enumsWilliam S Fulton2018-11-131-1/+1
|
* Add support for non-default compare template argument in std::map wrappersWilliam S Fulton2018-10-091-5/+5
|
* Misc. typosluz.paz2018-05-172-4/+4
| | | found via `codespell` and `grep`
* Scilab portability fixes - remove use of strdupWilliam S Fulton2018-05-041-1/+6
|
* Scilab array overbounds fix handling char type exceptionsWilliam S Fulton2018-05-041-1/+1
|
* Add std_shared_ptr.i for Scilab and R as boost_shared_ptr.i is already availableWilliam S Fulton2018-03-091-0/+2
|
* [scilab] fix compilation (checked with the additional compiler options)Simon Marchetto2018-02-011-0/+3
|
* [Scilab] fix compilation errorSimon Marchetto2018-02-011-2/+3
|
* add type name argument in SWIG_ptr() function to cast from pointer adress to ↵Simon Marchetto2018-01-302-24/+67
| | | | typed pointers
* std_basic_string.i fixesWilliam S Fulton2018-01-041-2/+1
| | | | | | - Remove python code from octave's std_basic_string.i - Correctly return an error to fix error handling when using std::basic_string in overloaded methods - issue #1171.
* Enhancements for directorin typemapsWilliam S Fulton2017-10-161-29/+29
| | | | | | | | | The directorin typemaps will now generate a temporary variable (specified after the type), such as: %typemap(directorin) MyType (MyType *temp) { ... use temp ... } The shared_ptr director typemaps have been fixed for use in functions that take more than one parameter.
* Director shared_ptr typemaps for scripting languagesWilliam S Fulton2017-10-131-0/+82
| | | | | | | Modify the Python and Ruby director shared_ptr typemaps to be language neutral. Port the director modifications to other scripting languages that have shared_ptr support - Octave, R and Scilab. Scilab shared_ptr support is not fully working and needs work though.
* Scilab, R and Octave shared_ptr typemaps null fixWilliam S Fulton2017-10-111-4/+3
| | | | | Merge changes from Python/Ruby equivalent files to obtain a fix for NULL handling of T*const& typemaps.
* Ruby and Scilab shared_ptr typemap fragment correctionWilliam S Fulton2017-09-251-5/+5
| | | | Remove some left over cruft from the python port
* Fix overloading of shared_ptr method overloadingWilliam S Fulton2017-09-231-1/+1
| | | | | Add 'equivalent' attribute to typecheck typemap. Closes #1098.
* Fix various comment and documentation typosOlly Betts2017-08-131-1/+1
|
* as() no longer uses memset and always throws.Mike Romberg2017-07-201-20/+11
|
* Fix warning in generated code - traits_asptr.William S Fulton2017-06-131-1/+1
| | | | | Visual Studio 2015 debug builds: error C4703: potentially uninitialized local pointer variable 'p' used
* Fix scilab fragment dependency problem in STL headersWilliam S Fulton2017-06-061-3/+4
| | | | import_stl test now working again
* Consistent whitespace amongst all the shared_ptr and intrusive_ptr typemapsWilliam S Fulton2017-04-201-11/+11
| | | | [skip ci]
* [Scilab] fix compilation, missing returnSimon Marchetto2016-12-201-2/+3
|
* [Scilab] put typemap int/double check into function (to reduce generated ↵Simon Marchetto2016-12-191-8/+16
| | | | code size)
* scilab: cleanSimon Marchetto2016-12-191-3/+1
|
* scilab: SWIG_ptr() accepts mlist typed pointers and converts them to pointersSimon Marchetto2016-12-151-17/+26
|
* scilab: add runtime function SWIG_Scilab_TypeQuery() checks runtime is ↵Simon Marchetto2016-10-052-0/+26
| | | | initialized
* scilab: clean runtime code (move error functions..)Simon Marchetto2016-10-052-71/+70
|
* scilab: remove compilation warningsSimon Marchetto2016-09-263-4/+3
|
* scilab: mlists that map pointers can be given a custom type nameSimon Marchetto2016-09-262-9/+11
|
* scilab: pointer is mapped to mlist instead of tlist (for scilab overloading)Simon Marchetto2016-09-021-7/+7
|
* UTL STL container descriptor checksWilliam S Fulton2016-07-281-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The vector of pointers (just fixed) were not working correctly because the descriptors returned from swig::type_info() were sometimes returning zero. Zero should only be used for void * as the subsequent call to SWIG_ConvertPtr will blindly cast the pointer without checking descriptor. std::vector<void *> does not work and will require further changes: specializing traits_info<void *> to return 0 and traits_asptr<void *>. I tried this and traits_asptr<void> also needs to be added in which seems odd and requires further investigation... Lib/python/pystdcommon.swg: template <> struct traits_info<void *> { static swig_type_info *type_info() { static swig_type_info *info = 0; } }; Lib/std/std_common.i: template <> struct traits_asptr<void *> { static int asptr(PyObject *obj, void ***val) { void **p; swig_type_info *descriptor = 0; int res = SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0); if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } }; // this is needed, but am not sure this is expected template <> struct traits_asptr<void> { static int asptr(PyObject *obj, void **val) { void **p; swig_type_info *descriptor = 0; int res = SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0); if (SWIG_IsOK(res)) { if (val) *val = p; } return res; } };
* scilab: fix pointer type nameSimon Marchetto2016-04-061-1/+1
|
* scilab: fix warningsSimon Marchetto2016-03-142-16/+15
|
* scilab: fix compilation error (no return in SWIG_CheckPtr())Simon Marchetto2016-03-141-8/+12
|
* scilab: fix C90 non conformancesimon2016-03-111-5/+6
|