Commit graph

18,953 commits

Author SHA1 Message Date
William S Fulton
6840996dba Fix wrapping D constants using %dmanifestconst 2016-03-12 11:26:17 +00:00
William S Fulton
539aca58a5 Php fix for enum value of '\0' 2016-03-12 00:26:49 +00: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
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
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
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
Alec Cooper
79371b9a79 Adding information about PyInt/PyLong conversion updates to CHANGES.current 2015-12-23 19:06:50 -05:00
Alec Cooper
2f8a7b822d 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
2015-12-23 19:04:27 -05:00
Alec Cooper
ba01182ec4 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-23 19:04:19 -05:00
Petre Eftime
0a07cd4c30 Prevent redefinition warnings when compiling with SWIG<module> defined
Signed-off-by: Petre Eftime <petre.p.eftime@intel.com>
2015-12-22 14:33:21 +02:00