Simon Marchetto
8626d96aff
Scilab: refactor enum typemap
2013-09-27 10:30:12 +02:00
Simon Marchetto
018134f96c
Scilab: add fname parameter at typemap function (for consistency)
2013-09-27 10:22:25 +02:00
Simon Marchetto
32e1acfe4f
Scilab: fix last commit
2013-09-27 10:04:33 +02:00
Oliver Buchtala
6dcbbf07db
Conflicts:
...
.gitignore
.project
.travis.yml
Examples/Makefile.in
Examples/test-suite/director_nspace.i
2013-09-27 02:29:02 +02:00
Simon Marchetto
4cf15d9c1e
Scilab: fix scilab primitve typemaps
2013-09-26 16:54:55 +02:00
Simon Marchetto
9057101d70
Scilab: macro to check Scilab version
2013-09-26 16:16:02 +02:00
Olly Betts
12708c9241
Fix typos
2013-09-25 17:29:33 +12:00
Simon Marchetto
caf2db6b8d
Scilab: fix dynamic_cast test error
2013-09-24 11:39:55 +02:00
Oliver Buchtala
335d926c44
Add stub std_deque.i files.
2013-09-24 03:56:19 +02:00
Simon Marchetto
c32449e131
Scilab: group together Scilab includes
2013-09-23 10:15:28 +02:00
Simon Marchetto
934fc9b37b
Fix Iterators prefixes
2013-09-23 10:10:31 +02:00
Simon Marchetto
b7064539d0
Scilab: fix prefix SciObject
2013-09-23 09:57:12 +02:00
Gavin Kinsey
43032339d0
Fixed a memory leak for java STRING_ARRAY
...
The allocation loop uses size, so the free loop should do the same,
not size-1.
2013-09-20 18:44:44 +01:00
Simon Marchetto
77da84f549
Scilab: init function name SWIG_Init() changed to <module>_Init()
2013-09-18 10:24:47 +02:00
William S Fulton
d0cb2b73db
Remove X11 detection during configure
...
X11 is not used anywhere.
2013-09-18 00:40:24 +01:00
Oliver Buchtala
0528fd3ac3
Bugfix for Javascript generator.
2013-09-16 11:46:00 +02:00
Oliver Buchtala
eb9523b5ca
Add missing macros.
2013-09-16 04:12:55 +02:00
Oliver Buchtala
3e28d1e28f
Let v8 generated code include stdlib.h
2013-09-16 04:12:42 +02:00
Oliver Buchtala
b6426bde25
Add cdata.i typemaps.
2013-09-16 04:12:06 +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
bf416876dd
Bugfix for JSC %typemap(out) std::string&.
2013-09-16 01:33:19 +02:00
Oliver Buchtala
b7f827e42c
Fix typemap declarations for (unsigned) long long.
2013-09-16 01:23:03 +02:00
Oliver Buchtala
68eff3e81e
Merge branch 'devel' of github.com:oliver----/swig-v8 into devel
2013-09-16 00:55:57 +02:00
Oliver Buchtala
bb7bd50eab
Add support for IN/OUTPUT typemaps.
2013-09-16 00:55:43 +02:00
William S Fulton
0431664b18
Guile OUTPUT typemap fix
...
Fixes 'attempt to free a non-heap object' in some OUTPUT typemaps.
2013-09-15 10:43:49 +01:00
Vladimir Menshakov
325b5445d6
removed Clear before Dispose from newer v8 code, consider the following code:
...
template <class T>
void Persistent<T>::Dispose() {
if (this->IsEmpty()) return; //Clear will trigger this
V8::DisposeGlobal(reinterpret_cast<internal::Object**>(this->val_));
...
}
2013-09-14 16:19:47 +04:00
Vladimir Menshakov
89fd7ed9c1
fixed newer v8 compilation
2013-09-14 16:17:21 +04:00
Sylvestre Ledru
228b7d9a6c
Merge remote-tracking branch 'origin/master' into gsoc2012-scilab
2013-09-13 10:03:56 +02:00
Sylvestre Ledru
7a88729c87
Remove trailing spaces in the generated code.
...
No functional changes
2013-09-13 10:02:39 +02:00
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
Simon Marchetto
5c5528981e
Scilab: remove generated code compilation errors & warnings
2013-09-11 19:19:29 +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
be35d94fdb
Add support for PackedData to Javascript generator.
2013-09-10 11:53:12 +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
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
8408e9b193
Merge pull request #19 from whoozle/devel
...
fixed deprecation warnings for v8-3.21
2013-09-06 19:50:51 -07: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
Vladimir Menshakov
b49da78b0a
fixed deprecation warnings for v8-3.21
2013-09-05 19:50:15 +04:00
Oliver Buchtala
740da9c733
Merge pull request #17 from whoozle/devel
...
fixed v8-3.20+ compilation and deprecation warnings.
2013-09-04 09:18:42 -07:00
Vladimir Menshakov
2a39abebb6
moved common swig v8 definitions in javascriptruntime.swg, fixed obsoleted api calls
2013-09-04 20:10:42 +04:00
Oliver Buchtala
315287b656
Put the SWIG_V8_VERSION macro into "runtime" block.
2013-09-04 17:55:44 +02:00
Oliver Buchtala
4068f31c6b
Use a diffent name for the V8_VERSION provided via command line.
2013-09-04 17:54:35 +02:00
Vladimir Menshakov
b7db2a84c9
fixed return values and added missing newer v8 dtor wrapper.
2013-09-04 19:33:48 +04:00