continuing to separate hdf5/libsrc4 file close code
@@ -172,15 +172,15 @@ nc4_close_netcdf4_file(NC_FILE_INFO_T *h5, int abort, NC_memio *memio)
/* Get HDF5 specific info. */
hdf5_info = (NC_HDF5_FILE_INFO_T *)h5->format_file_info;
- /* According to the docs, always end define mode on close. */
- if (h5->flags & NC_INDEF)
- h5->flags ^= NC_INDEF;
+ /* /\* According to the docs, always end define mode on close. *\/ */
+ /* if (h5->flags & NC_INDEF) */
+ /* h5->flags ^= NC_INDEF; */
- /* Sync the file, unless we're aborting, or this is a read-only
- * file. */
- if (!h5->no_write && !abort)
- if ((retval = sync_netcdf4_file(h5)))
- return retval;
+ /* /\* Sync the file, unless we're aborting, or this is a read-only */
+ /* * file. *\/ */
+ /* if (!h5->no_write && !abort) */
+ /* if ((retval = sync_netcdf4_file(h5))) */
+ /* return retval; */
/* Delete all the list contents for vars, dims, and atts, in each
* group. */
@@ -269,18 +269,18 @@ nc4_close_hdf5_file(NC_FILE_INFO_T *h5, int abort, NC_memio *memio)
assert(h5 && h5->root_grp && h5->format_file_info);
LOG((3, "%s: h5->path %s abort %d", __func__, h5->controller->path, abort));
- /* /\* Get HDF5 specific info. *\/ */
- /* hdf5_info = (NC_HDF5_FILE_INFO_T *)h5->format_file_info; */
+ /* Get HDF5 specific info. */
+ hdf5_info = (NC_HDF5_FILE_INFO_T *)h5->format_file_info;
- /* /\* According to the docs, always end define mode on close. *\/ */
- /* if (h5->flags & NC_INDEF) */
- /* h5->flags ^= NC_INDEF; */
+ /* According to the docs, always end define mode on close. */
+ if (h5->flags & NC_INDEF)
+ h5->flags ^= NC_INDEF;
- /* /\* Sync the file, unless we're aborting, or this is a read-only */
- /* * file. *\/ */
- /* if (!h5->no_write && !abort) */
- /* if ((retval = sync_netcdf4_file(h5))) */
- /* return retval; */
+ /* Sync the file, unless we're aborting, or this is a read-only
+ * file. */
+ if (!h5->no_write && !abort)
+ if ((retval = sync_netcdf4_file(h5)))
+ return retval;
/* /\* Close all open HDF5 objects within the file. *\/ */
/* if ((retval = nc4_rec_grp_HDF5_del(h5->root_grp))) */
