Commit graph

19,573 commits

Author SHA1 Message Date
William S Fulton
449aa08124 %extend changes and remove default use of javatype, dtype, cstype %typemaps
1) The %extend directive can now optionally support one of the 'class', 'struct' or 'union'.
2) The SWIG library no longer uses the javatype, dtype or cstype typemaps, thereby
   completely freeing them up for users to use without having to replicate the library
   code that they previously added

Tested by changes to test: java_lib_arrays
2017-01-15 16:50:24 +00:00
William S Fulton
19f21d1dd5 Reference %proxycode from javacode typemap section in docs 2017-01-13 20:52:33 +00:00
William S Fulton
3d2e57b0f2 Add %proxycode directive for adding code into proxy classes for C#, D and Java 2017-01-13 20:43:50 +00:00
William S Fulton
88e2d02ead Document %insert filename and add test for it 2017-01-13 20:43:50 +00:00
Karl Wette
a699944c95 Revert "Lib/octave/octopers.swg: update %ignoreoperator() calls"
This reverts commit 2bc66ab755.
2017-01-07 17:53:35 +13:00
Karl Wette
2bc66ab755 Lib/octave/octopers.swg: update %ignoreoperator() calls
- Need to use *::operator... to match C++ operator... methods
2017-01-06 22:57:41 +13:00
William S Fulton
92d694225a Update wiki links to new Github wiki site
[skip ci]
2017-01-05 18:39:57 +00:00
William S Fulton
caed1110fb Remove redundant cpp11.html file
This was superceded by Doc/Manual/CPlusPlus11.html
2017-01-05 07:37:40 +00:00
William S Fulton
fade04962e Merge branch 'sunoru-master'
* sunoru-master:
  Correct some whitespace changes
  Realign for some comments.
  Fix some typos in docs and examples and make the code look nicer.
2017-01-01 14:29:52 +00:00
William S Fulton
5b49ad3485 Correct some whitespace changes 2017-01-01 14:28:49 +00:00
Karl Wette
9e66af3fef Octave: do not dump Octave core in examples/test suite scripts
- If Octave segfaults during cleanup, it usually cannot dump its core
  and therefore just freezes, which hold up e.g Travis build jobs
2017-01-01 19:06:51 +13:00
sunoru
9a6f82ab31 Realign for some comments. 2016-12-31 23:29:45 +08:00
sunoru
8985c34809 Fix some typos in docs and examples and make the code look nicer. 2016-12-31 23:06:56 +08:00
William S Fulton
70801d47d1 changes file update for deprecated C++11 functions 2016-12-31 00:13:35 +00:00
William S Fulton
84c0cb2fe0 Merge branch 'ajrheading1-remove-unary-binary-function'
* ajrheading1-remove-unary-binary-function:
  Remove inheritance from std::unary_function and std::binary_function, they are deprecated in C++11 and already removed in Visual C++ '15' running with /std:c++latest
2016-12-31 00:10:26 +00:00
William S Fulton
12e1ab0e93 Bump version to 3.0.12 2016-12-30 23:49:46 +00:00
Olly Betts
26a01e1b83 [PHP7] Fix segfault on module unload
Register internal 'swig_runtime_data_type_pointer' constant as
"CONST_PERSISTENT" to avoid segmentation fault on module unload.  Fixes
https://github.com/swig/swig/issues/859 reported by Timotheus Pokorra -
thanks also to Javier Torres for a minimal reproducer.
2016-12-30 16:05:53 +13:00
Olly Betts
0aac18b2a1 [PHP] destroy_globals function is empty, so drop
We can just pass NULL instead.
2016-12-30 16:02:01 +13:00
Olly Betts
36ee653d3b Omit module functions when there's no code
MSHUTDOWN, RINIT, RSHUTDOWN and MINFO are often empty, so check and
omit them if this is the case, and set the module structure entry to
NULL instead.  Reduces code size, number of external functions on the
module, and runtime overhead a little (RINIT and RSHUTDOWN are called
on every request when used with a webserver).
2016-12-30 15:36:08 +13:00
Olly Betts
cf60bb8895 [php7] Drop special code for PHP < 5.4 2016-12-30 14:56:53 +13:00
Olly Betts
4a2ede0820 [PHP7] Remove lingering generated ZTS code
ZTS is gone in PHP7 so these are dead code.
2016-12-30 12:41:19 +13:00
William S Fulton
7c8cb62271 Add 3.0.11 release date 2016-12-29 18:02:27 +00:00
Anthony Heading
1871acd4bc Remove inheritance from std::unary_function and std::binary_function,
they are deprecated in C++11 and already removed in Visual C++ '15'
running with /std:c++latest

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3145.html
2016-12-29 00:56:46 -05:00
William S Fulton
5919e9c3c7 Consistent referencing of issues in the changes file.
[skip ci]
2016-12-27 19:45:02 +00:00
William S Fulton
56dd5a0dbb Add release notes 2016-12-27 19:31:18 +00:00
William S Fulton
01fa85bda7 Add %feature("csdirectordelegatemodifiers") for C#
Enable customization of the delegate access modifiers generated in director classes.
Fixes https://github.com/swig/swig/issues/748
2016-12-24 17:14:36 +00:00
William S Fulton
10366d16e3 Fix documented C# director class example to reflect the generated code
https://github.com/swig/swig/issues/748
2016-12-24 16:10:47 +00:00
William S Fulton
c7eab6e5f0 Remove cdata.i module not supported message 2016-12-24 16:08:58 +00:00
William S Fulton
4963a7f88f Fix Python 2 builtin tp_hash hashfunc closure regression when using "python:slot"
Closes https://github.com/swig/swig/issues/843
2016-12-23 23:41:07 +00:00
William S Fulton
94e7482e48 Remove illegal operator overload names in R
https://github.com/swig/swig/pull/853
2016-12-22 19:59:58 +00:00
William S Fulton
f9158e525f Revert "Merge pull request #853 from ivannp/underscores"
This reverts commit a964098754, reversing
changes made to bda3a11f9e.

SWIG should only provide default operator names that provide special
standard or conventional meaning in the target language.
2016-12-22 19:47:54 +00:00
William S Fulton
3dfb2298a8 Add further information into changes file about recent %rename template fix
https://github.com/swig/swig/issues/856
[skip ci]
2016-12-22 08:41:57 +00:00
Joseph C Wang
c3a8bb5164 add fixes 2016-12-21 22:00:53 +08:00
Joseph Wang
a964098754 Merge pull request #853 from ivannp/underscores
Renamed all operators beginning with underscore.
2016-12-21 21:59:32 +08:00
Joseph C Wang
bda3a11f9e add fixes to changes 2016-12-21 21:55:27 +08:00
Joseph Wang
14a5f9e11d Merge pull request #839 from richardbeare/RsetMethods
Corrected generation of "set" methods for R.
2016-12-21 21:52:27 +08:00
Olly Betts
7a3cfdb013 Fix GCC 7 warnings
From -Wimplicit-fallthrough which is now enabled by -W.
2016-12-21 13:05:20 +13:00
Olly Betts
76d1aac47a Fix isfinite() checks to work with all C++11 compilers
Fixes https://github.com/swig/swig/issues/615,
https://github.com/swig/swig/pull/788 and https://github.com/swig/swig/pull/849.
2016-12-21 11:22:26 +13:00
Olly Betts
6c8e3288ec Note "POTENTIAL INCOMPATIBILITY" re php5 lang subdir 2016-12-21 11:05:42 +13:00
William S Fulton
e6b270b6dc Suppress incorrect warning when a keyword is used in template classes
Closes https://github.com/swig/swig/issues/845
2016-12-20 19:44:57 +00:00
Simon Marchetto
e517128e08 [Scilab] fix compilation, missing return 2016-12-20 10:09:07 +01:00
Simon Marchetto
94bee6b35a [Scilab] put typemap int/double check into function (to reduce generated code size) 2016-12-19 15:04:30 +01:00
Simon Marchetto
15b3c1dfa3 [Scilab] fix test scilab_pointer_conversion_function for scilab 5.3.3 2016-12-19 15:04:30 +01:00
Simon Marchetto
4d46527c9c scilab: clean 2016-12-19 15:04:30 +01:00
Olly Betts
ff7825c7a6 Fix doc typo 2016-12-19 13:32:59 +13:00
William S Fulton
6f0af6bec6 Merge branch 'ezralanglois-fix-memory-leak'
* ezralanglois-fix-memory-leak:
  Replicate Python memory leak fix in std::pair for Octave and Ruby
  Fix memory leak in std::pair Python binding

Conflicts:
	CHANGES.current
2016-12-18 20:02:40 +00:00
William S Fulton
364fa82499 Replicate Python memory leak fix in std::pair for Octave and Ruby
https://github.com/swig/swig/pull/851
2016-12-18 20:00:40 +00:00
William S Fulton
bdf71b0067 Zero initialize %array_functions and %array_class 2016-12-18 17:50:47 +00:00
William S Fulton
cc56765a7a Zero initialize newly created arrays
For consistency to previous fixes:
https://github.com/swig/swig/pull/208
https://github.com/swig/swig/issues/440
2016-12-18 17:50:47 +00:00
William S Fulton
173c028dd4 Add test and changes entry for Python -builtin %array_class fix
Issue https://github.com/swig/swig/issues/446
2016-12-18 17:50:47 +00:00