swig/Lib
Olly Betts 7ec2f89fe2
Remove redundant NULL checks before free()/delete (#2184)
Remove redundant NULL checks before free()/delete

The ISO C and C++ standards guarantee that it's safe to call these
on a NULL pointer, so it's not necessary for the calling code to
also check.

Fixes https://sourceforge.net/p/swig/feature-requests/70/
2022-01-29 22:03:48 +13:00
..
cffi Fix wrapping of references/pointers and qualifiers to member pointers 2017-03-16 21:04:38 +00:00
csharp Fix more "allows to" and other typos 2021-04-21 15:54:46 +12:00
d Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
go Support std::array in Golang (#2045) 2022-01-04 12:12:56 +13:00
guile Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
java Fix Java %interface family of macros 2021-04-27 23:37:18 +01:00
javascript [js] Remove code to handle v8 < 5.0 2021-12-02 14:04:25 +13:00
lua Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
mzscheme Consistent parameter names for std::pair 2019-02-14 22:44:27 +00:00
ocaml [OCaml] Fix compilation errors with OCaml 4.09.0 2019-12-29 22:41:43 -07:00
octave Additional changes due to name changes in octave-6 * is_map to isstruct, is_object to isobject 2021-12-05 22:19:46 +00:00
perl5 [perl] Require at least Perl 5.8.0 2022-01-19 10:07:30 +13:00
php [php] Initialise zval in directorin typemaps 2022-01-24 13:32:22 +13:00
python [python] Remove unused bogus fallback macro 2022-01-27 09:32:25 +13:00
r fixed some missing semicolons. Each one caused a compile error in generated code 2020-03-25 11:01:12 -07:00
ruby Ruby: Fix warnings in generated code about missing parameter in variadic macro 2022-01-29 11:07:57 +13:00
scilab Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
std Add missing hasher and key_type typedefs to C++11 STL containers 2019-03-12 21:59:03 +00:00
tcl [tcl] Drop remnants of support for Tcl < 8 2022-01-21 15:54:06 +13:00
typemaps Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
xml delete the perl5 typemaps, ignored here 2006-01-05 19:34:51 +00:00
allkw.swg Disable Chicken target language 2019-02-05 18:42:12 +00:00
attribute.i Fix %arg in Lib/attribute.i 2013-05-25 00:37:57 +01:00
carrays.i Initialise all newly created arrays in arrays.i library. 2015-07-30 20:41:15 +01:00
cdata.i Add initial support for PHP8 2021-03-19 19:30:27 +13:00
cmalloc.i SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. 2010-02-27 23:26:02 +00:00
constraints.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
cpointer.i Remove redundant NULL checks before free()/delete (#2184) 2022-01-29 22:03:48 +13:00
cstring.i SWIG license change - The Examples and Lib move to a very permissive license in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. 2010-02-27 23:26:02 +00:00
cwstring.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
director_common.swg Create director_common.swg for language-indep code 2015-03-12 19:51:11 +13:00
exception.i [php] Fix two incorrect PHP 8 conditionals 2021-12-08 13:10:38 +13:00
intrusive_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
inttypes.i Remove duplicate declarations of strtoimax and strtoumax in inttypes.i 2014-04-08 23:47:22 +01:00
linkruntime.c fix macro issue reported by Vladimir Menshakov 2006-04-10 19:00:44 +00:00
math.i Conditionalise math.i for PHP 2021-03-17 09:43:15 +13:00
pointer.i Update link to point to 3.0 docs 2015-01-08 11:16:48 +13:00
runtime.swg fix VC++ warning 2005-09-29 13:17:05 +00:00
shared_ptr.i Fix bug with macro invocation with empty first arg 2017-10-08 09:02:28 +13:00
std_except.i [OCaml] Some exception improvements 2019-02-07 16:25:10 -07:00
stdint.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
stl.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swig.swg Add unignore for rvalue ref-qualifiers 2017-08-30 18:17:04 +01:00
swigarch.i Typo fix in error messages from swigarch.i 2015-02-04 23:07:18 +00:00
swigerrors.swg Remove trailing spaces in the generated code. 2013-09-13 10:02:39 +02:00
swigfragments.swg Fix Visual Studio 2015 and later compilation errors due to snprintf macro definition. 2019-04-19 11:33:02 +01:00
swiginit.swg Lib/javascript/v8: use context-aware initialization. 2021-03-02 15:31:28 +01:00
swiglabels.swg swiglabels.swg: added check if __GNUC__ is defined 2016-02-13 13:49:07 +01:00
swigrun.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
swigrun.swg [php] Use SWIG_TypeCheckStruct to check types 2021-12-19 13:45:25 +13:00
swigwarnings.swg Rework std::initializer_list handling to warn about usage in any method, not just constructors. A typemap is used to issue the warning and can be overridden with user defined behaviour. 2013-02-04 20:03:22 +00:00
wchar.i merge revisions 11872:11876 from trunk to gsoc2009-sploving branch - license changes 2010-03-06 01:19:37 +00:00
windows.i Add missing VOID definition to windows.i 2019-01-07 18:46:14 +00:00