swig/Source/Modules
Olly Betts 55377bdc08 Add DOH Exit() and SetExitHandler()
Exit() is a wrapper for exit() by default, but SetExitHandler() allows
specifying a function to call instead.

This means that failures within DOH (e.g. Malloc() failing due to lack
of memory) will now perform cleanup such as removing output files.

This commit also cleans up exit statuses so SWIG should now reliably
exit with status 0 if the run was successful and status 1 if there was
an error (or a warning and -Werror was in effect).

Previously in some situations SWIG would try to exit with the status set
to the number of errors encountered, but that's problematic - for
example if there were 256 errors this would result in exit status 0 on
most platforms.  Also some error statuses have special meanings e.g.
those defined by <sysexits.h>.

Also SWIG/Javascript tried to exit with status -1 in a few places (which
typically results in exit status 255).
2022-03-06 12:33:54 +13:00
..
allocate.cxx Don't mark as "noassign" when a variable is immutable 2022-02-04 14:03:01 -05:00
browser.cxx Add lambda functions to the symbol tables and add ability to suppress lambda warnings. 2013-02-04 20:05:34 +00:00
cffi.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
contract.cxx Cosmetics/code beautification of nested class support 2013-11-29 07:29:58 +00:00
csharp.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
d.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
directors.cxx Merge branch 'director-return-const-pointer' 2020-10-07 22:26:25 +01:00
emit.cxx Remove support for $source and $target 2021-04-30 10:20:14 +12:00
go.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
guile.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
interface.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
java.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
javascript.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
lang.cxx Use SWIG-specific for non-overloaded synthesized functions too 2021-11-09 23:35:30 +01:00
lua.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
main.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
mzscheme.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
nested.cxx Fix typos in docs and comments 2022-02-27 18:15:46 +13:00
ocaml.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
octave.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
overload.cxx Fix ODR violations 2021-09-20 15:04:51 +12:00
perl5.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
php.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
python.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
r.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
README File move 2002-12-03 20:33:35 +00:00
ruby.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
scilab.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
swigmain.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
swigmod.h Replace all exit() with SWIG_exit() 2019-07-31 00:08:49 +01:00
tcl8.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
typepass.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
utils.cxx Fix various comment and documentation typos 2017-08-13 18:04:33 +12:00
xml.cxx Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00

06/25/2002

This directory contains all of the SWIG language modules.  Many of these
modules contain code that dates back to SWIG1.0.  The module API has changed
a lot in the development releases so this is fairly messy.  We're working on
cleaning it up, but you'll have to bear with us until it's done.

-- Dave