swig/Source
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olly Betts e38847f7e1 Fail cleanly on allocation failures
Previously code in the SWIG tool didn't handle allocation failures
well.  Most places didn't check for NULL return from
malloc()/realloc()/calloc() at all, typically resulting in undefined
behaviour, and some places used assert() to check for a NULL return
(which is a misuse of assert() and such checks disappear if built with
NDEBUG defined leaving us back with undefined behaviour).

All C allocations are now done via wrapper functions (Malloc(),
Realloc() and Calloc()) which emit and error and exit with non-zero
status on failure, so a non-NULL return can be relied upon.

Fixes #1901.
2022-03-04 11:47:49 +13:00
..
CParse Fail cleanly on allocation failures 2022-03-04 11:47:49 +13:00
DOH Fail cleanly on allocation failures 2022-03-04 11:47:49 +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 Fail cleanly on allocation failures 2022-03-04 11:47:49 +13:00
Preprocessor Emit preprocessor expr error for unary + on string 2022-02-24 09:50:22 +13:00
Swig Fail cleanly on allocation failures 2022-03-04 11:47:49 +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.