aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-01-16Update errors expected resultsWilliam S Fulton
2014-01-16Fix PHP compilation error in ZTS mode (64 bit windows) due to TSRMLS_FETCH() ↵William S Fulton
expansion
2014-01-14Merge branch 'diorcety-typedef-prefix'William S Fulton
* diorcety-typedef-prefix: Modify typedef_typedef testcase to work for all languages Add test for checking prefix resolving in typedef Typedef typedef prefix test for templates Resolve prefix when resolving typedef Conflicts: CHANGES.current
2014-01-14Modify typedef_typedef testcase to work for all languagesWilliam S Fulton
Add CHANGES note Closes #112.
2014-01-14Add test for checking prefix resolving in typedefYann Diorcet
2014-01-14Typedef typedef prefix test for templatesWilliam S Fulton
As given in Diorcet Yann's example in issue #50
2014-01-13octave: update support to Octave version 3.8.0Karl Wette
2014-01-12Resolve prefix when resolving typedefYann Diorcet
2014-01-11Remove -nonaturalvar and nonaturalvar option in %moduleWilliam S Fulton
These didn't work, were not documented and don't seem necessary
2014-01-11Add testcase for %attributestring on shared_ptrWilliam S Fulton
2014-01-11%naturalvar feature fixes and documentationWilliam S Fulton
Fix and document the naturalvar feature override behaviour - the naturalvar feature attached to a variable name has precedence over the naturalvar feature attached to the variable's type. The overriding was not working when turning the feature off on the variable's name. Fix so that any use of the naturalvar feature will override the global setting. Previously when set globally by -naturalvar or %module(naturalvar=1), use of the naturalvar feature was not always honoured.
2014-01-11Template private assignment testcaseWilliam S Fulton
This is broken and needs fixing at some point. Problem reported by Pierre-Henri Wuillemin on swig-devel mailing list.
2014-01-11Merge pull request #126 from vadz/warn-fixWilliam S Fulton
Work around gcc warning about function pointers conversions.
2014-01-10Work around gcc warning about function pointers conversions.Vadim Zeitlin
Work around harmless (at least under POSIX systems where function pointers are guaranteed to have the same representation as object pointers) but annoying warnings given by gcc when converting between function and object pointers, e.g. Source/DOH/fio.c: In function 'DohEncoding': Source/DOH/fio.c:51: warning: ISO C forbids conversion of function pointer to object pointer type Source/DOH/fio.c: In function 'encode': Source/DOH/fio.c:75: warning: ISO C forbids conversion of object pointer to function pointer type Source/DOH/base.c: In function 'DohCall': Source/DOH/base.c:952: warning: ISO C forbids conversion of object pointer to function pointer type Use an extra level of pointer indirection to avoid them.
2014-01-06[Go] Fix bug that broke using directors from a thread not created by Go.Ian Lance Taylor
2014-01-06Remove executable bit from various test-suite runme filesOlly Betts
2014-01-06PHP: document byref typemap attributeMiklos Vajna
2014-01-03Add C++11 virtual specifier sequences (final and/or override on methods)William S Fulton
Parsing support added. The final and override information is not used or added to the parse tree atm.
2014-01-03auto_ptr deprecation warning suppressionWilliam S Fulton
2013-12-26Merge pull request #123 from wkalinin/test2Vladimir Kalinin
fixed enums & enum values language symbol table namespace fixed skipping of %templates in %extend if they are in the wrong scope
2013-12-24Add changes entry for python imports/packages changesWilliam S Fulton
2013-12-24Python imports documentation editsWilliam S Fulton
2013-12-24Documentation for improved python import optionPaweł Tomulik
Docs for SFbug1297 patch (PR #7) closes #111
2013-12-24Python import code beautifyWilliam S Fulton
2013-12-24Fixed SF bug #1297 (Python imports)Paweł Tomulik
This changeset resolves several issues related to python imports. For example, it's possible now to import modules having same module names, but belonging to different packages. From the user's viewpoint, this patch gives a little bit more control on import directives generated by swig. The user may choose to use relative or absolute imports (docs are provided in separate PR). Some details: - we (still) generate import directives in form 'import a.b.c' which corresponds to absolute imports in python3 and (the only available) ambiguous one in python2. - added -relativeimport option to use explicit relative import syntax (python3), Tests are under Examples/python, these are in fact regression tests but with the current swig testing framework it seems to be impossible to put appropriate tests under test-suite. Closes #7
2013-12-24additional check for template type, to handle constructors correctlyVladimir Kalinin
2013-12-23Don't accept strings too long to fit in char[N] with trailing NUL.Vadim Zeitlin
It was previously possible to assign "hello" to a variable backed by char[5] storage in C, and the array contained the correct character data but without the trailing NUL, which was unexpected in C. This is not allowed any more, only "helo" can fit into a char[5] now and anything else fails the type check, just as it already happened for the longer strings before. Closes #122
2013-12-23Change the length of strings created from fixed-size buffers.Vadim Zeitlin
Use the usual C rule for NUL-terminated strings instead of discarding all the trailing NUL characters. This was unexpected (as buffers in C code are not necessarily always padded with NULs to their full length) and also inconsistent among languages as this was only done for those of them using typemaps/strings.swg but not for C# or Java, for example, which terminated the string at the first NUL even before this change. Notice that this patch couldn't use strlen() or wcslen() with possibly not NUL-terminated strings, so we had to add [our own equivalents of] strnlen() and wcsnlen() and use them instead. This required adding yet another parameter to string typemap macros, so update the example using them accordingly too.
2013-12-23Relax Java preproc_line_file unit test to pass in a separate build directory.Vadim Zeitlin
Exact paths comparison doesn't work when SWIG is built in a directory different from the source one, so check whether the path just ends with the expected path components instead. This allows all Java tests to pass in this build configuration. closes #115
2013-12-23Error out attempting to use directors without -c++William S Fulton
Remove redundant #ifdef __cplusplus markers in director.swg
2013-12-23Beautify director.swg filesWilliam S Fulton
Also some comment corrections for Perl
2013-12-23Beautify director outputWilliam S Fulton
2013-12-23Perl directors changes entry added and minor tidy upWilliam S Fulton
2013-12-23Merge branch 'perl5-directors-minimal' of https://github.com/talby-/swig ↵William S Fulton
into talby--perl5-directors-minimal * 'perl5-directors-minimal' of https://github.com/talby-/swig: try adding travis ci to this branch ran "beautify-file" make target over perl5.cxx patch hunks and rewrote callback and extend examples in the style of existing examples prefer polymorphism on existing destructor over custom destructor method fix string mangled by tidy eliminate dead director code and convert remaining blocks mitigate ConvertPtr director cost when directors are not enabled steals python director docs and adapts to perl5 adds "callback" and "extend" examples don't forget the most important part steals python directors and adapts to perl5
2013-12-22C++11 support for new versions of erase and insert in the STL containers.William S Fulton
The erase and insert methods in the containers use const_iterator instead of iterator in C++11. There are times when the methods wrapped must match the parameters exactly. Specifically when full type information for template types is missing or SWIG fails to look up the type correctly, for example: %include <std_vector.i> typedef float Real; %template(RealVector) std::vector<Real>; SWIG does not find std::vector<Real>::iterator because %template using typedefs does not always work and so SWIG doesn't know if the type is copyable and so uses SwigValueWrapper<iterator> which does not support conversion to another type (const_iterator). This resulted in compilation errors when using the C++11 version of the containers. Closes #73
2013-12-22C++11 tests re-organise - gcc-4.8 minimum expected for all to passWilliam S Fulton
2013-12-22Suppress gcc-4.9 auto_ptr deprecation in testWilliam S Fulton
2013-12-20Use RUNME consistently in examples makefileWilliam S Fulton
2013-12-20In Examples/Makefile.in, compile and link the program in go andIan Lance Taylor
go_cpp, rather than in go_run. This permits eliminating go_run_cpp.
2013-12-20fixed enums & enum values language symbol table namespaceVladimir Kalinin
fixed skipping of %templates in %extend if they are in the wrong scope
2013-12-19Error test-suite updated for nested changesWilliam S Fulton
WARN_DEPRECATED_NESTED_WORKAROUND test added WARN_PARSE_NAMED_NESTED_CLASS test removed
2013-12-19Make save_value non-copyableWilliam S Fulton
2013-12-19fixed %template within %extend, test addedVladimir Kalinin
fixed language symbol table nested classes name separator, test added fixed %feature "flatnested" working with %extend fixed Swig_offset_string for empty string added simple template to save/restore values in current scope (readability reasons)
2013-12-18Go: Don't require that Go environment variables be set when runningIan Lance Taylor
examples or testsuite.
2013-12-17Remove Go -longsize option.Ian Lance Taylor
2013-12-17[Go] Add -go-pkgpath option.Ian Lance Taylor
2013-12-17Language::addSymbol fix, to handle classes correctlyVladimir Kalinin
2013-12-16Update for Go 1.2 release. Add support for linking SWIG code directlyIan Lance Taylor
into executable, rather than using a shared library.
2013-12-16Revert template_nested_typemaps to what it was before nested mergeWilliam S Fulton
The breaks were fixed in the last couple of commits
2013-12-16properly disabled nested %template declared in other scopesVladimir Kalinin