Skip to content

Commit b0b8f7b

Browse files
authored
Merge pull request #148 from swig-fortran/merge-upstream
Merge upstream SWIG
2 parents 987578d + 25db683 commit b0b8f7b

File tree

886 files changed

+17080
-8968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

886 files changed

+17080
-8968
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Examples/test-suite/javascript/*/
169169
# OCaml
170170
Examples/test-suite/ocaml/*.ml*
171171
Examples/test-suite/ocaml/*.cm*
172-
Examples/test-suite/ocaml/runme
172+
Examples/test-suite/ocaml/*_runme
173173
!Examples/test-suite/ocaml/*runme.ml
174174
Examples/ocaml/**/example.ml*
175175
Examples/ocaml/**/runme
@@ -201,13 +201,15 @@ Examples/php/*/example.php
201201
/__pycache__/
202202
Examples/test-suite/python/*.py
203203
!Examples/test-suite/python/*runme.py
204-
Examples/python/**/example.py
205204
Examples/python/**/bar.py
206205
Examples/python/**/base.py
206+
Examples/python/**/example.py
207207
Examples/python/**/foo.py
208-
Examples/python/**/spam.py
209208
Examples/python/**/robin.py
209+
Examples/python/**/runme3.py
210+
Examples/python/**/spam.py
210211
Examples/python/import_packages/module_is_init/pkg1/__init__.py
212+
Examples/python/import_packages/namespace_pkg/path4.zip
211213
Examples/python/doxygen/example.html
212214

213215
# R

.travis.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,39 @@ language: cpp
22
matrix:
33
include:
44
- compiler: gcc
5-
env: SWIGLANG=fortran # Note: C++98
5+
env: SWIGLANG=fortran
66
sudo: required
7-
dist: trusty
7+
dist: xenial
88
- os: linux
9-
env: SWIGLANG=fortran SWIG_CC=gcc-5 SWIG_CXX=g++-5 CPP11=1
9+
env: SWIGLANG=fortran CPP11=1
1010
sudo: required
11-
dist: trusty
11+
dist: xenial
1212
- os: linux
13-
env: SWIGLANG=fortran SWIG_CC=gcc-6 SWIG_CXX=g++-6 CPP14=1
13+
env: SWIGLANG=fortran GCC=6 CPP14=1
1414
sudo: required
15-
dist: trusty
15+
dist: xenial
1616
- os: linux
17-
env: SWIGLANG=fortran SWIG_CC=gcc-7 SWIG_CXX=g++-7 CPP14=1 FCSTD=f2008
18-
sudo: required
19-
dist: trusty
20-
- compiler: gcc
21-
os: linux
22-
env: SWIGLANG=java
17+
env: SWIGLANG=fortran GCC=9 CPP17=1 FCSTD=f2003
2318
sudo: required
2419
dist: xenial
20+
2521
before_install:
2622
- date -u
2723
- uname -a
2824
- if test "$TRAVIS_OS_NAME" = "linux"; then lscpu && cat /proc/cpuinfo | grep "model name" && cat /proc/meminfo | grep MemTotal; fi
2925
- if test "$TRAVIS_OS_NAME" = "osx"; then sysctl -a | grep brand_string; fi
30-
# Travis overrides CC environment with compiler predefined values
31-
- if test -n "$SWIG_CC"; then export CC="$SWIG_CC"; fi
32-
- if test -n "$SWIG_CXX"; then export CXX="$SWIG_CXX"; fi
26+
# Travis overrides CC environment with compiler predefined values
27+
- if test -n "$GCC"; then export CC="gcc-$GCC" && export CXX="g++-$GCC"; fi
3328
install:
3429
- if test "$TRAVIS_OS_NAME" = "linux"; then source Tools/travis-linux-install.sh; fi
3530
- if test "$TRAVIS_OS_NAME" = "osx"; then source Tools/travis-osx-install.sh; fi
36-
- if test -n "$CPP11"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++11 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++11; fi
37-
- if test -n "$CPP14"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++14 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++14; fi
38-
- if test -n "$CPP17"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++17 -Wall -Wextra" "CFLAGS=-std=c17 -Wall -Wextra") && export CSTD=c17 && export CPPSTD=c++17; fi
39-
- ls -la $(which $CC)
40-
- ls -la $(which $CXX)
41-
- $CC --version
42-
- $CXX --version
31+
- ls -la $(which $CC) $(which $CXX) && $CC --version && $CXX --version
4332
- if test -n "$FC"; then $FC --version; fi
4433
script:
4534
- echo 'Configuring...' && echo -en 'travis_fold:start:script.1\\r'
35+
- if test -n "$CPP11"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++11 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++11; fi
36+
- if test -n "$CPP14"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++14 -Wall -Wextra" "CFLAGS=-std=c11 -Wall -Wextra") && export CSTD=c11 && export CPPSTD=c++14; fi
37+
- if test -n "$CPP17"; then CONFIGOPTS+=(--enable-cpp11-testing --without-maximum-compile-warnings "CXXFLAGS=-std=c++17 -Wall -Wextra" "CFLAGS=-std=c17 -Wall -Wextra") && export CSTD=c17 && export CPPSTD=c++17; fi
4638
- if test -n "$SWIGLANG"; then CONFIGOPTS+=(--without-alllang --with-$WITHLANG); fi
4739
- echo "${CONFIGOPTS[@]}"
4840
- ./autogen.sh && mkdir -p build/build && cd build/build && ../../configure "${CONFIGOPTS[@]}"

ANNOUNCE

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
*** ANNOUNCE: SWIG 4.0.0 (in progress) ***
1+
*** ANNOUNCE: SWIG 4.0.2 (in progress) ***
22

33
http://www.swig.org
44

5-
We're pleased to announce SWIG-4.0.0, the latest SWIG release.
5+
We're pleased to announce SWIG-4.0.2, the latest SWIG release.
66

77
What is SWIG?
88
=============
99

1010
SWIG is a software development tool that reads C/C++ header files and
1111
generates the wrapper code needed to make C and C++ code accessible
1212
from other programming languages including Perl, Python, Tcl, Ruby,
13-
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme, CHICKEN),
14-
D, Ocaml, Pike, Modula-3, Octave, R, Scilab, Common Lisp (CLISP,
15-
Allegro CL, CFFI, UFFI). SWIG can also export its parse tree in
16-
the form of XML and Lisp s-expressions. Major applications of SWIG
17-
include generation of scripting language extension modules, rapid
18-
prototyping, testing, and user interface development for large
19-
C/C++ systems.
13+
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme), D,
14+
Ocaml, Octave, R, Scilab. SWIG can also export its parse tree in
15+
the form of XML. Major applications of SWIG include generation of
16+
scripting language extension modules, rapid prototyping, testing,
17+
and user interface development for large C/C++ systems.
2018

2119
Release Notes
2220
=============
@@ -27,11 +25,11 @@ Availability
2725
============
2826
The release is available for download on Sourceforge at
2927

30-
http://prdownloads.sourceforge.net/swig/swig-4.0.0.tar.gz
28+
http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz
3129

3230
A Windows version is also available at
3331

34-
http://prdownloads.sourceforge.net/swig/swigwin-4.0.0.zip
32+
http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip
3533

3634
Please report problems with this release to the swig-devel mailing list,
3735
details at http://www.swig.org/mail.html.

CCache/test.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,16 @@ swigtests
451451

452452
if test -z "$NOSOFTLINKSTEST"; then
453453
testsuite="link"
454-
ln -s $CCACHE $COMPILER
455-
CCACHE_COMPILE="./$COMPILER"
454+
compilername=`basename $COMPILER`
455+
ln -s $CCACHE ./$compilername
456+
CCACHE_COMPILE="./$compilername"
456457
basetests
457-
rm "./$COMPILER"
458-
ln -s $CCACHE $SWIG
459-
CCACHE_COMPILE="./$SWIG"
458+
rm "./$compilername"
459+
compilername=`basename $SWIG`
460+
ln -s $CCACHE ./$compilername
461+
CCACHE_COMPILE="./$compilername"
460462
swigtests
461-
rm "./$SWIG"
463+
rm "./$compilername"
462464
else
463465
echo "skipping testsuite link"
464466
fi

0 commit comments

Comments
 (0)