summaryrefslogtreecommitdiff
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Add missing typedefs to std::vector + typedef correctionsWilliam S Fulton2019-02-1314-16/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Add missing typedefs to std::pairWilliam S Fulton2019-02-1314-16/+31
| | | | | |
* | | | | | Add missing typedefs to std::mapWilliam S Fulton2019-02-1315-2/+142
| | | | | |
* | | | | | Add missing parameter names in STL container wrappersWilliam S Fulton2019-02-1349-74/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly in STL copy constructors. Best to have parameter names as they make their way into the wrappers in some target languages.
* | | | | | Merge branch 'master' of git+ssh://github.com/swig/swigWilliam S Fulton2019-02-123-20/+19
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * '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
| * | | | | [php] Whitespace improvements in generated C/C++ codeOlly Betts2019-02-122-15/+14
| | | | | |
| * | | | | Fix hardcoded _v in PHP typecheck typemapsOlly Betts2019-02-121-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should be $1, which ends up substituted with _v so this does not actually affect behaviour.
* | | | | | Create a consistent stl.i library fileWilliam S Fulton2019-02-1215-32/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same file now for all languages except R which is still missing std_map.i. Recent Java changes adding in std_set.i removed.
* | | | | | Merge branch 'bkotzz-add_set_map'William S Fulton2019-02-125-34/+797
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | | | | Add missing typedefs to Java STL containersWilliam S Fulton2019-02-124-0/+18
| | | | | |
| * | | | | Nicer looking generated Java container codeWilliam S Fulton2019-02-122-4/+2
| | | | | |
| * | | | | Replicate some cosmetic changes from std_map.iWilliam S Fulton2019-02-124-49/+49
| | | | | | | | | | | | | | | | | | | | | | | | into std_set.i, std_unordered_map.i, std_unordered_set.i.
| * | | | | Legacy macros, protected iterator, typedefsBrad Kotsopoulos2019-02-044-49/+87
| | | | | |
| * | | | | Remove c++11 from stl.iBrad Kotsopoulos2018-12-271-3/+0
| | | | | |
| * | | | | Add to STL file as wellBrad Kotsopoulos2018-12-273-4/+7
| | | | | |
| * | | | | Maps both working as java.util implsBrad Kotsopoulos2018-12-272-81/+271
| | | | | |
| * | | | | Mostly working for mapBrad Kotsopoulos2018-12-041-46/+122
| | | | | |
| * | | | | Add set/unordered_set that extend AbstractSetBrad Kotsopoulos2018-11-302-8/+292
| | | | | |
| * | | | | Add unordered_{set|map} and set to JavaBrad Kotsopoulos2018-11-233-0/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add test suite Add to makefile Revert set change Fix java map test Fix some of the tests Fix unordered map test
* | | | | | Re-organise some generate Python code for method creation and docstring supportWilliam S Fulton2019-02-103-38/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix ‘PyMethodDef* SWIG_PythonGetProxyDoc(const char*)’ declared ‘static’ but never defined [-Wunused-function] Closes #1448
* | | | | | Remove PHP-specific avoidance of uninitialised variableOlly Betts2019-02-111-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code is no longer needed since ebd37155a81fd0c9504522e43cbdaf38312a132c addressed this more generically.
* | | | | | [php] Fix typemap indentation (cosmetic)Olly Betts2019-02-111-2/+2
| |/ / / / |/| | | |
* | | | | Merge branch 'ZackerySpytz-OCaml-exception-improvements'William S Fulton2019-02-095-17/+105
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-exception-improvements: [OCaml] Some exception improvements
| * | | | | [OCaml] Some exception improvementsZackery Spytz2019-02-075-17/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The OCaml module's exception handling code was poorly designed, gave confusing exception messages, and was vulnerable to buffer overflows. The OCaml module's SWIG_exception_() was adding a useless newline to the end of the exception message. In some cases, the integer value of f.e. SWIG_TypeError was being added to the exception message. The unneeded else in the OCaml module's SWIG_contract_assert() macro was causing -Wmisleading-indentation warnings. The OCaml module's exception handling code now mirrors that of the Java module. Add Lib/ocaml/std_except.i. Add multiple runtime tests.
* | | | | | Merge branch 'ZackerySpytz-OCaml-director-ctors'William S Fulton2019-02-093-0/+13
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-director-ctors: [OCaml] Fix a bug in the ctors of director classes
| * | | | | | [OCaml] Fix a bug in the ctors of director classesZackery Spytz2019-02-053-0/+13
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a class was given the director feature, it was not possible to use ctors with multiple parameters. Add director_default_runme.ml (it is based on director_default_runme.java).
* | | | | | Merge branch 'ZackerySpytz-OCaml-director_pass_by_value'William S Fulton2019-02-092-53/+34
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-director_pass_by_value: [OCaml] Fix director_pass_by_value [OCaml] Reduce the duplication in typemaps.i
| * | | | | | [OCaml] Fix director_pass_by_valueZackery Spytz2019-02-041-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a directorin typemap for SWIGTYPE. Add director_frob_runme.ml, director_pass_by_value_runme.ml, and director_unroll_runme.ml. This commit fixes most of the director-related warnings in the OCaml test suite. Of the director tests that are currently included in the OCaml test suite, director_basic and director_property are the only ones which give warnings (due to issues with typecheck typemaps).
| * | | | | | [OCaml] Reduce the duplication in typemaps.iZackery Spytz2019-02-042-53/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a SWIG_Ocaml_ptr_to_val() function to reduce some of the duplication in the OCaml typemaps. Remove unused, useless `ArrayCarrier *` typemaps.
* | | | | | | Merge branch 'ZackerySpytz-OCaml-cache-caml_named_value'William S Fulton2019-02-091-10/+11
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-cache-caml_named_value: [OCaml] Cache the result of caml_named_value() in some cases
| * | | | | | | [OCaml] Cache the result of caml_named_value() in some casesZackery Spytz2019-02-031-10/+11
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The result of caml_named_value() can be cached for (slightly) improved performance. This is mentioned in the OCaml reference manual. https://caml.inria.fr/pub/docs/manual-ocaml/intfc.html#sec453 In addition, fix incorrect use of CAMLreturn() in caml_ptr_val_internal().
* | | | | | | [PHP] Fix access to already released memoryOlly Betts2019-02-092-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix access to already released memory during PHP module shutdown, which often didn't cause visible problems, but could result in segmentation faults, bus errors, etc. Fixes #1170, reported by Jitka Plesníková.
* | | | | | | [php] Fix SWIG_ZEND_CONSTANT_SET_FLAGS for PHP < 7.3Olly Betts2019-02-081-1/+1
| | | | | | |
* | | | | | | [php] Fix function constants for PHP 7.3Olly Betts2019-02-082-2/+8
| |/ / / / / |/| | | | | | | | | | | | | | | | | The code we were generating no longer compiled.
* | | | | | Disable Chicken target languageWilliam S Fulton2019-02-053-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up to disable target languages that have been neglected/not functional. Target language be fully deleted in SWIG 4.1 unless a new maintainer brings it up to an acceptable status (experimental or supported). Issue #1447
* | | | | | Disable Pike target languageWilliam S Fulton2019-02-051-1/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up to disable target languages that have been neglected/not functional. Target language be fully deleted in SWIG 4.1 unless a new maintainer brings it up to an acceptable status (experimental or supported). Issue #1447
* | | | | Minor refactoring of generated Python codeWilliam S Fulton2019-02-031-23/+11
| | | | |
* | | | | Merge branch 'ahnolds-autodoc'William S Fulton2019-02-021-0/+36
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ahnolds-autodoc: Apparently nicely lining things up violates pep8, so don't try Don't use bool in the generated files for C compatability Properly handle destructors as methods for autodoc and fix some stray newlines Fixing a bug where the cached doxygen docstring could be deleted while still in use, causing swig to segfault Fixing docstrings for variables and static functions for consistency Fixes so that fastproxy and autodoc work correctly with both low-level C API and high-level Python Shadow API Updating the changelog Also check documentation on the low-level API Fix a bug where anonymous arguments were misnumbered when used in constructors Fixing python docstring handling for -fastproxy Conflicts: CHANGES.current
| * | | | | Fixes so that fastproxy and autodoc work correctly with both low-level C API ↵Alec Woods2019-01-261-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | and high-level Python Shadow API
* | | | | | Merge branch 'ZackerySpytz-OCaml-char_binary-test'William S Fulton2019-01-311-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-char_binary-test: [OCaml] Fix the char_binary test for OCaml
| * | | | | | [OCaml] Fix the char_binary test for OCamlZackery Spytz2019-01-291-0/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add %typemap(in) (char *STRING, size_t LENGTH). Fix warnings in char_binary.i. ./../char_binary.i:7: Warning 453: Can't apply (char *STRING,size_t LENGTH). No typemaps are defined. ./../char_binary.i:8: Warning 453: Can't apply (char *STRING,size_t LENGTH). No typemaps are defined. Add a runtime test (it is based on the Python and Go char_binary runtime tests).
* | | | | | Merge branch 'ZackerySpytz-OCaml-define-CAML_NAME_SPACE'William S Fulton2019-01-314-4/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-define-CAML_NAME_SPACE: [OCaml] Define CAML_NAME_SPACE before including caml/ headers
| * | | | | | [OCaml] Define CAML_NAME_SPACE before including caml/ headersZackery Spytz2019-01-284-4/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this macro is not defined, the caml/ headers will define macros without the caml_ prefix as aliases for some functions in the OCaml C API. For example, caml/compatibility.h defines `invalid_argument` as an alias for `caml_invalid_argument` when CAML_NAME_SPACE is not defined, which breaks code that uses std::invalid_argument. Rename some functions that were missed in 05589508a6aca2866210dfda27e79d12abd8f5f6.
* | | | | | Merge branch 'ZackerySpytz-OCaml-eliminate-wno-write-strings'William S Fulton2019-01-311-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-eliminate-wno-write-strings: [OCaml] Remove support for OCaml versions < 3.12.0 [OCaml] Fix toplevel creation for ocamlmktop versions >= 4.04.0 [OCaml] Eliminate use of -Wno-write-strings
| * | | | | | [OCaml] Eliminate use of -Wno-write-stringsZackery Spytz2019-01-241-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't convert string literals to char * in the strings_test example. In constantWrapper(), use SwigType_str() instead of SwigType_lstr() in order to keep const qualifiers.
* | | | | | [OCaml] Fix %allowexceptionZackery Spytz2019-01-225-35/+3
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OCaml's variableWrapper() wasn't calling emit_action_code() for in/out typemaps, which meant that %allowexception was being ignored. In addition, remove all comments in the typemaps in Lib/ocaml. In the case of the allowexcept test, one of the typemap comments caused compilation to fail because it became nested within another comment in an %exception block. Re-enable the allowexcept test. Add allowexcept_runme.ml.
* | | | | Merge branch 'ZackerySpytz-OCaml-overload_numeric-warnings'William S Fulton2019-01-221-8/+13
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * ZackerySpytz-OCaml-overload_numeric-warnings: [OCaml] Some %typecheck precedence tweaks
| * | | | | [OCaml] Some %typecheck precedence tweaksZackery Spytz2019-01-211-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix warnings in overload_numeric.i. ./../overload_numeric.i:36: Warning 509: Overloaded method Nums::over(short) effectively ignored, ./../overload_numeric.i:33: Warning 509: as it is shadowed by Nums::over(signed char). ./../overload_numeric.i:39: Warning 509: Overloaded method Nums::over(int) effectively ignored, ./../overload_numeric.i:33: Warning 509: as it is shadowed by Nums::over(signed char). Add overload_numeric_runme.ml.
* | | | | | Fix compiler warnings when SWIGRUNTIME_DEBUG is definedZackery Spytz2019-01-191-3/+3
|/ / / / /
* | | | | [OCaml] Remove the last remnants of libswigocamlZackery Spytz2019-01-184-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Parts of it were removed in 79785d403c80eb6c10b23668b07b106251373c1b Remove the oc_bool type.