swig/Source/Swig
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
..
cwrap.c Merge pull request #2095 from vadz/extend-suffix 2022-01-08 21:11:14 +00:00
deprecate.c Remove cvs/svn Id strings 2013-01-12 01:21:16 +00:00
error.c Make sure warning and error messages are not split up 2017-06-16 19:24:48 +01:00
extend.c new_node refactor 2018-05-19 09:00:06 +01:00
fragment.c Fix comment typo 2021-05-05 16:01:51 +12:00
getopt.c Replace all exit() with SWIG_exit() 2019-07-31 00:08:49 +01:00
include.c Fix leaked file descriptor 2016-06-16 15:53:22 +03:00
misc.c Remove support for the "command" encoder 2022-02-07 09:47:01 +13:00
naming.c PCRE2 2022-01-21 07:46:08 +01:00
parms.c Fix Python compile errors with overloading and varargs 2019-02-25 19:27:23 +00:00
scanner.c Handle ellipsis as a token in the scanner 2022-01-26 12:31:52 +13:00
stype.c template template parameters patch tidyup 2021-03-22 01:08:05 +00:00
swig.h Coding style tweaks 2022-01-30 10:55:00 +13:00
swigfile.h Fix segfaults when using filename paths greater than 1024 characters in length - use String * and heap instead of fixed size static char array buffers. 2012-11-18 00:45:18 +00:00
swigopt.h merge revisions 11872:11876 from trunk to gsoc2009-matevz branch - license changes 2010-03-06 00:51:54 +00:00
swigparm.h Fix Python compile errors with overloading and varargs 2019-02-25 19:27:23 +00:00
swigscan.h Handle ellipsis as a token in the scanner 2022-01-26 12:31:52 +13:00
swigtree.h Minor code improvements 2013-11-29 07:33:55 +00:00
swigwrap.h merge revisions 11872:11876 from trunk to gsoc2009-matevz branch - license changes 2010-03-06 00:51:54 +00:00
symbol.c Coding style tweaks 2022-01-30 10:55:00 +13:00
tree.c Fix removeNode() to really unset previousSibling 2021-12-10 18:34:21 +13:00
typemap.c Typemap change for templates 2017-08-16 00:24:06 +01:00
typeobj.c Fix few unused variable warnings 2021-03-07 11:20:31 +00:00
typesys.c Restore _Complex as standalone type 2020-06-24 20:21:47 -04:00
wrapfunc.c Remove cvs/svn Id strings 2013-01-12 01:21:16 +00:00