Commit summary from repository starlink
------------------------------------
(David Berry) ast: Add function astFreeDouble for freeing an array of pointers
100.0% libraries/ast/
(David Berry) smurf: No need to test pointer before calling astFree
91.5% applications/smurf/libsmf/
8.4% applications/smurf/libsmurf/
Commits from repository starlink
-----------------------------
commit a04f3733ad4641497d11f4edda2be0b6dfef1fac
Author: David Berry <[log in to unmask]>
Date: Fri May 27 11:25:39 2011 +0100
ast: Add function astFreeDouble for freeing an array of pointers
Replacement for:
if( array ) {
for( i = 0; i < size; i++ ) {
array[ i ] = astFree( array[ i ] );
}
array = astFree( array );
}
libraries/ast/memory.c | 80 ++++++++++++++++++++++++++++++++++++++++++++++
libraries/ast/memory.h | 2 +
2 files changed, 82 insertions(+), 0 deletions(-)
commit 92b912d1c40d88110943e9e4532d50259d8c946c
Author: David Berry <[log in to unmask]>
Date: Fri May 27 07:53:30 2011 +0100
smurf: No need to test pointer before calling astFree
astFree checks for NULL pointers itself. No point in doing the check twice.
applications/smurf/libsmf/smf_calcmodel_dks.c | 2 +-
applications/smurf/libsmf/smf_calcmodel_flt.c | 2 +-
applications/smurf/libsmf/smf_calcmodel_pln.c | 2 +-
applications/smurf/libsmf/smf_calcmodel_tmp.c | 2 +-
applications/smurf/libsmf/smf_calcmodel_two.c | 2 +-
applications/smurf/libsmf/smf_clean_dksquid.c | 4 ++--
applications/smurf/libsmf/smf_clean_pca.c | 10 +++++-----
applications/smurf/libsmf/smf_concat_smfGroup.c | 2 +-
applications/smurf/libsmf/smf_create_tswcs.c | 2 +-
applications/smurf/libsmf/smf_find_thetabins.c | 4 ++--
applications/smurf/libsmf/smf_fit_poly.c | 8 ++++----
applications/smurf/libsmf/smf_flag_slewspeed.c | 2 +-
applications/smurf/libsmf/smf_iteratemap.c | 18 +++++++++---------
applications/smurf/libsmf/smf_rebincube_ast.c | 6 +++---
applications/smurf/libsmf/smf_resampcube_ast.c | 2 +-
applications/smurf/libsmf/smf_whiten.c | 8 ++++----
applications/smurf/libsmf/smf_write_bolomap.c | 12 ++++++------
applications/smurf/libsmf/smf_write_shortmap.c | 6 +++---
applications/smurf/libsmurf/smurf_dsutils.c | 4 ++--
applications/smurf/libsmurf/smurf_makecube.c | 2 +-
applications/smurf/libsmurf/smurf_makemap.c | 2 +-
applications/smurf/libsmurf/smurf_sc2threadtest.c | 2 +-
22 files changed, 52 insertions(+), 52 deletions(-)
|