Commit graph

17,113 commits

Author SHA1 Message Date
Olly Betts
fcda732437 fix typo 2014-02-17 19:44:20 +13:00
Olly Betts
fcf8180751 Whitespace tweaks 2014-02-17 16:27:39 +13:00
Olly Betts
b761131fec "if (strlen(msg))" -> "if (msg[0])" 2014-02-17 16:26:48 +13:00
Olly Betts
7af8b13ef7 Just call strcmp() rather than strlen() twice plus zend_binary_strcmp() 2014-02-17 16:25:29 +13:00
Olly Betts
052d0057c2 Only call strlen(lc_fname) if we are going to use the result 2014-02-17 16:24:04 +13:00
William S Fulton
d7f91bc47a CHANGES files corrections since 2.0.12 release
A number of fixes committed since 2.0.11 release were intended for the
3.0.0 release were backported to the maintenance-2.0 branch for 2.0.12.
2014-02-16 22:28:57 +00:00
William S Fulton
c7187c6a2d Add release summary for 2.0.12 2014-02-16 22:21:22 +00:00
William S Fulton
0d63e5d07b Merge branch 'maintenance-2.0'
Merge using 'ours' strategy.
2014-02-16 22:19:18 +00:00
William S Fulton
81cc95155e Python 3.3 should now work on Travis 2014-02-16 18:11:17 +00:00
William S Fulton
8cdae65ee9 C++ exception (wrapped by a Python exception as a shadow instance) segfaulting Python
Patch #137
2014-02-16 18:02:30 +00:00
William S Fulton
fb7eb2bedf Merge branch 'master' of github.com:hfalcic/swig into hfalcic-python3-seg-fault
* 'master' of github.com:hfalcic/swig:
  Fix shadow instance creation failure in Python 3
2014-02-16 17:54:28 +00:00
William S Fulton
a161e5ab4e Fix configure for binary specified by --with-python3 2014-02-16 17:30:51 +00:00
William S Fulton
b170788459 Executable bits and shebang fixes 2014-02-16 17:30:41 +00:00
William S Fulton
53a3d12227 Fix typo in .travis.yml 2014-02-16 17:13:54 +00:00
William S Fulton
d73513cb7a Travis testing of Python 3.3 added 2014-02-16 15:40:02 +00:00
William S Fulton
0e4f2dad0f C# examples to use debug flags when using mono interpreter 2014-02-16 15:20:14 +00:00
William S Fulton
60501fe077 Errors tests more visibly show failures as the output of diff
diff -u would be better, but it is not posix, so diff -e is chosen as
second best choice.
2014-02-16 15:16:40 +00:00
William S Fulton
8a5fb0fe7b brew install workarounds on Travis
'brew install guile' does not complete within 10 minutes and the build is then killed by Travis
Suggestion and original script from travis-ci/travis-ci#1961
2014-02-16 09:33:51 +00:00
William S Fulton
bd5c340062 Add <string> fragment
Removes <string> include specifically for clang
Cuts down on duplicate #include <string> in general
2014-02-15 23:30:14 +00:00
William S Fulton
078dbf8d22 Merge branch 'clang_fixes' of github.com:marvingreenberg/swig into marvingreenberg-clang_fixes 2014-02-15 22:37:40 +00:00
William S Fulton
90a9d750c9 Add support for cdata library for Java 2014-02-15 22:13:50 +00:00
William S Fulton
8e6a539d89 Fix crash in php example
Declaration and definition of the add function were different
2014-02-15 19:34:42 +00:00
William S Fulton
cd2e301ea4 Remove nspace feature not yet supported warning 2014-02-15 18:54:28 +00:00
William S Fulton
4ba4a02e93 Fix unused method warning in Octave 2014-02-15 18:36:01 +00:00
William S Fulton
1ff6301fdc Look for jni.h under /usr/lib64/jvm 2014-02-15 15:19:04 +00:00
William S Fulton
85f91128ff Locate tclConfig.sh on 64 bit openSUSE
- /usr/lib64/tclConfig.sh
2014-02-15 14:31:05 +00:00
William S Fulton
44670c2b96 Only enable Ruby testing if Ruby header files are found 2014-02-15 12:01:40 +00:00
Harvey Falcic
c063bb8384 Fix shadow instance creation failure in Python 3
I managed to trace a very nasty Python interpreter segfault to an
allocation failure here. Adding this after the tp_new call:
if (PyErr_Occurred()) {
    PyErr_Print();
}

results in output of 'TypeError: object() takes no parameters', followed
by a segfault that takes down the Python interpeter.

The 'object' constructor doesn't seem to be suitable for instantiating
SWIG shadow instances in this way, so simply use the constructor
function in the PyTypeObject 'tp_new' slot of data->newargs.

The 'if (inst)' check after this doesn't hurt in as much as it prevented
a segfault immediately after this failed allocation, but it doesn't help
much since the null pointer dereference will probably happen sooner or
later anyway.
2014-02-14 19:19:09 -05:00
William S Fulton
49da10eca7 Don't run perl examples/tests if Test::More is not available
The test-suite requires Test::More and the local versions of Test::More
were removed in 1d1e8650a3. They are not
always distributed with Perl, such as Perl 5.16 in Fedora.
2014-02-14 19:00:38 +00:00
William S Fulton
ead4d695f0 Add openSUSE Build Service script
For updating SWIG tarball on OBS to latest from master.
Slightly modified from script received from Karl Kaempf.
2014-02-14 16:24:37 +00:00
Oliver Buchtala
8df34d54d0 Beginning to document v8 integration. 2014-02-14 13:21:52 +01:00
Oliver Buchtala
05146e2aed Documented extending Node.js and Webkit's Javascript engine. 2014-02-14 13:04:21 +01:00
Oliver Buchtala
6847280272 Pandoc filter detects shell blocks when not explicitely given.
Considered as shell if the first character is '$', as in

    $ swig -javascript

Alternatively you can specify the class explicitely:

```shell
swig -javascript
```
2014-02-14 09:02:37 +01:00
Oliver Buchtala
1fca61c59a Conitnued documenting the Javascript module. 2014-02-14 09:00:04 +01:00
Oliver Buchtala
915b709433 Not a real change.
Using a macro to reset JSEmitterStates for the sake of readability.
2014-02-14 00:02:05 +01:00
Oliver Buchtala
8148b017f8 Add a pandoc filter to create compatible html. 2014-02-14 00:01:15 +01:00
Oliver Buchtala
e829ea601f Add Javascript to chapters. 2014-02-14 00:00:37 +01:00
Oliver Buchtala
fa8b350cd6 More Javascript module documentation. 2014-02-14 00:00:12 +01:00
William S Fulton
b83d285793 Compiler flags for Octave tests/examples change
The Octave examples and test-suite were picking up any CXXFLAGS and CPPFLAGS
exported into the environment creating way too many warnings running the
Octave tests if the compiler flags for building SWIG were exported rather
than passed to configure.
2014-02-13 22:05:10 +00:00
Oliver Buchtala
02c55fc52f Next iteration on creating a documentation for the Javascript module. 2014-02-13 21:18:06 +01:00
Oliver Buchtala
1e34ecdc31 Next iteration on creating a documentation for the Javascript module. 2014-02-13 19:25:16 +01:00
Marvin Greenberg
d35af98646 Change to only add -stdlib on OSX versions that have libc++
Use better test for clang
2014-02-12 14:16:43 -05:00
William Fulton
05f92e9fbd Release scripts to release from any branch 2014-02-09 23:19:17 +00:00
William Fulton
1c4213594a Release scripts to release from any branch 2014-02-09 22:09:05 +00:00
William S Fulton
08639f7f24 Add release summary for 2.0.12 2014-02-09 09:34:18 +00:00
Klaus Kämpf
885a700283 Make string encoding explitic
Ruby 2.0 enforces explicit string encodings. The char_constant
testcase fails because the internal (SWIG_FromCharPtrAndSize, using
rb_str_new) defaults to ASCII-8BIT while the test-suite file defaults
to the current shell LOCALE setting.

This patch sets the char_constant_runme.rb encoding to ASCII-8BIT.
2014-02-09 09:27:54 +00:00
William S Fulton
3c5de34573 Turn on Travis testing for maintenance-2.0 branch 2014-02-08 19:13:43 +00:00
William S Fulton
3cd7055895 Temporary workaround for bug in Travis build environment 2014-02-08 17:52:47 +00:00
William S Fulton
7f8cb93092 mkdist script tweaks to support releasing from any named branch 2014-02-08 16:05:17 +00:00
Geert Janssens
e2ff217051 Guile: illustrate bug in non-ascii string handling 2014-02-08 16:01:09 +00:00