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
Oliver Buchtala
477b2393b1
Add stub 'typemaps.i' files.
2013-09-12 05:26:22 +02:00
Oliver Buchtala
acfed20eba
Bugfix Javascript generator: valid name for dispatcher functions.
2013-09-12 05:10:23 +02:00
Oliver Buchtala
1a04e488bc
Fix Javascript generator for smartpointeraccessed variables.
2013-09-12 05:40:59 +03:00
Oliver Buchtala
8bf95c4356
Bugfix for Javascript generator: avoid duplicate action code generation.
2013-09-12 05:09:35 +03:00
Oliver Buchtala
09a210e037
Bugfix in Javascript generator: detect member setter/getters correctly.
2013-09-12 04:09:21 +03:00
Simon Marchetto
f55c3d283a
Scilab: new option -nobuilder (if used, builder.sce is not generated)
2013-09-11 19:19:29 +02:00
Simon Marchetto
5c5528981e
Scilab: remove generated code compilation errors & warnings
2013-09-11 19:19:29 +02:00
Simon Marchetto
565dd5661e
Scilab: new option to use a script to set build flags
2013-09-11 19:19:28 +02:00
Sylvestre Ledru
0314bc99fd
add of the Scilab developers
2013-09-10 19:48:45 +02:00
Oliver Buchtala
c53e3e4dab
Fix configuration for nodejs based tests.
...
- use $(SWIGOPT)
- less verbose
2013-09-10 14:45:33 +03:00
Oliver Buchtala
dd84e6f9e0
Some fixes and cleanup in Javascript generator.
...
- v8 generator uses the correct mangled name for class templates
- removed symbols for template variables in favor of using the string
literals directly, as it is easier to understand when debugging.
2013-09-10 14:16:36 +03:00
Oliver Buchtala
001f38c6a9
Fix settings for building nodejs tests.
...
Removed the `-node` command line flag.
Instead one has to use `-v8 -DBUILDING_NODE_EXTENSION=1`.
2013-09-10 13:29:16 +03:00
Oliver Buchtala
be35d94fdb
Add support for PackedData to Javascript generator.
2013-09-10 11:53:12 +03:00
Oliver Buchtala
e5ad9cdc05
Added two more Javascript tests.
...
- `abstract_inherit`
- `char_strings`
2013-09-09 22:26:30 +03:00
Oliver Buchtala
571c516a0b
Some fixes for the Javascript generator.
...
- added missing `exception.i`
- added missing generator block `wrappers` for v8
2013-09-09 22:25:51 +03:00
Simon Marchetto
a95a6d623a
Scilab: fix bug og generated line too long
2013-09-09 18:07:59 +02:00
Oliver Buchtala
3c5946d998
Redefined set of Javascript smoke tests.
2013-09-09 17:38:44 +03:00
Oliver Buchtala
407d8ef5ac
Clean up in javascripttypemaps.swg.
...
- following the same layout/order as pytypemaps
- added typemaps for `long long` and `unsigned long long`, which are
only copies of those for `long` and `unsigned long` and hence are
just experimental.
2013-09-09 17:34:53 +03:00
Oliver Buchtala
fc4d9b665c
Fix v8 generator to use a non clashing name for built-in 'equals' method.
2013-09-09 16:28:29 +03:00
Oliver Buchtala
b6c9c97b96
Fix Javascript generator to use %renamed variable names.
2013-09-09 15:05:11 +03:00
Oliver Buchtala
108143951d
Activate Javascript test-cases rename_simple and rename_scope.
...
These reveal current deficiencies in the Javascript generator with `%rename`ing.
2013-09-09 13:55:08 +03:00
Oliver Buchtala
64da1173dd
Activate Javascript testcases rename1-4.
2013-09-09 13:23:47 +03:00
Oliver Buchtala
1438d0cfb4
Add infinity test-case to list of smoke tests.
2013-09-09 13:17:38 +03:00
Simon Marchetto
7436b03a50
Python: fix li_std_set_as_argument test
2013-09-09 12:14:17 +02:00
Simon Marchetto
47868bcbfe
Scilab: remove build & link verbose messages in examples
2013-09-09 12:05:57 +02:00
Eric Wing
e01e337d75
Added unit test using C99 INFINITY. This test actually tests a float
...
conversion bug where converting to float imposed overflow checking which
should not be there and causes this program to error out. This was seen
originally in Javascript, but it turns out Python has the same bug. Lua
does not have this bug. Other generators have not been tested.
This test also tests the rename feature. The Javascript generator was
not renaming the variable correctly.
2013-09-09 12:53:37 +03:00
Simon Marchetto
9f259e0ee8
Scilab: addsrc option uses comma for file name separation (instead of space)
2013-09-09 11:51:49 +02:00
Oliver Buchtala
1729fac360
Bug-fix for static variables as proposed by Kota Iguchi.
...
Fixes #20 .
2013-09-09 12:46:07 +03:00
Simon Marchetto
3a10c9a7cd
Scilab: configure check version is 5.3 minimum
2013-09-09 11:43:20 +02:00
Simon Marchetto
d91a25357b
Add li_std_vector_as_argument & li_std_set_as_argument to common tests
2013-09-09 11:25:59 +02:00
Simon Marchetto
3abb810cc1
Scilab: std_set example converted to test
2013-09-09 11:13:36 +02:00
Simon Marchetto
f95e581dc5
Scilab: fix check list
2013-09-09 10:23:05 +02:00
Simon Marchetto
a7181c3c93
Scilab: move std_vector to upper directory
2013-09-09 10:22:54 +02:00
Oliver Buchtala
8408e9b193
Merge pull request #19 from whoozle/devel
...
fixed deprecation warnings for v8-3.21
2013-09-06 19:50:51 -07:00
Simon Marchetto
84f1e3d3e2
Scilab: std_vector_as_argument example converted to test
2013-09-06 18:34:57 +02:00
Simon Marchetto
1a9c86673b
Scilab: test-case calls module init + fix exit code on errors
2013-09-06 17:31:37 +02:00
Simon Marchetto
91e4114827
Scilab: enum example is consistent with other languages
2013-09-06 15:42:31 +02:00
Simon Marchetto
06617dbd0b
Scilab: constants example consistent with other languages
2013-09-06 15:33:58 +02:00
Oliver Buchtala
6b35c2d419
Let Travis test all three targets.
...
- nodejs: 0.10.12
- libwebgitgtk 1.0
- libv8 3.7.12
We should soon switch to a new v8 version or add an extra runner.
2013-09-06 16:26:02 +03:00
Simon Marchetto
25cb1f2094
Merge pull request #86 from smarchetto/gsoc2012-scilab
...
Scilab: fix test-suite (errors, status, verbosity)
2013-09-06 06:15:14 -07:00
Oliver Buchtala
0facc7ecf9
Allow to run the test suite with our list of smoke tests.
...
The javascript generator can not deal with the whole test-suite.
Moreover, during development I want to have immediate feedback using
a set of smoke tests.
2013-09-06 15:59:43 +03:00
Simon Marchetto
1d19663efd
Scilab: fix test suite copy file error
2013-09-06 14:46:51 +02:00
Simon Marchetto
38750fd4ec
Merge remote-tracking branch 'upstream/gsoc2012-scilab' into gsoc2012-scilab
...
Conflicts:
Source/Modules/scilab.cxx
2013-09-06 11:17:27 +02:00
Simon Marchetto
c0cc7be2e6
Scilab: remove test verbose messages
2013-09-06 10:34:53 +02:00
Simon Marchetto
74cd6281de
Scilab: ignore test ignore_template_constructor (no support of vector<class> yet)
2013-09-06 10:20:33 +02:00
William S Fulton
4f663489fb
Correct Scilab output file handling
...
Fix seg fault when builder file cannot be written.
Correct locations of output files when using -outdir - only language
specific files are output into the direrctory specified by -outdir.
2013-09-06 07:12:38 +01:00