swig/Source
Olly Betts 467c530e65 Remove support for the "command" encoder
The "command" encoder was mostly intended for use in `%rename` - most
uses can be achieved using the "regex" encoder, so we recommend using
that instead.

The "command" encoder suffers from a number of issues - as the
documentation for it admitted, "[it] is extremely slow compared to all
the other [encoders] as it involves spawning a separate process and
using it for many declarations is not recommended" and that it "should
generally be avoided because of performance considerations".

But it's also not portable.  The design assumes that `/bin/sh` supports
`<<<` but that's a bash-specific feature so it doesn't work on platforms
where `/bin/sh` is not bash - it fails on Debian, Ubuntu and probably
some other Linux distros, plus most non-Linux platforms.  Microsoft
Windows doesn't even have a /bin/sh as standard.

Finally, no escaping of the passed string is done, so it has potential
security issues (though at least with %rename the input is limited to
valid C/C++ symbol names).

Fixes #1806
2022-02-07 09:47:01 +13:00
..
CParse Clean up uses of Replace() 2022-02-06 09:59:30 +13:00
DOH Make DOH Char macro more robust 2021-12-13 09:33:26 +13:00
Doxygen [doxygen] Fix crash on unclosed HTML tag 2022-01-26 15:12:21 +13:00
Include Extern template tweaks 2022-01-25 00:28:08 +00:00
Modules -DFOO on the SWIG command line now sets FOO to 1 2022-02-06 10:18:49 +13:00
Preprocessor Fix -Wchar-subscripts warning 2021-04-26 22:32:52 +01:00
Swig Remove support for the "command" encoder 2022-02-07 09:47:01 +13:00
Makefile.am Disable CFFI Common Lisp target language 2019-02-05 18:42:23 +00:00
README Remove details of long-removed directories 2021-05-16 08:42:39 +12:00

SWIG Source directory

 Source/DOH          -  A core set of basic datatypes including
                        strings, lists, hashes, and files.  Used
                        extensively by the rest of SWIG.

 Source/Swig         -  Swig core. Type-system, utility functions.

 Source/Preprocessor -  SWIG C Preprocessor

 Source/CParse       -  SWIG C Parser (still messy)

 Source/Modules      -  Language modules.

 Source/Include      -  Include files.