Removing gfc_free()
FX
fxcoudert@gmail.com
Sun Mar 6 20:05:00 GMT 2011
> Lets wait, its very intrusive and there may be cases where we are using that NULL to mean more than "its ok to free"
I don't believe Janne was suggesting to remove assignements to NULL or anything else of the sort. I think he is saying that where we currently have (or emit) code such as:
if (x) free(x)
it should be simplified into:
free(x)
The two are functionally equivalent (the only reason they weren't in the first place was on very old pre-ANSI C compilers, which are nowhere to be found anymore).
FX
More information about the Fortran
mailing list