Commit graph

3,012 commits

Author SHA1 Message Date
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
255603639f Scilab: rollback, support of container<class*> only (not <class>) 2013-07-31 18:28:23 +02:00
Simon Marchetto
74243ae306 Scilab: fix constructor_copy test_case
using vector<T> needs T have default constructor
2013-07-23 14:59:01 +02:00
Simon Marchetto
16d45620ba Scilab: fix example check list 2013-07-22 17:57:30 +02:00
Simon Marchetto
f7b67980e6 Scilab: fix some example scripts (missing exit) 2013-07-22 17:57:30 +02:00
Simon Marchetto
2ce2862472 Scilab: fix some example makefiles (restore target check) 2013-07-22 17:53:00 +02:00
Simon Marchetto
111c1eb538 Scilab: add vector<class> in STL vector example 2013-07-22 17:39:01 +02:00
Simon Marchetto
ef48783589 Scilab: add STL list example 2013-07-19 18:01:18 +02:00
Simon Marchetto
ca282beae6 Scilab: add bool type in STL vector example 2013-07-19 17:31:59 +02:00
Simon Marchetto
1cf1e72e72 Scilab: update STL set example
Fixes:
- use generic support of STL set
- add example for set of string
2013-07-18 08:56:53 +02:00
Simon Marchetto
28dd6985c2 Scilab: add STL simple vector example (available also for Python, Ruby...) 2013-07-18 08:56:44 +02:00
Simon Marchetto
2472fe492a Scilab: rewrite STL vector example (vector argument passing example)
Fixes:
- use generic support of vectors
- add vector of object example
- improve example messages
- simplify cpp code
- move example code to "std_vector" folder
2013-07-18 08:56:37 +02:00
Simon Marchetto
1b26ad8b21 Scilab: added target in Examples makefile for debugging 2013-07-18 08:56:12 +02:00
Simon Marchetto
d1beaef1ba Scilab: improve STL vector example (test all argument passing modes) 2013-06-20 18:21:23 +02:00
Simon Marchetto
9bdeb67312 Scilab: update STL vector example with vector<string> 2013-06-20 11:38:14 +02:00
Simon Marchetto
8ca085b528 Scilab: update matrix2 example (with int & string matrix conversion) 2013-06-20 10:55:05 +02:00
Simon Marchetto
4f2715a9ec Scilab: fix test case li_std_vector 2013-06-12 10:59:11 +02:00
Simon Marchetto
bc73c5877d Scilab: fix test case typemap_variables 2013-06-10 11:01:17 +02:00
Simon Marchetto
2e7a435440 Add example for STL sets 2013-06-03 17:20:10 +02:00
Simon Marchetto
a61d829676 Fix example for STL vectors 2013-06-03 17:20:09 +02:00
Simon Marchetto
a9f366b142 Fix matrix example 2013-06-03 17:20:08 +02:00
Simon Marchetto
0ac03d9fe9 New example for templates 2013-06-03 17:20:04 +02:00
William S Fulton
72f2d8ac8f Fix Python test-suite makefile to show which tests have runtime tests (for Python 3). 2013-05-27 10:24:02 +01:00
William S Fulton
af8f77a627 Fix to ensure 2to3 for Python 3 examples is run 2013-05-27 00:27:31 +01:00
William S Fulton
b3ca22dc33 Fix Python examples to compile and run under Python 3 2013-05-26 23:02:13 +01:00
William S Fulton
fd93beadf4 Fix 'make check-python-test-suite PY3=1' and -j (make jobs) 2013-05-25 22:29:18 +01: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
William S Fulton
f15eb3f5ec Fix vararg documentation for Python 3
Memory handling is different to Python 2.
2013-05-24 23:02:34 +01:00
William S Fulton
074c0039db Fix Python version checking in Python tests 2013-05-24 18:57:26 +01:00
William S Fulton
8700e79b3e Guile port example fix for Guile 2.0
Rewinding the file before passing it to C fixed the problem of not being
able to read the file contents.

Also explain the error about writing to a string.
2013-05-23 23:24:19 +01:00
William S Fulton
0f1e3da5de Fix the high passed to PyTuple_GetSlice in varargs wrappers.
Harmless bug as slices can take any size larger than the actual size for
the high value. Reported in SF Bug 1326.
2013-05-23 21:25:41 +01:00
Geert Janssens
6e794da3f3 Guile port example - print a message to show the error is expected 2013-05-21 17:23:37 +02:00
William S Fulton
6f1aea7a12 Cosmetic makefile tidy up 2013-05-15 09:57:34 +01:00
Geert Janssens
2560210bfd Guile delete Example makefile 2013-05-15 09:38:50 +02:00
Geert Janssens
d3cddb1355 Guile add two more examples and use load-extension instead of dynamic-load 2013-05-13 22:40:16 +02:00
Geert Janssens
090d2505d1 Guile create functional class example 2013-05-13 21:40:01 +02:00
Geert Janssens
e5f6ec8912 Guile fix matrix example
Got broken in commit dd36f28ac7
(Migrate Guile examples build into common Examples makefile)
2013-05-10 18:29:26 +02:00
William S Fulton
199c1f3249 Add skeleton for run test for Guile class example 2013-05-09 20:03:50 +01:00
William S Fulton
042d0dfdc2 Guile port example Makefile correction 2013-05-09 19:41:29 +01:00
William S Fulton
dd36f28ac7 Migrate Guile examples build into common Examples makefile
- Now Guile examples are built in a consistent way to other target
languages.
- Also set GUILE_AUTO_COMPILE=0 to remove auto-compilation is enabled
  warnings
2013-05-09 19:28:09 +01:00
William S Fulton
d974e9aced Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the
examples like the other target languages (for suppressing stdout if run
from top level).

Consistency with other target language file renames: use runme.scm for
scripts and example.i, example.c for example code.

Add class example to examples being tested.
2013-05-09 18:35:18 +01:00
Karl Wette
c28d0c6c80 Fixes to Octave examples
- rename example modules from "example" to "swigexample", to avoid a
  warning from shadowing the Octave built-in function "example"
- remove deprecated "static" Makefile targets: there is no longer
  an option to build static Octave modules in the Examples Makefile
- emacs whitespace cleanup run on all files
2013-05-08 22:44:40 +01:00
William S Fulton
7964ebe34f Tidy up pike version display 2013-05-08 17:36:03 +01:00
William S Fulton
cd4c1d3c3f Tidy up target language versions display 2013-05-08 16:48:27 +01:00
William S Fulton
1adb239046 Fix running of Guile multivalue and std_vector examples 2013-05-08 14:10:47 +01:00
William S Fulton
10acae18d2 Correct Guile Makefile to fix test-suite/examples on Cygwin 2013-05-08 13:05:11 +01:00
William S Fulton
70b9df5ee9 Portable dynamic library loading for Guile
dynamic-link and load-extension work without passing the .so or .dll as
the shared library extension, so these have been dropped so the examples
and test-suite work on Cygwin.

Also update documentation and use the 'lib' prefix as that is what we
commonly name the shared libraries.
2013-05-08 12:42:17 +01:00
William S Fulton
f68cde8bb9 Fix li_std_containers_int test case for Python < 2.6
Workaround bugs in older versions of Python
2013-05-03 19:55:42 +01:00
William S Fulton
ca7b77cbd1 Fix tcl operator example crashing when run
The example was accessing deleted memory and so sometimes crashed.
2013-05-03 19:55:42 +01:00