Olly Betts
631b41ae7b
Use https for swig.org links
2022-10-06 13:16:39 +13:00
Olly Betts
6c4010e442
Resolve -Wstrict-prototypes warnings with clang-15
...
warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
2022-06-30 12:52:00 +12: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
Michel Zou
ee8d47cec4
Fix few unused variable warnings
2021-03-07 11:20:31 +00:00
William S Fulton
b36ae64185
Remove all generated files on error.
...
Previously generated files were not removed,
potentially breaking Makefiles using file dependencies, especially when
-Werror (warnings as errors) was used.
2019-07-31 00:08:49 +01:00
William S Fulton
98f29f8ad9
Remove deprecated DohClose in DOH
2019-07-31 00:08:49 +01:00
William S Fulton
edcdaaec16
Warning fixes for 64bit visual c++ on Windows
2015-07-03 20:59:24 +01:00
William S Fulton
7841a0d097
Remove cvs/svn Id strings
2013-01-12 01:21:16 +00:00
Vadim Zeitlin
ac5ddb0315
Make argument of DohWrite() const.
...
Writing a buffer to a DOH object doesn't modify so it should be const.
This allows the code using const pointers to pass them to DohWrite() without
neither the casts nor gcc warnings.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12167 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-07-22 16:59:29 +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
6fb0f48935
customised ccache support: read the CCACHE_OUTFILES env variable and if exists, the names of all generated files are written to the filename specified in the env variable
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10898 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-11-03 12:51:45 +00:00
Olly Betts
ddb7c73411
Fix handling of byte value 255 in input files on platforms where
...
char is signed (it was getting mapped to EOF). Fixes SF#1518219.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10211 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2008-01-18 19:51:46 +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
cbf3800960
add checking code for fwrite, problem reported by Michal Marek
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8472 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-17 00:52:34 +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
61a8b9caaf
minor typo
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7417 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:35:37 +00:00
William S Fulton
bed81d66d3
Better error message displayed when file cannot be opened
...
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7416 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-09-08 22:31:21 +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
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