Commit graph

19,403 commits

Author SHA1 Message Date
William S Fulton
f78b9264b8 Warning fixes 2016-02-06 16:34:33 +00:00
William S Fulton
7379ea7848 Rename test functions in multiple_inheritance_abstract testcase
new names are just more friendly for analysing the test
2016-02-06 16:34:33 +00:00
William S Fulton
a7370b7bc0 Formatting fixes in generated code for interface feature 2016-02-06 16:34:24 +00:00
William S Fulton
4bbb1c915a Merge branch 'pjohangustavsson-patch-1'
* pjohangustavsson-patch-1:
  Add C# -namespace symbol fix into CHANGES
  Update csharp.cxx
2016-02-06 09:08:36 +00:00
William S Fulton
0cf59ff442 Add C# -namespace symbol fix into CHANGES 2016-02-06 09:07:23 +00:00
Johan Gustavsson
1458326f4c Update csharp.cxx
When people use the -namespace option, they often intend for the input to swig to wrap a particular namespace in a single module. This option should also have an effect on how C++ wrapper function names are mangled, and not just the C# proxy code.
2016-02-06 08:59:50 +00:00
William S Fulton
bb01ed3286 Merge branch 'ahnolds-classic_python'
* ahnolds-classic_python:
  Updating changelog and marking -classic as passing CI
  Support checking names of old-style classic classes
  Don't claim to new-style support in classic mode
  Clean up setting _object
  Removing __swig_getmethods__ for static methods
  Support python(pre|ap)pend on static methods in classic mode
  Add support for static methods in classic mode
  When possible, use PyInt rather than PyLong
2016-02-06 08:01:08 +00:00
William S Fulton
5c758f6972 Merge branch 'ahnolds-pyunicode_wstrings'
* ahnolds-pyunicode_wstrings:
  Documentation on Python Bytes/Unicode distinction
  Tests for Python Bytes/Unicode distinction
  Add support for Python Bytes/Unicode distinction
2016-02-06 07:57:30 +00:00
William S Fulton
439f049115 Merge pull request #606 from ahnolds/ruby2.3
Travis uses rvm, use it to install ruby 2.3.0
2016-02-06 07:56:33 +00:00
Alec Cooper
b83aa57a54 Travis uses rvm, use it to install ruby 2.3.0 2016-02-05 22:00:41 -05:00
William S Fulton
a16a818523 Cosmetic spacing changes in test case 2016-02-05 20:20:39 +00:00
William S Fulton
abf39433e3 interface feature typemap corrections to handle NULL pointers 2016-02-05 19:28:29 +00:00
William S Fulton
d06f2c9e92 Ruby 2.3 Travis tests requires Ubuntu Trusty 2016-02-05 06:56:49 +00:00
Alec Cooper
ba40c4a256 Documentation on Python Bytes/Unicode distinction 2016-02-04 21:07:40 -05:00
Alec Cooper
17a4143dd0 Tests for Python Bytes/Unicode distinction 2016-02-04 21:07:40 -05:00
Alec Cooper
33edfa4a62 Add support for Python Bytes/Unicode distinction 2016-02-04 20:16:41 -05:00
Alec Cooper
e67b9d00a4 Updating changelog and marking -classic as passing CI 2016-02-04 15:29:13 -05:00
Alec Cooper
acbe04b548 Support checking names of old-style classic classes 2016-02-04 15:27:54 -05:00
Alec Cooper
506a5bc8e6 Don't claim to new-style support in classic mode 2016-02-04 15:27:54 -05:00
Alec Cooper
475d03f195 Clean up setting _object
Don't bother setting _object in modern mode since it isn't used
Catch __builtin__.Exception rather than AttributeError since the check for
object hasn't been through something that would raise an AttributeError since
3d8ddfc4 in 2008
2016-02-04 15:27:54 -05:00
Alec Cooper
866429d0f7 Removing __swig_getmethods__ for static methods
Static methods will always be found by normal attribute lookup, so there's no
need to check for them during __getattr__ (aka _swig_getattr_nondynamic)
2016-02-04 15:27:54 -05:00
Alec Cooper
b45164e098 Support python(pre|ap)pend on static methods in classic mode
Adding a test that covers this case to the python_append test-suite
Note: staticmethod function has been available since Python 2.2
2016-02-04 15:27:54 -05:00
Alec Cooper
d91064aa6a Add support for static methods in classic mode 2016-02-04 15:27:54 -05:00
Alec Cooper
2e1595a4d0 When possible, use PyInt rather than PyLong
This is especially important for the unsigned long typemap, which is used by
the size_t typemap, which is in turn used for lengths of std containers etc.
In Python2, len requires old-style classes' __len__ method return a PyIntObject
rather than a PyLongObject, so this supports that requirement.
2016-02-04 15:27:54 -05:00
William S Fulton
8dcbbe8b6c Merge branch 'travis-ruby2.3'
* travis-ruby2.3:
  Disable tests broken in python 2.4 and 2.5
  Remove Travis 'gem pristine --all'
  Fix Travis Ruby gem pristine warnings
  Improve Ruby configure detection when multiple versions installed
  Use set -e in Travis scripts to ensure the scripts fail on error
  Travis: ensure the requested language version is being tested
  Add ruby-2.3 testing to Travis
2016-02-04 18:58:14 +00:00
William S Fulton
26d0b7f5b9 Disable tests broken in python 2.4 and 2.5
These tests were added in 2f8a7b82 and fc8e7654 in #572 and #573
but a change from a few months ago meant that the requested version of
Python was not actually being used during testing when these were added.
2016-02-04 08:36:58 +00:00
William S Fulton
b5b89c1294 Remove Travis 'gem pristine --all'
We'll have to live with the gem warnings
2016-02-04 08:36:26 +00:00
William S Fulton
a37fcb8f82 Fix Travis Ruby gem pristine warnings
Suppresses these for each example/test-suite:
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nokogiri-1.6.6.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.6.2
2016-02-04 08:35:41 +00:00
William S Fulton
271ef9ab5c Improve Ruby configure detection when multiple versions installed 2016-02-04 08:35:41 +00:00
William S Fulton
dbdef93a0c Use set -e in Travis scripts to ensure the scripts fail on error 2016-02-04 08:35:07 +00:00
William S Fulton
97c138dbd8 Travis: ensure the requested language version is being tested
The various Python versions were not being tested
2016-02-04 08:32:30 +00:00
William S Fulton
42c140053e Add ruby-2.3 testing to Travis 2016-02-04 08:09:28 +00:00
Olly Betts
33c17b6d5e configure.ac: Stop probing for Python versions < 2.0 2016-02-03 12:06:05 +13:00
William S Fulton
2817e02e35 Merge branch 'ahnolds-clean_osx_go'
* ahnolds-clean_osx_go:
  Go test-suite should now work on OSX
  Don't write empty swigargs structs
  Fail if nocgo version fails
  Handle weak linking on OSX

Conflicts:
	CHANGES.current
2016-01-28 20:03:54 +00:00
Ian Lance Taylor
15b75a74c5 [Go] Ensure structs are properly packed between gc and GCC/clang.
From https://github.com/swig/swig/pull/262.
2016-01-27 15:51:13 -08:00
William S Fulton
7339de974d Fix static const char member variables wrappers with %javaconst(1).
This fixes the case when an integer is used as the initializer, such as:

  struct W { static const char w = 100; };

The "valuetype" attribute has been added to the "cdecl" Node which enables
us to distinguish the declared type from the type of the initializer.
2016-01-27 09:01:00 +00:00
William S Fulton
95eb6649ea Expand char testing in enums and %constant 2016-01-27 08:47:37 +00:00
Olly Betts
344d10935e Whitespace cleanup 2016-01-27 19:05:03 +13:00
Olly Betts
33da19d2ea Fix comment typo 2016-01-27 19:04:18 +13:00
Olly Betts
72691e5a49 Clean up Python embed.i
Remove duplicate (aside from comment formatting) embed15.i.

Remove references to Python 1.5.

Tested and remarkably still works with Python 2.7, so update
documentation and comments to reflect that.
2016-01-27 19:01:49 +13:00
Olly Betts
bfe3adbd0a Remove lingering code for compatibility with Python < 1.6 2016-01-27 15:17:36 +13:00
William S Fulton
246c90e876 Java char changes file update 2016-01-26 20:19:17 +00:00
William S Fulton
83584e504a Java enum and static member variable escaping fix for chars
For example:
  enum X { x = '\1' };
  struct A {
    static const char a = '\n';
  };
2016-01-26 20:18:45 +00:00
William S Fulton
62c34fc9d9 Add tests for enum values and static const member variables chars containing escape sequences 2016-01-26 20:16:47 +00:00
William S Fulton
2ad0e784ab Minor documentation tweak 2016-01-26 19:55:10 +00:00
Alec Cooper
de4b3a4a59 Fixing python attribute lookup
Cleans up patch #232
Fixes misleading error messages from #588

If __getattr__ is called, this means that normal attribute lookup has failed.
  If checking thisown and __swig_getmethods__ fails, then give up and raise
  AttributeError instead of calling the non-existent object.__getattr__.
  Note that in practice the result is essentially the same, since trying to
  access object.__getattr__ fails and raises AttributeError, just with a
  misleading message.
In addition, there's no point in having nondynamic attribute lookup.
2016-01-24 15:40:34 -05:00
William S Fulton
55f303d286 Merge pull request #584 from benmwebb/master
(Python) Qualify use of "__builtin__.Exception" class.
2016-01-23 23:24:34 +00:00
Alec Cooper
3a9f26045e Go test-suite should now work on OSX 2016-01-23 16:19:04 -05:00
Alec Cooper
1e7d3d1eb8 Don't write empty swigargs structs 2016-01-23 16:17:33 -05:00
Alec Cooper
14178be139 Fail if nocgo version fails 2016-01-23 16:17:33 -05:00