Olly Betts
631b41ae7b
Use https for swig.org links
2022-10-06 13:16:39 +13:00
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
William S Fulton
7841a0d097
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
William S Fulton
7b58300cbd
Fix display of pointers on 64 bit systems, only 32 bit values were being shown.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13340 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-07-21 22:52:30 +00:00
William S Fulton
d1e6643161
Expand the family of debug print functions for displaying DOH types. Provide gdb support for calling these. Document improved debugging experience.
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-09-15 20:17:11 +00:00
William S Fulton
cb64f65bae
SWIG license change - Source moves to GPLv3
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11876 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-02-27 23:53:33 +00:00
William S Fulton
61001d958f
add parameter list (or void) to all C functions
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10926 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-11 22:17:40 +00:00
Dave Beazley
fc10a97b23
Changed Header keyword to Id
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-12-05 22:11:40 +00:00
William S Fulton
aa04c4c057
beautify/format source code with gnu indent
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9505 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-11-01 23:54:54 +00:00
Marcelo Matus
628dc6b32b
add NewStringEmpty, use more StringEuqual and less Strcmp
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-28 17:32:56 +00:00
Marcelo Matus
bc6339d844
add the Equal method to the DOH objects and other speed ups
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7883 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-27 02:38:44 +00:00
William S Fulton
078ca985cf
gcc-4.0 warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7167 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-04-24 20:34:51 +00:00
William S Fulton
ae10ce8207
const warning fixes
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-15 21:00:52 +00:00
John Lenz
c3338b1a16
- Improve the runtime type sytesm
...
- Update all languages to new type system
- Add DohSortList function
- Fix mzscheme Examples/Makefile
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-01 00:08:24 +00:00
Dave Beazley
8ae4c60d39
Major refactoring of DOH List/Hash iterators. See CHANGES
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5101 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-11 20:26:57 +00:00
Dave Beazley
b02f748627
String enhancements. Slice deletion
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4629 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-26 03:28:00 +00:00
Dave Beazley
4e2070ef43
Major cleanup
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4155 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-12-03 20:56:45 +00:00