Commit graph

18,957 commits

Author SHA1 Message Date
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
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
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
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
Alec Cooper
bec00500d6 Handle weak linking on OSX
If symbol is not defined at link time (even if it's weak/weak_import), the
linker must explicitly be told that's ok.
2016-01-23 16:16:00 -05:00
Ben Webb
2a5bbb6018 Qualify use of "__builtin__.Exception" class.
It is possible that the module we're wrapping defines an Exception
class. This will confuse code that uses an unqualified "Exception"
class (e.g. "try: ... except Exception") since it now won't match
the Python builtin Exception. Fix this by explicitly using
the class from the __builtin__ module ("builtins" in Python 3).
2016-01-11 21:43:10 -08:00
Olly Betts
584b328239 Fix minor memory leak in Python module docstring handling
Noted in #582 by aurelj.
2016-01-12 13:49:55 +13:00
Olly Betts
f910607e26 Fix typo: "neccessary" -> "necessary" 2016-01-12 13:37:39 +13:00
Olly Betts
22b72d5da3 [Javascript] Look for "nodejs" as well as "node", as it's packaged
as the former on Debian.
2016-01-12 09:33:39 +13:00
Olly Betts
b3bedc210c [Javascript] For v8 >= 4.3.0, use V8_MAJOR_VERSION.
Fixes https://github.com/swig/swig/issues/561.
2016-01-12 09:33:13 +13:00
William S Fulton
8b9a6d3c24 Merge branch 'aurelj-master'
* aurelj-master:
  Alternative solution for Ruby unbalanced braces
  Ruby fix unbalanced braces causing issue with the YARD parser
2016-01-10 20:19:55 +00:00
William S Fulton
2d094d7d9f Alternative solution for Ruby unbalanced braces 2016-01-10 20:19:35 +00:00
William S Fulton
58550acc43 Add changes entry for ptrdiff_t and size_t improvements 2016-01-10 17:35:41 +00:00
William S Fulton
575b4e58e5 Merge branch 'ahnolds-Win64_ptrdiff_t'
* ahnolds-Win64_ptrdiff_t:
  Adding required define at beginning
  Unit tests for ptrdiff_t/size_t max/min in Python
  Python2 build on x64 should no longer fail
  Don't use long long if it isn't available
  Add support for ptrdiff_t and size_t == long long
2016-01-10 17:30:57 +00:00
Aurelien Jacobs
982b14370f Ruby fix unbalanced braces causing issue with the YARD parser 2016-01-09 21:14:59 +01:00
Alec Cooper
1875ff9002 Adding required define at beginning 2016-01-09 10:41:24 -05:00
William S Fulton
c6519f7c1a Merge pull request #580 from ismail/ppc-fix
Fix test failure on PPC{64} where the char is unsigned by default
2016-01-09 11:04:15 +00:00
İsmail Dönmez
b1f45053bb Fix test failure on PPC{64} where the char is unsigned by default 2016-01-08 12:00:03 +02:00
Alec Cooper
fc8e76544c Unit tests for ptrdiff_t/size_t max/min in Python 2016-01-06 17:45:21 -05:00
Alec Cooper
12b62a562d Python2 build on x64 should no longer fail 2016-01-06 16:52:37 -05:00
Alec Cooper
4e2fc7d115 Don't use long long if it isn't available
Adds preprocessor checks to avoid defining functions that use long long if it isn't available
Effects the following languages: javascript, octave, perl, python, r, ruby, tcl
2016-01-06 16:52:37 -05:00
Alec Cooper
d2ab7e8bad Add support for ptrdiff_t and size_t == long long
New fragment to check if long long is available using LLONG_MAX
AsVal and From functions for ptrdiff_t and size_t now use long long if available and sizeof(ptrdiff_t) > sizeof(long)
2016-01-06 16:52:37 -05:00
William S Fulton
5e141dedce Octave tests on Travis now working reliably
There is more memory (4GB) on new infra and running with -j2 instead of
-j3 is less demanding on the memory. I think this has solved the gcc
internal errors as they were probably due to lack of memory.
2016-01-05 20:35:31 +00:00
William S Fulton
a8cf1eddf8 Bump version to 3.0.9 2015-12-31 18:04:16 +00:00
William S Fulton
719c7d532c htmldoc patch no longer needed since pdf docs are now generated by wkhtmltopdf 2015-12-31 18:00:39 +00:00
William S Fulton
6b4d9d7bfa Add check that mingw gcc is installed when making release 2015-12-31 17:53:45 +00:00
William S Fulton
ec91de75b7 swig-3.0.8 release update 2015-12-30 22:23:47 +00:00
William S Fulton
0aad186ea2 changes file update for the pdf documentation 2015-12-30 22:23:47 +00:00
William S Fulton
28e1a64dcb html docs update 2015-12-30 22:22:33 +00:00
William S Fulton
58279a4627 HTML pdf doc generation fixes
wkhtmltopdf isn't using a fixed-width font for CSS font-family:monospace.
Nor is it using one for <PRE> <CODE> or <TT> elements.
Add in some Courier fonts for it to use - note that Courier 10 Pitch is
installed on Ubuntu by default. Note these fonts need to be installed on
the system that generates the pdf documentation.

Previously the htmldoc stylesheet was kept in place and the SWIG
stylesheet was prepended to it inline in SWIGDocumentation.html.
Now the SWIG stylesheet has been amended with most of the htmldoc
stylesheet changes and completely replaced after htmldoc is run.
2015-12-30 22:22:33 +00:00
William S Fulton
f278fdac59 Replace pdf documentation generation tool with wkhtmltopdf from htmldoc
htmldoc does not seem to be generating pdfs properly any more (on Ubuntu
14.04). It has been replaced with wkhtmltopdf which is better as it
supports css and so the patched version of htmldoc with the simple css
support is no longer required. wkhtmldoc does have have a few problems
though which have been addressed in prior commits:

- <H1><a name="X"></a>Text</H1> style links need changing to:
  <H1><a name="X">Text</a></H1>
- tabs in <pre> elements should be expanded to 8 spaces by default, but
  are expanded to just one space and css expand-tab is not recognised.

The <pre> <tt> <code> elements do not always select a fixed-width font -
try installing a Courier font.
2015-12-30 22:22:33 +00:00
William S Fulton
3763beb489 Replace tabs with spaces in html docs
wkhtmltopdf is not expanding tabs within <pre> elements to 8 spaces as it
should. Workaround the problem by converting all tabs to an appropriate
number of spaces.
2015-12-30 22:22:33 +00:00
William S Fulton
4e67d5c7a8 Minor html fixes 2015-12-30 22:22:33 +00:00
William S Fulton
870b0f1505 html fixes 2015-12-30 22:22:32 +00:00
William S Fulton
925b2a336f HTML fixes for documentation - add meta tag and loose.dtd 2015-12-30 22:22:32 +00:00
William S Fulton
fc68136880 link fixes 2015-12-30 22:22:32 +00:00
William S Fulton
019bdf9067 More link fixes in the docs 2015-12-30 22:22:32 +00:00
William S Fulton
41a02723e6 Remove broken link in docs 2015-12-30 22:22:32 +00:00
William S Fulton
cacb36bedb Docs - remove html tags from headings 2015-12-30 22:22:32 +00:00
William S Fulton
8288ac15a0 Correct links in html documentation using new version of makechap.py
Corrects position of heading text within A and H1, H2, ... elements.
2015-12-30 22:22:32 +00:00
William S Fulton
abe42bbb16 Correct html documentation linking generated by makechap.py script
Corrects position of heading text to be as mentioned in the 4.01
transitional standard, see http://www.w3.org/TR/html4/struct/links.html#h-12.1.1.
For example, changes

<H1><a name="Introduction"></a>2 Introduction</H1>
to
<H1><a name="Introduction">2 Introduction</a></H1>

The changes will convert the old incorrect usage should an html file
using the old approach be added in the future.
2015-12-30 22:22:31 +00:00
William S Fulton
ee867a6143 Merge branch 'ahnolds-Python3Int'
* ahnolds-Python3Int:
  Adding information about PyInt/PyLong conversion updates to CHANGES.current
  Adding unit tests for Python primitive type conversions Adding unit tests for operator overloading to determine which overload was chosen   Allow TypeError when testing overloads since it is generated instead   of NotImplementedError when swig is run with -O or -fastdispatch
  Fixing Python primitive conversions Don't mistakenly treat PyLong objects as PyInt objects in Python3.   This resolves issues of large integers being incorrectly treated as -1 while also having   an OverflowError set internally for converting PyLong->long and PyLong->double Conversions from PyLong to long, unsigned long, long long, and unsigned long long now raise OverflowError rather than TypeError when given an out of range value. Removing unnecessary check for PyLong_AsLong when converting PyLong->unsigned long since the call to PyLong_AsUnsignedLong will have covered this case.
2015-12-24 08:52:50 +00:00