Commit graph

2,269 commits

Author SHA1 Message Date
Simon Marchetto
caf2db6b8d Scilab: fix dynamic_cast test error 2013-09-24 11:39:55 +02:00
Oliver Buchtala
51b36d1a1f Add non pretty printing function to Templates. 2013-09-24 03:55:51 +02:00
Oliver Buchtala
dc62a69775 Fix bug with typedefd function pointers. 2013-09-24 03:55:10 +02:00
Oliver Buchtala
b9ecf75f17 Fix emitter for member pointer constants.
However, I am not happy with the constant emitter in general.
Should not return dynamic values but register constant wrappers statically.
2013-09-24 01:50:13 +02:00
Oliver Buchtala
8bf966a65c Fix %nspace support and activated relevant tests. 2013-09-24 01:47:13 +02:00
Simon Marchetto
3ebd3da30e Scilab: if -Wextra, warning at generation for too long identifier names 2013-09-23 13:48:50 +02:00
Simon Marchetto
40a5fe1224 Scilab: remove generated code typemap comments 2013-09-23 10:22:36 +02:00
Simon Marchetto
6318290a3b Scilab: add SWIG banner in builder.sce 2013-09-23 09:49:13 +02:00
Simon Marchetto
77da84f549 Scilab: init function name SWIG_Init() changed to <module>_Init() 2013-09-18 10:24:47 +02:00
Simon Marchetto
e59e2ad0c2 Scilab: rename option -flagscript to -buildflags + fix spacing 2013-09-18 09:25:59 +02:00
Oliver Buchtala
b3c198ccee Fix regression. 2013-09-16 22:28:14 +02:00
Oliver Buchtala
b99e8613ad Bugfix in argument marshalling. 2013-09-16 21:56:52 +02:00
Oliver Buchtala
0528fd3ac3 Bugfix for Javascript generator. 2013-09-16 11:46:00 +02:00
Oliver Buchtala
147cec70f1 Replace $symname in generated function wrappers. 2013-09-16 04:54:57 +02:00
Oliver Buchtala
1f07195812 Rearrange generation of init block to have custom init code within the initializer body. 2013-09-16 03:53:00 +02:00
Oliver Buchtala
80ce36c445 Make JSC inheritance definition more robust. 2013-09-16 02:27:51 +02:00
Oliver Buchtala
973042302b Removed dead code. 2013-09-16 01:57:55 +02:00
Oliver Buchtala
bb7bd50eab Add support for IN/OUTPUT typemaps. 2013-09-16 00:55:43 +02:00
Sylvestre Ledru
424b20635f remove trailing space in Scilab generated code 2013-09-13 09:50:51 +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
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
565dd5661e Scilab: new option to use a script to set build flags 2013-09-11 19:19:28 +02: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
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
b6c9c97b96 Fix Javascript generator to use %renamed variable names. 2013-09-09 15:05:11 +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
38750fd4ec Merge remote-tracking branch 'upstream/gsoc2012-scilab' into gsoc2012-scilab
Conflicts:
	Source/Modules/scilab.cxx
2013-09-06 11:17:27 +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
William S Fulton
3ee711d1f4 Slight coding improvement 2013-09-06 06:55:03 +01:00
Oliver Buchtala
29ccb270af Renamed object provided to JS initializers.
JSC initializer create a new module object.
V8 initializer fill a provided 'exports' object.
2013-09-06 00:40:29 +03:00
William S Fulton
6e36208928 Scilab command line options
Document the options.
Make scilab -help consistent with the other target languages.
2013-09-05 19:15:51 +01:00
Simon Marchetto
08b779aee2 Scilab: return exit code 1 from Scilab when module build fails (for Travis test-suite status) 2013-09-04 17:42:19 +02:00
Simon Marchetto
b4ed5625ee Scilab: parallelization of test-suite, remove configure cache 2013-09-04 15:25:53 +02:00
Kota Iguchi
78a3cc9e3e Added the finalize callback (JSObjectFinalizeCallback) 2013-09-03 13:49:36 +02:00
Oliver Buchtala
5228c0eeab Add a dedicated mode for creating node modules. 2013-09-03 05:36:41 +02:00
William S Fulton
67659773cc Remove some Java references from C# module 2013-09-02 19:14:20 +01:00
Simon Marchetto
9e5c351176 Scilab: clean enum management code (no need to force enum type) 2013-09-02 11:06:01 +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
Kota Iguchi
0732592ed9 Patch to support argout typemap for your swig-v8 branch. 2013-08-31 03:47:49 +02:00
Oliver Buchtala
32f9cce600 Merged whoozle branch with ewmailing branch.
Conflicts:
	Lib/javascript/v8/javascriptcode.swg
2013-08-31 03:47:43 +02:00
Oliver Buchtala
306b265af9 Merge branch 'devel' of git://github.com/oliver----/swig-v8 into devel
Conflicts:
	Lib/javascript/v8/javascriptcode.swg
2013-08-31 03:47:08 +02:00