Disable CFFI Common Lisp target language

Clean up to disable target languages that have been neglected/not functional.
Target language be fully deleted in SWIG 4.1 unless a new maintainer brings
it up to an acceptable status (experimental or supported).

Issue #1447
This commit is contained in:
William S Fulton 2019-02-05 07:36:13 +00:00
commit 264b39fd00
11 changed files with 8 additions and 27 deletions

View file

@ -11,7 +11,7 @@ SWIG is a software development tool that reads C/C++ header files and
generates the wrapper code needed to make C and C++ code accessible generates the wrapper code needed to make C and C++ code accessible
from other programming languages including Perl, Python, Tcl, Ruby, from other programming languages including Perl, Python, Tcl, Ruby,
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme), PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme),
D, Ocaml, Octave, R, Scilab, Common Lisp (CFFI). D, Ocaml, Octave, R, Scilab.
SWIG can also export its parse tree in SWIG can also export its parse tree in
the form of XML. Major applications of SWIG the form of XML. Major applications of SWIG
include generation of scripting language extension modules, rapid include generation of scripting language extension modules, rapid

View file

@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.0.0 (in progress) Version 4.0.0 (in progress)
=========================== ===========================
2019-02-04: wsfulton
[CFFI] #1447 Common Lisp CFFI has been disabled as a target language in SWIG as part of a
clean up to remove target languages that have been neglected/not functional.
2019-02-04: wsfulton 2019-02-04: wsfulton
[Allegrocl] #1447 Allegro Common Lisp has been disabled as a target language in SWIG as part of a [Allegrocl] #1447 Allegro Common Lisp has been disabled as a target language in SWIG as part of a
clean up to remove target languages that have been neglected/not functional. clean up to remove target languages that have been neglected/not functional.

View file

@ -109,7 +109,6 @@ SWIGIMPORTED Defined when SWIG is importing a file with <tt>%
SWIG_VERSION Hexadecimal (binary-coded decimal) number containing SWIG version, SWIG_VERSION Hexadecimal (binary-coded decimal) number containing SWIG version,
such as 0x010311 (corresponding to SWIG-1.3.11). such as 0x010311 (corresponding to SWIG-1.3.11).
SWIGCFFI Defined when using CFFI
SWIGCSHARP Defined when using C# SWIGCSHARP Defined when using C#
SWIGGUILE Defined when using Guile SWIGGUILE Defined when using Guile
SWIGJAVA Defined when using Java SWIGJAVA Defined when using Java

View file

@ -118,7 +118,6 @@ for example, <tt>swig -ruby -help</tt> for Ruby.
<div class="shell"><pre> <div class="shell"><pre>
Supported Target Language Options Supported Target Language Options
-cffi - Generate CFFI wrappers
-csharp - Generate C# wrappers -csharp - Generate C# wrappers
-d - Generate D wrappers -d - Generate D wrappers
-go - Generate Go wrappers -go - Generate Go wrappers

View file

@ -46,7 +46,6 @@ Last update : SWIG-4.0.0 (in progress)
<li><a href="Guile.html#Guile">Guile support</a></li> <li><a href="Guile.html#Guile">Guile support</a></li>
<li><a href="Java.html#Java">Java support</a></li> <li><a href="Java.html#Java">Java support</a></li>
<li><a href="Javascript.html#Javascript">Javascript support</a></li> <li><a href="Javascript.html#Javascript">Javascript support</a></li>
<li><a href="Lisp.html#Lisp">Common Lisp support</a></li>
<li><a href="Lua.html#Lua">Lua support</a></li> <li><a href="Lua.html#Lua">Lua support</a></li>
<li><a href="Mzscheme.html#Mzscheme">MzScheme/Racket support</a></li> <li><a href="Mzscheme.html#Mzscheme">MzScheme/Racket support</a></li>
<li><a href="Ocaml.html#Ocaml">Ocaml support</a></li> <li><a href="Ocaml.html#Ocaml">Ocaml support</a></li>

View file

@ -24,7 +24,6 @@ Go.html
Guile.html Guile.html
Java.html Java.html
Javascript.html Javascript.html
Lisp.html
Lua.html Lua.html
Mzscheme.html Mzscheme.html
Ocaml.html Ocaml.html

View file

@ -71,7 +71,6 @@ skip-ocaml = test -n "@SKIP_OCAML@"
skip-octave = test -n "@SKIP_OCTAVE@" skip-octave = test -n "@SKIP_OCTAVE@"
skip-csharp = test -n "@SKIP_CSHARP@" skip-csharp = test -n "@SKIP_CSHARP@"
skip-lua = test -n "@SKIP_LUA@" skip-lua = test -n "@SKIP_LUA@"
skip-cffi = test -n "@SKIP_CFFI@"
skip-r = test -n "@SKIP_R@" skip-r = test -n "@SKIP_R@"
skip-scilab = test -n "@SKIP_SCILAB@" skip-scilab = test -n "@SKIP_SCILAB@"
skip-go = test -n "@SKIP_GO@" skip-go = test -n "@SKIP_GO@"
@ -112,7 +111,6 @@ check-aliveness:
@$(skip-octave) || ./$(TARGET) -octave -help @$(skip-octave) || ./$(TARGET) -octave -help
@$(skip-php) || ./$(TARGET) -php7 -help @$(skip-php) || ./$(TARGET) -php7 -help
@$(skip-csharp) || ./$(TARGET) -csharp -help @$(skip-csharp) || ./$(TARGET) -csharp -help
@$(skip-cffi) || ./$(TARGET) -cffi -help
@$(skip-lua) || ./$(TARGET) -lua -help @$(skip-lua) || ./$(TARGET) -lua -help
@$(skip-r) || ./$(TARGET) -r -help @$(skip-r) || ./$(TARGET) -r -help
@$(skip-scilab) || ./$(TARGET) -scilab -help @$(skip-scilab) || ./$(TARGET) -scilab -help
@ -139,7 +137,6 @@ check-versions: \
check-php-version \ check-php-version \
check-csharp-version \ check-csharp-version \
check-lua-version \ check-lua-version \
check-cffi-version \
check-r-version \ check-r-version \
check-scilab-version \ check-scilab-version \
check-go-version \ check-go-version \
@ -173,7 +170,6 @@ check-examples: \
check-php-examples \ check-php-examples \
check-csharp-examples \ check-csharp-examples \
check-lua-examples \ check-lua-examples \
check-cffi-examples \
check-r-examples \ check-r-examples \
check-scilab-examples \ check-scilab-examples \
check-go-examples \ check-go-examples \
@ -193,7 +189,6 @@ octave_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/octave/check.list)
php_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/php/check.list) php_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/php/check.list)
csharp_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/csharp/check.list) csharp_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/csharp/check.list)
lua_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/lua/check.list) lua_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/lua/check.list)
cffi_examples :=
r_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/r/check.list) r_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/r/check.list)
scilab_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/scilab/check.list) scilab_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/scilab/check.list)
go_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list) go_examples :=$(shell sed '/^\#/d' $(srcdir)/Examples/go/check.list)
@ -235,7 +230,6 @@ check-test-suite: \
check-php-test-suite \ check-php-test-suite \
check-csharp-test-suite \ check-csharp-test-suite \
check-lua-test-suite \ check-lua-test-suite \
check-cffi-test-suite \
check-r-test-suite \ check-r-test-suite \
check-scilab-test-suite \ check-scilab-test-suite \
check-go-test-suite \ check-go-test-suite \
@ -283,7 +277,6 @@ all-test-suite: \
all-php-test-suite \ all-php-test-suite \
all-csharp-test-suite \ all-csharp-test-suite \
all-lua-test-suite \ all-lua-test-suite \
all-cffi-test-suite \
all-r-test-suite \ all-r-test-suite \
all-scilab-test-suite \ all-scilab-test-suite \
all-go-test-suite \ all-go-test-suite \
@ -307,7 +300,6 @@ broken-test-suite: \
broken-php-test-suite \ broken-php-test-suite \
broken-csharp-test-suite \ broken-csharp-test-suite \
broken-lua-test-suite \ broken-lua-test-suite \
broken-cffi-test-suite \
broken-r-test-suite \ broken-r-test-suite \
broken-scilab-test-suite \ broken-scilab-test-suite \
broken-go-test-suite \ broken-go-test-suite \
@ -444,7 +436,7 @@ install-main:
@$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@ @$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(BIN_DIR)/`echo $(TARGET_NOEXE) | sed '$(transform)'`@EXEEXT@
lib-languages = typemaps tcl perl5 python guile java mzscheme ruby php ocaml octave \ lib-languages = typemaps tcl perl5 python guile java mzscheme ruby php ocaml octave \
csharp lua cffi r go d javascript javascript/jsc \ csharp lua r go d javascript javascript/jsc \
javascript/v8 scilab xml javascript/v8 scilab xml
lib-modules = std lib-modules = std

3
README
View file

@ -4,8 +4,7 @@ Version: 4.0.0 (in progress)
Tagline: SWIG is a compiler that integrates C and C++ with languages Tagline: SWIG is a compiler that integrates C and C++ with languages
including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua, including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua,
Octave, R, Scheme (Guile, MzScheme/Racket), Scilab, Octave, R, Scheme (Guile, MzScheme/Racket), Scilab, Ocaml.
Ocaml, Common Lisp (CFFI).
SWIG can also export its parse tree into XML. SWIG can also export its parse tree into XML.
SWIG reads annotated C/C++ header files and creates wrapper code (glue SWIG reads annotated C/C++ header files and creates wrapper code (glue

View file

@ -47,7 +47,6 @@ eswig_SOURCES = CParse/cscanner.c \
Doxygen/pydoc.h \ Doxygen/pydoc.h \
Modules/allocate.cxx \ Modules/allocate.cxx \
Modules/browser.cxx \ Modules/browser.cxx \
Modules/cffi.cxx \
Modules/contract.cxx \ Modules/contract.cxx \
Modules/csharp.cxx \ Modules/csharp.cxx \
Modules/d.cxx \ Modules/d.cxx \

View file

@ -26,7 +26,6 @@
can be dynamically loaded in future versions. */ can be dynamically loaded in future versions. */
extern "C" { extern "C" {
Language *swig_cffi(void);
Language *swig_csharp(void); Language *swig_csharp(void);
Language *swig_d(void); Language *swig_d(void);
Language *swig_go(void); Language *swig_go(void);
@ -57,7 +56,7 @@ static TargetLanguageModule modules[] = {
{"-allegrocl", NULL, "ALLEGROCL", Disabled}, {"-allegrocl", NULL, "ALLEGROCL", Disabled},
{"-chicken", NULL, "CHICKEN", Disabled}, {"-chicken", NULL, "CHICKEN", Disabled},
{"-clisp", NULL, "CLISP", Disabled}, {"-clisp", NULL, "CLISP", Disabled},
{"-cffi", swig_cffi, "CFFI", Supported}, {"-cffi", NULL, "CFFI", Disabled},
{"-csharp", swig_csharp, "C#", Supported}, {"-csharp", swig_csharp, "C#", Supported},
{"-d", swig_d, "D", Supported}, {"-d", swig_d, "D", Supported},
{"-go", swig_go, "Go", Supported}, {"-go", swig_go, "Go", Supported},

View file

@ -2673,12 +2673,6 @@ if test -z "$RBIN" ; then
fi fi
AC_SUBST(SKIP_R) AC_SUBST(SKIP_R)
SKIP_CFFI=
#if test -z "$CFFIBIN" ; then
SKIP_CFFI="1"
#fi
AC_SUBST(SKIP_CFFI)
SKIP_SCILAB= SKIP_SCILAB=
if test -z "$SCILAB"; then if test -z "$SCILAB"; then
SKIP_SCILAB="1" SKIP_SCILAB="1"
@ -2801,7 +2795,6 @@ AC_CONFIG_FILES([
Examples/test-suite/scilab/Makefile Examples/test-suite/scilab/Makefile
Examples/test-suite/tcl/Makefile Examples/test-suite/tcl/Makefile
Examples/test-suite/lua/Makefile Examples/test-suite/lua/Makefile
Examples/test-suite/cffi/Makefile
Examples/test-suite/r/Makefile Examples/test-suite/r/Makefile
Examples/test-suite/go/Makefile Examples/test-suite/go/Makefile
Source/Makefile Source/Makefile
@ -2849,7 +2842,6 @@ EOF
AC_OUTPUT AC_OUTPUT
langs="" langs=""
test -n "$SKIP_CFFI" || langs="${langs}cffi "
test -n "$SKIP_CSHARP" || langs="${langs}csharp " test -n "$SKIP_CSHARP" || langs="${langs}csharp "
test -n "$SKIP_D" || langs="${langs}d " test -n "$SKIP_D" || langs="${langs}d "
test -n "$SKIP_GO" || langs="${langs}go " test -n "$SKIP_GO" || langs="${langs}go "