Oliver Buchtala
953f2f91dc
Fix generator for Javascript enums.
2014-04-23 02:26:47 +02:00
Oliver Buchtala
3c593f56de
Turn on Swig_cparse_cplusplusout for Javascript/v8.
2014-04-23 02:26:24 +02:00
Artem Serebriyskiy
c1ca144ed2
Fixed errors from previous commit.
...
Also in previous commit also fixed warning with unsigned vs signed
comparison
2014-04-23 01:48:10 +04:00
William S Fulton
61a75f3b65
Remove unused variable
2014-04-22 19:43:16 +01:00
Simon Marchetto
034aa554ba
scilab: for internal modules, create a script to generate gateway entry point
2014-04-22 18:20:25 +02:00
Simon Marchetto
4c426d47a0
scilab: in library name remove suffix lib, add option to choose name instead
2014-04-17 14:39:04 +02:00
Simon Marchetto
656f2b8932
scilab: fix comment and indentation
2014-04-16 18:02:50 +02:00
William S Fulton
4837c5c9eb
Add missing license info
2014-04-16 07:50:28 +01:00
William S Fulton
d8b3b4e474
Improve missing JS engine error message
2014-04-16 07:39:25 +01:00
Artem Serebriyskiy
8512bad8c2
Fixing unused variable warnings
...
* Fixing unused variable warning. Generated code should compile
with -Wall -Werror flags
* Fixing forgotten __Module -> SwigModule renaming
2014-04-16 03:37:27 +04:00
Simon Marchetto
27a9fe476e
scilab: add missing helper and init functions in gateway XML
2014-04-15 15:21:48 +02:00
Simon Marchetto
ee8cfd3043
scilab: new option -gwid to generate gateway xml file
2014-04-14 12:44:20 +02:00
William S Fulton
244ad06c25
Alphabetical order for Javascript in -help output
2014-04-10 08:11:33 +01:00
William S Fulton
dc8428889e
Ignored enum fixes.
...
C#/Java - Enums which have been ignored via %ignore and are subsequently
used are handled slightly differently. Type wrapper classes are now generated
which are effectively a wrapper of an empty enum. Previously in Java uncompilable
code was generated and in C# an int was used.
2014-04-08 23:25:27 +01:00
Olly Betts
559128e14e
Fix typo in -lua -help output
2014-04-07 23:00:49 +12:00
Olly Betts
f563069e7b
[PHP] Fix wrapping director constructors with default parameters with a ZTS-enabled build of PHP.
2014-04-03 10:38:19 +13:00
Olly Betts
2a3981289d
[PHP] Pass the ZTS context we already have to avoid needing to
...
call TSRMLS_FETCH, which is relatively expensive.
2014-04-02 23:35:59 +13:00
Oliver Buchtala
158c8b6732
Merge branch 'master' into devel
...
Conflicts:
.travis.yml
Examples/test-suite/common.mk
2014-03-30 23:07:56 +02:00
Simon Marchetto
675c4cee0f
scilab: add pointer conversion builtin functions swig_this & swig_ptr
2014-03-28 15:01:01 +01:00
William S Fulton
df2c9d366d
Remove some useless code
2014-03-28 08:04:01 +00:00
William S Fulton
cd2085aae7
Fixes for C enums used in an API and the definition of the enum has not been parsed.
...
For D, this fixes a segfault in SWIG.
Java, C#, D, Go now produce code that compiles, although the definition of the
enum is needed in order to use the enum properly from the target language.
2014-03-28 07:54:03 +00:00
Simon Marchetto
c5dbb16a93
scilab: always use -g for compiling
2014-03-21 15:09:12 +01:00
William S Fulton
45256e0e9e
Lua code refactor
...
Remove the internal api code for -no-old-metatable-bindings.
The code needs to be properly based on features, not api levels.
The code/variable names now reflect the command line option controlling
it.
2014-03-20 19:51:30 +00:00
William S Fulton
bbd8f85de4
Forward null fix for Coverity analysis
2014-03-20 19:14:53 +00:00
William S Fulton
703d5b96fe
Fix extern "C"
2014-03-15 02:20:38 +00:00
William S Fulton
d2dc7df061
Compiler fixes for Sun Workshop compiler
2014-03-15 02:02:40 +00:00
William S Fulton
bf8eb05dbb
Merge pull request #146 from v-for-vandal/class_p1_fixes2
...
Class p1 fixes2 - Lua enums and NSpace
Disable old-names generation for enums in class in namespace
Getattribute->GetFlag
Partially disabling old names generation for classes with nspace
Working around some of the SWIG internal issues with enums
2014-03-14 09:01:15 +00:00
Vladimir Kalinin
e18044185e
fixes for director class naming when nested classes are used
2014-03-13 18:58:29 +04:00
Simon Marchetto
298452fc5d
scilab: do not exit Scilab from builder.sce but in makefile
2014-03-13 09:48:06 +01:00
Artem Serebriyskiy
ddbf439db9
Working around some of the SWIG internal issues with enums
2014-03-12 18:00:15 +04:00
Simon Marchetto
013b9f9769
Merge branch 'master' into gsoc2012-scilab
2014-03-11 10:24:09 +01:00
William S Fulton
b31507a657
Use proxy class for rvalue reference parameters
2014-03-07 12:32:07 +00:00
William S Fulton
dbf44fc181
Fix std::map and smart pointers.
...
Fixes problem with method overloading when some methods are added by %extend
and others are real methods and using template default parameters with smart pointers.
This is noticeable as a regression since 2.0.12 when using the default smart pointer
handling for some languages when the smart pointer wraps std::map and other STL containers.
Fixes SF Bug 1363
2014-03-06 19:52:03 +00:00
Artem Serebriyskiy
3028b16cee
Partially disabling old names generation for classes with nspace
2014-03-06 15:24:17 +04:00
Oliver Buchtala
89610e984e
Beautified Javascript module.
2014-03-05 01:39:26 +01:00
Oliver Buchtala
b5bc87667d
Fix regressions.
...
- Adapted to changes in UTL
- Fixed detection of setters and getters.
2014-03-05 01:10:55 +01:00
Oliver Buchtala
a234542543
Merge branch 'master' into tmp
...
Conflicts:
.travis.yml
Examples/Makefile.in
Examples/test-suite/director_nspace.i
Examples/test-suite/nspace.i
Examples/test-suite/nspace_extend.i
Source/Modules/lang.cxx
configure.ac
2014-03-05 01:09:26 +01:00
Artem Serebriyskiy
869de3e761
Getattribute->GetFlag
2014-03-04 14:33:41 +04:00
Artem Serebriyskiy
e48dee81ea
Disable old-names generation for enums in class in namespace
2014-03-04 13:54:38 +04:00
William S Fulton
8b75b90b2f
Merge branch 'class_p1_fixes' of github.com:v-for-vandal/swig into v-for-vandal-class_p1_fixes
...
Lua changes tweaks.
* 'class_p1_fixes' of github.com:v-for-vandal/swig:
Removing all TODO:REMOVE
Fixing enums
__Static -> SwigStatig, __Module -> SwigModule
Setattr -> SetFlag
Backward compatibility -> Compatibility Note
Fixing documentation. Adding an example.
2014-03-03 19:16:18 +00:00
Artem Serebriyskiy
1da65de2b7
Removing all TODO:REMOVE
2014-03-03 11:29:04 +04:00
Artem Serebriyskiy
1898099620
Fixing enums
2014-03-03 09:54:13 +04:00
Artem Serebriyskiy
cad7f86112
__Static -> SwigStatig, __Module -> SwigModule
2014-03-03 09:27:16 +04:00
Artem Serebriyskiy
23f0df2c0e
Setattr -> SetFlag
2014-03-02 20:15:09 +04:00
William S Fulton
4fb940d913
Further fixes when using type() when using -builtin to include module name
...
Using type() on a builtin type should include the package and module
name, see http://docs.python.org/2/c-api/typeobj.html
2014-03-01 23:26:27 +00:00
Soeren Sonnenburg
d8bfe00e25
Include module name if non NULL in tp_name
2014-03-01 23:26:27 +00:00
Arnaud Diederen
8998f11ca3
Fix Python argument count checking when using -modern
...
SF bug: https://sourceforge.net/p/swig/mailman/message/31957171/
SF Patch: 3471
2014-03-01 16:43:49 +00:00
William S Fulton
aaa71288b1
Cosmetic changes to lua.cxx after recent changes
2014-02-28 23:15:29 +00:00
William S Fulton
d957d37636
Minor code improvements after Lua changes.
2014-02-28 19:49:53 +00:00
Oliver Buchtala
70385842df
Add missing copy ctor for Javascript Code Template class.
2014-02-28 10:40:41 +01:00