William S Fulton
de861bea64
Memory leak fixes calling Swig_scopename_split
2019-02-16 13:06:43 +00:00
William S Fulton
eb7b989c61
Fix parser error containing multiple #define statements inside an enum.
...
The second #define fails to parse:
enum FooEnum {
ENUM1 = 0,
ENUM2 = 1,
#define MACRO_DEF1 "Hello"
#define MACRO_DEF2 "World!"
ENUM3 = 2,
ENUM4 = 3,
};
Bug mentioned at https://sourceforge.net/p/swig/patches/333/
2019-02-16 08:09:56 +00:00
William S Fulton
6522afe90a
Merge pull request #1471 from ZackerySpytz/OCaml-segfaults-list-args
...
[OCaml] Fix segfaults when too few arguments are passed to a function
2019-02-15 19:14:45 +00:00
William S Fulton
1f4b3a4553
Merge pull request #1470 from ZackerySpytz/OCaml-dynamic_cast-test
...
[OCaml] Fix the dynamic_cast test
2019-02-15 19:10:15 +00:00
William S Fulton
7139cbc537
Merge pull request #1467 from ZackerySpytz/OCaml-exception-docs-improve
...
[OCaml] Some documentation improvements for %exception
2019-02-15 19:08:42 +00:00
William S Fulton
dd8c3e1466
Merge pull request #1461 from ZackerySpytz/OCaml-argout-typemaps-ref-types
...
[OCaml] Don't use argout typemaps by default for some reference types
2019-02-15 19:06:05 +00:00
William S Fulton
e04da08093
Merge pull request #1469 from ZackerySpytz/cpp17-hexadecimal-floating-literals
...
Add support for C++17 hexadecimal floating literals
2019-02-15 18:58:51 +00:00
William S Fulton
b0f105fa9f
Merge branch 'master' into cpp17-hexadecimal-floating-literals
2019-02-15 18:57:25 +00:00
Zackery Spytz
071803f000
[OCaml] Fix segfaults when too few arguments are passed to a function
...
Prevent segfaults when too few arguments are passed to a function.
Length checks are not needed for the wrappers of overloaded
functions -- the generated dispatch function already checks.
Add default_args_runme.ml.
Fix minor errors in some runtime tests. Extra args were being passed
in some cases.
2019-02-15 01:17:15 -07:00
William S Fulton
7b0402f89b
Changes file entry for Java STL support
2019-02-14 22:46:20 +00:00
William S Fulton
52063a732b
Consistent parameter names for std::pair
2019-02-14 22:44:27 +00:00
William S Fulton
a6a50d60e1
Restore original std::map template parameters for Java
2019-02-14 21:41:08 +00:00
William S Fulton
6d27ead9c0
Add STL container copy constructors where missing
...
Also provide consistent copy constructor declarations.
2019-02-14 18:53:05 +00:00
Zackery Spytz
a159a252dd
[OCaml] Fix the dynamic_cast test
...
Add out typemaps for SWIGTYPE *DYNAMIC and SWIGTYPE &DYNAMIC.
Add dynamic_cast_runme.ml.
2019-02-14 02:21:36 -07:00
William S Fulton
dc34c39c53
Cosmetic STL typedef changes
2019-02-14 08:16:16 +00:00
William S Fulton
40d7f4137e
typedef declaration corrections for std::array
2019-02-14 07:38:49 +00:00
William S Fulton
440264e479
Add missing typedefs to std::list + typedef corrections
...
Numerous missing typedefs added.
std::list<T*>::const_reference and std::list<T*>::reference
specialization typedef fixes.
2019-02-14 07:31:21 +00:00
William S Fulton
e26f6bb4e2
Add missing typedefs to std::vector + typedef corrections
...
Tests for std::vector of pointers added which check
std::vector<T*>::const_reference and std::vector<T*>::reference
usage which gave compilation errors in Python and Perl which had
specialized these vectors incorrectly.
2019-02-13 22:46:28 +00:00
William S Fulton
a47c2553f5
Add missing typedefs to std::pair
2019-02-13 22:46:28 +00:00
William S Fulton
9dd33e6367
Add missing typedefs to std::map
2019-02-13 22:46:27 +00:00
William S Fulton
1f44997343
rename std::array testcase
2019-02-13 22:46:20 +00:00
William S Fulton
6d0c495fd0
Add missing parameter names in STL container wrappers
...
Mostly in STL copy constructors.
Best to have parameter names as they make their way into the wrappers in
some target languages.
2019-02-13 22:45:47 +00:00
Zackery Spytz
cf83adfcd1
Add support for C++17 hexadecimal floating literals
2019-02-13 15:16:40 -07:00
Zackery Spytz
506be0c28c
[OCaml] Some documentation improvements for %exception
...
Use the style of the Java and Python modules.
Tweak some entries in CHANGES.current.
[skip ci]
2019-02-12 19:43:55 -07:00
William S Fulton
8c207dd3a9
Merge branch 'master' of git+ssh://github.com/swig/swig
...
* 'master' of git+ssh://github.com/swig/swig:
[Python] Fix some errors in the documentation for -threads
Fixed typo in Perl5 docs.
Update PHP testsuite for vadz's new cars
[php] Whitespace improvements in generated C/C++ code
Fix hardcoded _v in PHP typecheck typemaps
2019-02-12 18:53:46 +00:00
William S Fulton
68e86614ff
Create a consistent stl.i library file
...
Same file now for all languages except R which is still missing std_map.i.
Recent Java changes adding in std_set.i removed.
2019-02-12 18:46:05 +00:00
William S Fulton
136e6cfe2b
Merge branch 'bkotzz-add_set_map'
...
* bkotzz-add_set_map:
Add missing typedefs to Java STL containers
Combine duplicate unordered_set unordered_map testcases
Nicer looking generated Java container code
Replicate some cosmetic changes from std_map.i
Legacy macros, protected iterator, typedefs
Remove c++11 from stl.i
Add to STL file as well
Maps both working as java.util impls
Mostly working for map
Add set/unordered_set that extend AbstractSet
Move unordered containers under cpp11_ prefix
Add test cases to C++11 list
Add unordered_{set|map} and set to Java
2019-02-12 18:09:38 +00:00
William S Fulton
e83e14a15e
Add missing typedefs to Java STL containers
2019-02-12 07:15:51 +00:00
William S Fulton
82d1632071
Combine duplicate unordered_set unordered_map testcases
...
Merge cpp11_li_std_unordered_map into cpp11_std_unordered_map
Merge cpp11_li_std_unordered_set into cpp11_std_unordered_set
2019-02-12 06:48:13 +00:00
William S Fulton
9849174d93
Nicer looking generated Java container code
2019-02-12 06:20:19 +00:00
William S Fulton
437037a3e6
Replicate some cosmetic changes from std_map.i
...
into std_set.i, std_unordered_map.i, std_unordered_set.i.
2019-02-12 06:20:10 +00:00
Zackery Spytz
200984f051
[Python] Fix some errors in the documentation for -threads
...
The documentation for -threads was added in
f0f2fd2dae
[skip ci]
2019-02-12 10:59:05 +13:00
Håkon Hægland
6d2aae4718
Fixed typo in Perl5 docs.
...
Fixed typo in section 33.7.2 "Perl5 typemaps". There is no function set_setiv()
in the perl api, the correct name is sv_setiv().
2019-02-12 10:46:56 +13:00
Olly Betts
9db02a1e6b
Update PHP testsuite for vadz's new cars
2019-02-12 10:27:31 +13:00
Olly Betts
950473d77e
[php] Whitespace improvements in generated C/C++ code
2019-02-12 10:14:25 +13:00
Olly Betts
3499675cb0
Fix hardcoded _v in PHP typecheck typemaps
...
This should be $1, which ends up substituted with _v so this does
not actually affect behaviour.
2019-02-12 09:29:41 +13:00
William S Fulton
d16d145787
Documentation section numbering update
...
[skip ci]
2019-02-11 19:02:03 +00:00
William S Fulton
a5b301ba83
Add a documentation chapter on C++14
2019-02-11 18:59:46 +00:00
William S Fulton
be84fc62a9
Merge branch 'ZackerySpytz-cpp14-binary-integer-literals'
...
* ZackerySpytz-cpp14-binary-integer-literals:
Add support for C++14 binary integer literals
2019-02-11 18:36:47 +00:00
William S Fulton
857456b5f3
Add changes entry about target language statuses
2019-02-11 18:30:35 +00:00
William S Fulton
ad7f9cd8d7
Mark and setup OCaml as an experimental target language.
...
Issue #1437
2019-02-11 18:30:35 +00:00
Vadim Zeitlin
ddf4bbe112
Merge branch 'fix-ignore-param'
...
Fix for wrongly renaming parameters to "$ignore" in Python.
See https://github.com/swig/swig/pull/1462
2019-02-11 14:24:46 +01:00
William S Fulton
43438b66ab
Re-organise some generate Python code for method creation and docstring support
...
Fix ‘PyMethodDef* SWIG_PythonGetProxyDoc(const char*)’ declared ‘static’ but
never defined [-Wunused-function]
Closes #1448
2019-02-10 22:55:16 +00:00
Zackery Spytz
23d83cd9c1
Add support for C++14 binary integer literals
...
Closes #1030 .
2019-02-10 15:38:49 -07:00
Olly Betts
a0720885bd
Remove PHP-specific avoidance of uninitialised variable
...
This code is no longer needed since
ebd37155a8 addressed this more
generically.
2019-02-11 10:49:20 +13:00
Olly Betts
60eccff4b7
[php] Fix typemap indentation (cosmetic)
2019-02-11 10:49:20 +13:00
Olly Betts
ce5a249878
Drop -php4 option completely
...
SWIG's support for PHP4 was removed over a decade ago, and PHP4 itself
went out of security support more than a decade ago too - nobody is
realistically going to be trying to generate PHP4 bindings in 2019.
2019-02-11 10:49:20 +13:00
William S Fulton
e0fb4b8956
html section numbers updated
2019-02-10 17:40:00 +00:00
William S Fulton
80b79fc583
Merge branch 'ZackerySpytz-cpp11_u_U_char_encoding_prefixes'
...
* ZackerySpytz-cpp11_u_U_char_encoding_prefixes:
Document C++11 UCS-2 UCS-4 and C++17 UTF8 character literals support
c++17 u8 character literals testcase
C++17 u8 character literals fix
C++17 u8 character literals testcase
Fix the Java tests
Add support for the C++11 u and U encoding prefixes for char literals
2019-02-10 17:39:03 +00:00
William S Fulton
7bc928da60
Document C++11 UCS-2 UCS-4 and C++17 UTF8 character literals support
2019-02-10 17:35:34 +00:00