Commit graph

2,489 commits

Author SHA1 Message Date
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
Eric Wing
ed729f7d3a This brings over the memory leak fixes for pointers to structs with a %extend destructor from my Neha fork. The generator was not generating and connecting the needed code for the requested destructor to the v8 dtor finalizer.
I did not realize this branch has some JavaScriptCore stuff in it too. Unfortunately, it seems to have its own unique problems (like creating C++ files when it should be generating C files). My changes are targeted for v8, and I don't think my JSCore changes fully reach in this JSCore implementation so more work would need to be done to get this branch working. I think my Neha fork is in better shape at the moment.

Also, I did port over the 'NULL out the dtor function pointer' in the %nodefaultdtor fix to v8.

Usage case:
struct MyData {
%extend {
~MyData() {
FreeData($self);
}
}
};
%newobject CreateData;
struct MyData* CreateData(void);
%delobject FreeData;
void FreeData(struct MyData* the_data);

where the use case is something like:
var my_data = example.CreateData();
my_data = null;
2013-08-31 03:46:07 +02:00
Oliver Buchtala
868803ce2a Merge replayed as done by c778d16abed35829b103d607a53c8f88e3b2d595 2013-08-31 03:44:44 +02:00
Vladimir Menshakov
a190288e66 fixed overloaded functions multiplication 2013-08-31 03:34:39 +02:00
Oliver Buchtala
a4036deda8 Add pre-processor defines to detect the javascript engine. 2013-08-31 03:34:38 +02:00
Oliver Buchtala
8b10c47ed8 Fix regression: add an include for Node.js header. 2013-08-31 03:34:37 +02:00
Oliver Buchtala
caa92740d3 Add an option to deactivate creation of an extra module object in javascript.
This is useful, if the extension host calls the initializer with custom
local variables.
E.g., this is the case with node.js.
2013-08-31 03:23:12 +02:00
Oliver Buchtala
4fea3a403e Generate an extra file part after the initializer for v8 modules.
E.g., this is useful for creating node.js modules.
2013-08-31 03:23:12 +02:00
Oliver Buchtala
2c4a90a37d Generate defines for initializer function. 2013-08-31 03:23:11 +02:00
Oliver Buchtala
6754bf2b49 Generate cleanup code for %newobject. 2013-08-31 03:23:10 +02:00
Oliver Buchtala
57980975a0 Generate cleanup code. 2013-08-31 03:23:10 +02:00
William S Fulton
d4df5fb07b Code style fixes.
Output after running 'make beautify-file' on scilab file
2013-08-30 19:51:58 +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
William S Fulton
b58dabced9 %implicitconv is improved for overloaded functions.
Like in C++, the methods with the actual types are considered before trying implicit conversions.
2013-08-28 20:30:46 +01:00
Olly Betts
628b4710e5 [Python] Fix clang++ warning in generated wrapper code. 2013-08-24 08:40:08 +12:00
Olly Betts
b477cb66be Use offsetof() rather than icky homemade equivalent 2013-08-24 08:34:50 +12:00
Simon Marchetto
0fc9e4d0a4 Scilab: support of Scilab 5.3.3 (api_scilab: Rhs, Lhs, ..) 2013-08-19 17:57:56 +02:00
Simon Marchetto
2026078a49 Scilab: fix seg fault on tests naturalvar, li_std_string 2013-08-09 11:45:40 +02:00
Simon Marchetto
021cb99b4c Scilab: add build verbosity level (ilib_verbose) option 2013-08-07 12:27:43 +02:00
Simon Marchetto
89f6510fc4 Scilab: fix usage text 2013-08-06 10:48:56 +02:00
Sylvestre Ledru
adc73b7e99 Update of the Close to reflect changes in swig (5a1e82a2f4 ?) 2013-08-06 10:12:17 +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
Simon Marchetto
077e69a851 Scilab: fix SWIT_Init() close in C mode 2013-07-31 11:57:16 +02:00
Simon Marchetto
d034386fc6 Scilab: fix usage of swig scilab program (-help) 2013-07-31 10:46:40 +02:00
Simon Marchetto
c5c684632a Scilab: fix vararg test case crash 2013-07-23 15:03:53 +02:00
Simon Marchetto
25ffa87cab Scilab: fix dynamic_cast test case
Close SWIG_Init() in Scilab executable.
2013-07-23 15:02:39 +02:00
Simon Marchetto
d85cc8b796 Scilab: SWIG_Init() used in C++ mode only 2013-07-22 17:57:30 +02:00
Simon Marchetto
ae92e24b0c Scilab: missing delete variable in scilab program 2013-07-22 17:41:45 +02:00
Simon Marchetto
3dd0ebdde9 Scilab: wrap SWIG_Init() function to initialize module SWIG types (needed for STL support) 2013-07-18 08:56:05 +02:00
William S Fulton
d0af4f50d3 Add %pythonbegin directive.
For adding code at the beginning of the generated .py file.
2013-07-05 06:30:16 +01:00
William S Fulton
779dc402b6 Fix a const_cast in generated code that was generating a <:: digraph when using the unary scope operator (::) (global scope) in a template type.
Affects Python, Ruby, Ocaml.

Based on SF patch #341.
2013-07-01 20:00:12 +01:00