swig/Source
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
..
CParse Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
DOH Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
Doxygen Fix typos in docs and comments 2022-02-27 18:15:46 +13:00
Include Improve typemap method and attribute checking 2022-03-03 18:46:15 +13:00
Modules Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +13:00
Preprocessor Emit preprocessor expr error for unary + on string 2022-02-24 09:50:22 +13:00
Swig Add DOH Exit() and SetExitHandler() 2022-03-06 12:33:54 +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.