summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5.c68
-rw-r--r--src/H5A.c122
-rw-r--r--src/H5AC.c110
-rw-r--r--src/H5ACprivate.h6
-rw-r--r--src/H5B.c48
-rw-r--r--src/H5Bprivate.h6
-rw-r--r--src/H5C.c636
-rw-r--r--src/H5Cprivate.h90
-rw-r--r--src/H5D.c244
-rw-r--r--src/H5Dcompact.c58
-rw-r--r--src/H5Dcontig.c16
-rw-r--r--src/H5Defl.c24
-rw-r--r--src/H5Dio.c238
-rw-r--r--src/H5Distore.c154
-rw-r--r--src/H5Dmpio.c54
-rw-r--r--src/H5Dpkg.h8
-rw-r--r--src/H5Dprivate.h12
-rw-r--r--src/H5Dpublic.h4
-rw-r--r--src/H5Dselect.c8
-rw-r--r--src/H5E.c40
-rw-r--r--src/H5F.c260
-rw-r--r--src/H5FD.c102
-rw-r--r--src/H5FDcore.c44
-rw-r--r--src/H5FDfamily.c74
-rw-r--r--src/H5FDgass.c72
-rw-r--r--src/H5FDgass.h4
-rw-r--r--src/H5FDlog.c58
-rw-r--r--src/H5FDmpi.c16
-rw-r--r--src/H5FDmpio.c54
-rw-r--r--src/H5FDmpiposix.c48
-rw-r--r--src/H5FDmulti.c78
-rw-r--r--src/H5FDpublic.h4
-rw-r--r--src/H5FDsec2.c36
-rw-r--r--src/H5FDsrb.c102
-rw-r--r--src/H5FDstdio.c54
-rw-r--r--src/H5FDstream.c14
-rw-r--r--src/H5FDstream.h2
-rw-r--r--src/H5FL.c78
-rw-r--r--src/H5FLprivate.h2
-rw-r--r--src/H5FS.c16
-rw-r--r--src/H5Fdbg.c2
-rw-r--r--src/H5Fmount.c34
-rw-r--r--src/H5Fpkg.h2
-rw-r--r--src/H5Fprivate.h14
-rw-r--r--src/H5Fpublic.h2
-rw-r--r--src/H5Fsfile.c6
-rw-r--r--src/H5Fsuper.c18
-rw-r--r--src/H5G.c226
-rw-r--r--src/H5Gent.c12
-rw-r--r--src/H5Gnode.c42
-rw-r--r--src/H5Gpkg.h2
-rw-r--r--src/H5Gpublic.h6
-rw-r--r--src/H5Gstab.c16
-rw-r--r--src/H5HG.c66
-rw-r--r--src/H5HL.c2
-rw-r--r--src/H5I.c64
-rw-r--r--src/H5Ipublic.h2
-rw-r--r--src/H5MF.c10
-rw-r--r--src/H5MM.c2
-rw-r--r--src/H5MPprivate.h12
-rw-r--r--src/H5O.c92
-rw-r--r--src/H5Oattr.c22
-rw-r--r--src/H5Obogus.c2
-rw-r--r--src/H5Ocont.c2
-rw-r--r--src/H5Odtype.c28
-rw-r--r--src/H5Oefl.c20
-rw-r--r--src/H5Ofill.c64
-rw-r--r--src/H5Olayout.c48
-rw-r--r--src/H5Omtime.c22
-rw-r--r--src/H5Oname.c4
-rw-r--r--src/H5Onull.c2
-rw-r--r--src/H5Opkg.h4
-rw-r--r--src/H5Opline.c16
-rw-r--r--src/H5Oprivate.h16
-rw-r--r--src/H5Osdspace.c22
-rw-r--r--src/H5Oshared.c12
-rw-r--r--src/H5Ostab.c4
-rw-r--r--src/H5P.c96
-rw-r--r--src/H5Pdcpl.c138
-rw-r--r--src/H5Pdxpl.c32
-rw-r--r--src/H5Pfapl.c308
-rw-r--r--src/H5Pfcpl.c22
-rw-r--r--src/H5Pprivate.h2
-rw-r--r--src/H5Ppublic.h16
-rw-r--r--src/H5R.c32
-rw-r--r--src/H5S.c54
-rw-r--r--src/H5SL.c2
-rw-r--r--src/H5ST.c14
-rw-r--r--src/H5Sall.c4
-rw-r--r--src/H5Shyper.c58
-rw-r--r--src/H5Smpio.c54
-rw-r--r--src/H5Snone.c2
-rw-r--r--src/H5Spkg.h6
-rw-r--r--src/H5Spoint.c14
-rw-r--r--src/H5T.c210
-rw-r--r--src/H5TS.c12
-rw-r--r--src/H5Tarray.c20
-rw-r--r--src/H5Tbit.c26
-rw-r--r--src/H5Tcommit.c10
-rw-r--r--src/H5Tcompound.c24
-rw-r--r--src/H5Tconv.c174
-rw-r--r--src/H5Tcset.c12
-rw-r--r--src/H5Tenum.c28
-rw-r--r--src/H5Tfields.c36
-rw-r--r--src/H5Tfixed.c10
-rw-r--r--src/H5Tfloat.c22
-rw-r--r--src/H5Tnative.c278
-rw-r--r--src/H5Toffset.c10
-rw-r--r--src/H5Topaque.c4
-rw-r--r--src/H5Torder.c2
-rw-r--r--src/H5Tpad.c6
-rw-r--r--src/H5Tpkg.h4
-rw-r--r--src/H5Tprecis.c6
-rw-r--r--src/H5Tpublic.h2
-rw-r--r--src/H5Tstrpad.c8
-rw-r--r--src/H5Tvlen.c42
-rw-r--r--src/H5V.c6
-rw-r--r--src/H5Z.c46
-rw-r--r--src/H5Zdeflate.c8
-rw-r--r--src/H5Zfletcher32.c50
-rw-r--r--src/H5Zprivate.h2
-rw-r--r--src/H5Zpublic.h16
-rw-r--r--src/H5Zshuffle.c8
-rw-r--r--src/H5Zszip.c18
-rw-r--r--src/H5detect.c48
-rw-r--r--src/H5private.h24
-rw-r--r--src/H5public.h6
127 files changed, 3008 insertions, 3008 deletions
diff --git a/src/H5.c b/src/H5.c
index e563e46..0a92df5 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -60,7 +60,7 @@ static void H5_debug_mask(const char*);
* H5_init_library -- Initialize library-global information
* USAGE
* herr_t H5_init_library()
- *
+ *
* RETURNS
* Non-negative on success/Negative on failure
*
@@ -69,7 +69,7 @@ static void H5_debug_mask(const char*);
*
*--------------------------------------------------------------------------
*/
-herr_t
+herr_t
H5_init_library(void)
{
herr_t ret_value=SUCCEED;
@@ -131,7 +131,7 @@ H5_init_library(void)
* Initialize interfaces that might not be able to initialize themselves
* soon enough. The file & dataset interfaces must be initialized because
* calling H5P_create() might require the file/dataset property classes to be
- * initialized. The property interface must be initialized before the file
+ * initialized. The property interface must be initialized before the file
* & dataset interfaces though, in order to provide them with the proper
* property classes.
*/
@@ -178,7 +178,7 @@ H5_term_library(void)
unsigned at=0;
char loop[1024];
H5E_auto_t func;
-
+
#ifdef H5_HAVE_THREADSAFE
/* explicit locking of the API */
H5_FIRST_THREAD_INIT
@@ -206,7 +206,7 @@ H5_term_library(void)
(sprintf(loop+at, "..."), \
at += HDstrlen(loop+at), \
n):n))
-
+
do {
pending = 0;
/* Try to organize these so the "higher" level components get shut
@@ -268,7 +268,7 @@ H5_term_library(void)
H5_MPEinit_g = FALSE; /* turn it off no matter what */
}
#endif
-
+
/* Mark library as closed */
H5_INIT_GLOBAL = FALSE;
done:
@@ -442,7 +442,7 @@ H5_debug_mask(const char *s)
char pkg_name[32], *rest;
size_t i;
int clear;
-
+
while (s && *s) {
if (HDisalpha(*s) || '-'==*s || '+'==*s) {
/* Enable or Disable debugging? */
@@ -495,7 +495,7 @@ H5_debug_mask(const char *s)
}
}
}
-
+
/*-------------------------------------------------------------------------
* Function: H5get_libversion
@@ -571,11 +571,11 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
FUNC_ENTER_API_NOINIT(H5check_version)
H5TRACE3("e","IuIuIu",majnum,minnum,relnum);
-
+
/* Don't check again, if we already have */
if (checked)
HGOTO_DONE(SUCCEED)
-
+
{ const char *s; /* Environment string for disabling version check */
/* Allow different versions of the header files and library? */
@@ -600,7 +600,7 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
stderr);
/* Mention the versions we are referring to */
HDfprintf (stderr, "Headers are %u.%u.%u, library is %u.%u.%u\n",
- majnum, minnum, relnum,
+ majnum, minnum, relnum,
(unsigned)H5_VERS_MAJOR, (unsigned)H5_VERS_MINOR, (unsigned)H5_VERS_RELEASE);
/* Bail out now. */
@@ -620,7 +620,7 @@ H5check_version(unsigned majnum, unsigned minnum, unsigned relnum)
"continue.\n", stderr);
/* Mention the versions we are referring to */
HDfprintf (stderr, "Headers are %u.%u.%u, library is %u.%u.%u\n",
- majnum, minnum, relnum,
+ majnum, minnum, relnum,
(unsigned)H5_VERS_MAJOR, (unsigned)H5_VERS_MINOR, (unsigned)H5_VERS_RELEASE);
break;
} /* end switch */
@@ -844,7 +844,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
char *rest, format_templ[128];
const char *s;
va_list ap;
-
+
assert (stream);
assert (fmt);
@@ -883,7 +883,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
} /*lint !e744 Switch statement doesn't _need_ default */
s++;
}
-
+
/* Field width */
if (HDisdigit (*s)) {
zerofill = ('0'==*s);
@@ -975,7 +975,7 @@ HDfprintf(FILE *stream, const char *fmt, ...)
if (*modifier)
sprintf (format_templ+HDstrlen(format_templ), "%s", modifier);
sprintf (format_templ+HDstrlen(format_templ), "%c", conv);
-
+
/* Conversion */
switch (conv) {
@@ -1162,13 +1162,13 @@ HDstrtoll(const char *s, const char **rest, int base)
{
int64_t sign=1, acc=0;
hbool_t overflow = FALSE;
-
+
errno = 0;
if (!s || (base && (base<2 || base>36))) {
if (rest) *rest = s;
return 0;
}
-
+
/* Skip white space */
while (HDisspace (*s)) s++;
@@ -1177,7 +1177,7 @@ HDstrtoll(const char *s, const char **rest, int base)
s++;
} else if ('-'==*s) {
sign = -1;
- s++;
+ s++;
}
/* Zero base prefix */
@@ -1190,7 +1190,7 @@ HDstrtoll(const char *s, const char **rest, int base)
} else if (0==base) {
base = 10;
}
-
+
/* Digits */
while ((base<=10 && *s>='0' && *s<'0'+base) ||
(base>10 && ((*s>='0' && *s<='9') ||
@@ -1317,7 +1317,7 @@ void
H5_timer_end (H5_timer_t *sum/*in,out*/, H5_timer_t *timer/*in,out*/)
{
H5_timer_t now;
-
+
assert (timer);
H5_timer_begin (&now);
@@ -1350,7 +1350,7 @@ H5_timer_end (H5_timer_t *sum/*in,out*/, H5_timer_t *timer/*in,out*/)
* 1.2345e-10 For bandwidth less than 1
* 6.7893e+94 For exceptionally large values
* 6.678e+106 For really big values
- *
+ *
* Return: void
*
* Programmer: Robb Matzke
@@ -1493,7 +1493,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
} else {
HDmemset(&event_time, 0, sizeof event_time);
}
-
+
/* Print the first part of the line. This is the indication of the
* nesting depth followed by the function name and either start of
* argument list or start of return value. If this call is for a
@@ -1526,7 +1526,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
fputc('+', out);
fprintf(out, "%*s%s(", 2*current_depth, "", func);
}
-
+
/* Clear array sizes */
for (i=0; i<(hssize_t)NELMTS(asize); i++) asize[i] = -1;
@@ -1548,7 +1548,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
} else {
asize_idx = -1;
}
-
+
/*
* The argument name. Leave off the `_id' part. If the argument
* name is the null pointer then don't print the argument or the
@@ -1725,7 +1725,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
case 's':
if (ptr) {
if (vp) {
@@ -1754,7 +1754,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
case 't':
if (ptr) {
if (vp) {
@@ -1777,7 +1777,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
default:
fprintf (out, "BADTYPE(D%c)", type[1]);
goto error;
@@ -1797,7 +1797,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
else fprintf (out, "FAIL");
}
break;
-
+
case 'E':
switch (type[1]) {
case 'd':
@@ -1822,7 +1822,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
case 'e':
if (ptr) {
if (vp) {
@@ -1861,7 +1861,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
fprintf(out, "%d", (int)emin);
}
break;
-
+
default:
fprintf (out, "BADTYPE(E%c)", type[1]);
goto error;
@@ -2026,7 +2026,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
asize[argno] = (hssize_t)hssize;
}
break;
-
+
default:
fprintf (out, "BADTYPE(H%c)", type[1]);
goto error;
@@ -2211,7 +2211,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
asize[argno] = is;
}
break;
-
+
case 'u':
if (ptr) {
if (vp) {
@@ -2456,7 +2456,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
default:
fprintf(out, "BADTYPE(S%c)", type[1]);
goto error;
@@ -2493,7 +2493,7 @@ H5_trace (const double *returning, const char *func, const char *type, ...)
}
}
break;
-
+
case 's':
if (ptr) {
if (vp) {
diff --git a/src/H5A.c b/src/H5A.c
index 57badd5..b2be6d2 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -60,7 +60,7 @@ NAME
H5A_init_interface -- Initialize interface-specific information
USAGE
herr_t H5A_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -79,7 +79,7 @@ H5A_init_interface(void)
*/
if (H5I_init_group(H5I_ATTR, H5I_ATTRID_HASHSIZE, H5A_RESERVED_ATOMS, (H5I_free_t)H5A_close)<0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTINIT, FAIL, "unable to initialize interface")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -107,7 +107,7 @@ H5A_term_interface(void)
int n=0;
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5A_term_interface)
-
+
if (H5_interface_initialize_g) {
if ((n=H5I_nmembers(H5I_ATTR))>0) {
(void)H5I_clear_group(H5I_ATTR, FALSE);
@@ -135,7 +135,7 @@ H5A_term_interface(void)
hid_t plist_id; IN: ID of creation property list (currently not used)
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -158,7 +158,7 @@ H5A_term_interface(void)
* Modifications:
* Robb Matzke, 5 Jun 1998
* The LOC_ID can also be a committed datatype.
- *
+ *
--------------------------------------------------------------------------*/
/* ARGSUSED */
hid_t
@@ -197,7 +197,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5A_create
*
- * Purpose:
+ * Purpose:
* This is the guts of the H5Acreate function.
* Usage:
* hid_t H5A_create (ent, name, type, space)
@@ -297,7 +297,7 @@ H5A_create(const H5G_entry_t *ent, const char *name, const H5T_t *type,
attr->ent_opened=1;
/* Create the attribute message and save the attribute index */
- if (H5O_modify(&(attr->ent), H5O_ATTR_ID, H5O_NEW_MESG, 0, H5O_UPDATE_TIME, attr, dxpl_id) < 0)
+ if (H5O_modify(&(attr->ent), H5O_ATTR_ID, H5O_NEW_MESG, 0, H5O_UPDATE_TIME, attr, dxpl_id) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to update attribute header messages")
/* Register the new attribute and get an ID for it */
@@ -329,7 +329,7 @@ done:
void *op_data; IN: Op data passed in
RETURNS
Non-negative on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -374,7 +374,7 @@ H5A_find_idx_by_name(const void *_mesg, unsigned idx, void *_op_data)
const char *name; IN: Name of dataset to find
RETURNS
non-negative on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -419,7 +419,7 @@ done:
const char *name; IN: Name of attribute to locate and open
RETURNS
ID of attribute on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -459,7 +459,7 @@ H5Aopen_name(hid_t loc_id, const char *name)
/* Go do the real work for opening the attribute */
if ((ret_value=H5A_open(ent, (unsigned)idx, H5AC_dxpl_id))<0)
HGOTO_ERROR (H5E_ATTR, H5E_CANTINIT, FAIL, "unable to open attribute")
-
+
done:
FUNC_LEAVE_API(ret_value)
} /* H5Aopen_name() */
@@ -476,7 +476,7 @@ done:
unsigned idx; IN: Index (0-based) attribute to open
RETURNS
ID of attribute on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -490,7 +490,7 @@ done:
* Modifications:
* Robb Matzke, 5 Jun 1998
* The LOC_ID can also be a named (committed) datatype.
- *
+ *
--------------------------------------------------------------------------*/
hid_t
H5Aopen_idx(hid_t loc_id, unsigned idx)
@@ -510,7 +510,7 @@ H5Aopen_idx(hid_t loc_id, unsigned idx)
/* Go do the real work for opening the attribute */
if ((ret_value=H5A_open(ent, idx, H5AC_dxpl_id))<0)
HGOTO_ERROR (H5E_ATTR, H5E_CANTINIT, FAIL, "unable to open attribute")
-
+
done:
FUNC_LEAVE_API(ret_value)
} /* H5Aopen_idx() */
@@ -519,7 +519,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5A_open
*
- * Purpose:
+ * Purpose:
* This is the guts of the H5Aopen_xxx functions
* Usage:
* herr_t H5A_open (ent, idx)
@@ -554,7 +554,7 @@ H5A_open(H5G_entry_t *ent, unsigned idx, hid_t dxpl_id)
if (NULL==(attr=H5O_read(ent, H5O_ATTR_ID, (int)idx, NULL, dxpl_id)))
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to load attribute info from dataset header")
attr->initialized=1;
-
+
/* Deep copy of the symbol table entry */
if (H5G_ent_copy(&(attr->ent),ent,H5G_COPY_DEEP)<0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTOPENOBJ, FAIL, "unable to copy entry")
@@ -590,7 +590,7 @@ done:
const void *buf; IN: Buffer of data to write
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -635,7 +635,7 @@ done:
const void *buf; IN: Buffer of data to write
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -720,7 +720,7 @@ H5A_write(H5A_t *attr, const H5T_t *mem_type, const void *buf, hid_t dxpl_id)
HGOTO_ERROR(H5E_ATTR, H5E_BADVALUE, FAIL, "attribute not found")
/* Modify the attribute data */
- if (H5O_modify(&(attr->ent), H5O_ATTR_ID, idx, 0, H5O_UPDATE_DATA_ONLY|H5O_UPDATE_TIME, attr, dxpl_id) < 0)
+ if (H5O_modify(&(attr->ent), H5O_ATTR_ID, idx, 0, H5O_UPDATE_DATA_ONLY|H5O_UPDATE_TIME, attr, dxpl_id) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to update attribute header messages")
} /* end if */
@@ -729,9 +729,9 @@ H5A_write(H5A_t *attr, const H5T_t *mem_type, const void *buf, hid_t dxpl_id)
done:
/* Release resources */
- if (src_id >= 0)
+ if (src_id >= 0)
(void)H5I_dec_ref(src_id);
- if (dst_id >= 0)
+ if (dst_id >= 0)
(void)H5I_dec_ref(dst_id);
if (bkg_buf)
H5FL_BLK_FREE(attr_buf, bkg_buf);
@@ -752,7 +752,7 @@ done:
void *buf; IN: Buffer for data to read
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -797,7 +797,7 @@ done:
void *buf; IN: Buffer for data to read
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -876,9 +876,9 @@ H5A_read(const H5A_t *attr, const H5T_t *mem_type, void *buf, hid_t dxpl_id)
done:
/* Release resources */
- if (src_id >= 0)
+ if (src_id >= 0)
(void)H5I_dec_ref(src_id);
- if (dst_id >= 0)
+ if (dst_id >= 0)
(void)H5I_dec_ref(dst_id);
if (tconv_buf)
H5FL_BLK_FREE(attr_buf, tconv_buf);
@@ -899,7 +899,7 @@ done:
hid_t attr_id; IN: Attribute to get dataspace of
RETURNS
A dataspace ID on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -944,7 +944,7 @@ done:
hid_t attr_id; IN: Attribute to get datatype of
RETURNS
A datatype ID on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -986,7 +986,7 @@ H5Aget_type(hid_t attr_id)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "invalid VL location")
if (H5T_lock(dst, FALSE)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to lock transient datatype")
-
+
/* Atomize */
if ((ret_value=H5I_register(H5I_DATATYPE, dst))<0)
HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register datatype atom")
@@ -1014,7 +1014,7 @@ done:
RETURNS
This function returns the length of the attribute's name (which may be
longer than 'buf_size') on success or negative for failure.
-
+
ERRORS
DESCRIPTION
@@ -1067,10 +1067,10 @@ done:
* Function: H5Aget_storage_size
*
* Purpose: Returns the amount of storage size that is required for this
- * attribute.
+ * attribute.
*
* Return: Success: The amount of storage size allocated for the
- * attribute. The return value may be zero
+ * attribute. The return value may be zero
* if no data has been stored.
*
* Failure: Zero
@@ -1087,7 +1087,7 @@ H5Aget_storage_size(hid_t attr_id)
{
H5A_t *attr=NULL;
hsize_t ret_value; /* Return value */
-
+
FUNC_ENTER_API(H5Aget_storage_size, 0)
H5TRACE1("h","i",attr_id);
@@ -1106,12 +1106,12 @@ done:
/*-------------------------------------------------------------------------
* Function: H5A_get_storage_size
*
- * Purpose: Private function for H5Aget_storage_size. Returns the
+ * Purpose: Private function for H5Aget_storage_size. Returns the
* amount of storage size that is required for this
- * attribute.
+ * attribute.
*
* Return: Success: The amount of storage size allocated for the
- * attribute. The return value may be zero
+ * attribute. The return value may be zero
* if no data has been stored.
*
* Failure: Zero
@@ -1127,7 +1127,7 @@ static hsize_t
H5A_get_storage_size(const H5A_t *attr)
{
hsize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5A_get_storage_size)
/* Set return value */
@@ -1135,7 +1135,7 @@ H5A_get_storage_size(const H5A_t *attr)
FUNC_LEAVE_NOAPI(ret_value)
}
-
+
/*--------------------------------------------------------------------------
NAME
@@ -1147,7 +1147,7 @@ H5A_get_storage_size(const H5A_t *attr)
hid_t loc_id; IN: Object (dataset or group) to be queried
RETURNS
Number of attributes on success, negative on failure
-
+
ERRORS
DESCRIPTION
@@ -1199,9 +1199,9 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Arename
*
- * Purpose: Rename an attribute
+ * Purpose: Rename an attribute
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
* Failure: Negative
*
@@ -1217,7 +1217,7 @@ H5Arename(hid_t loc_id, const char *old_name, const char *new_name)
{
H5G_entry_t *ent = NULL; /*symtab ent of object to attribute */
herr_t ret_value; /* Return value */
-
+
FUNC_ENTER_API(H5Arename, FAIL)
H5TRACE3("e","iss",loc_id,old_name,new_name);
@@ -1240,9 +1240,9 @@ done:
/*-------------------------------------------------------------------------
* Function: H5A_rename
*
- * Purpose: Private function for H5Arename. Rename an attribute
+ * Purpose: Private function for H5Arename. Rename an attribute
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
* Failure: Negative
*
@@ -1259,14 +1259,14 @@ H5A_rename(H5G_entry_t *ent, const char *old_name, const char *new_name, hid_t d
int seq, idx=FAIL; /* Index of attribute being querried */
H5A_t found_attr; /* Attribute with OLD_NAME */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5A_rename)
/* Check arguments */
assert(ent);
assert(old_name);
assert(new_name);
-
+
/* Read in the existing attributes to check for duplicates */
seq=0;
while(H5O_read(ent, H5O_ATTR_ID, seq, &found_attr, dxpl_id)!=NULL) {
@@ -1284,12 +1284,12 @@ H5A_rename(H5G_entry_t *ent, const char *old_name, const char *new_name, hid_t d
H5E_clear ();
if(idx<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "attribute cannot be found")
-
+
/* Copy the attribute name. */
if(found_attr.name)
HDfree(found_attr.name);
- found_attr.name = HDstrdup(new_name);
- if(!found_attr.name)
+ found_attr.name = HDstrdup(new_name);
+ if(!found_attr.name)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "String copy failed")
/* Indicate entry is not opened and the attribute doesn't need fill-values. */
@@ -1297,9 +1297,9 @@ H5A_rename(H5G_entry_t *ent, const char *old_name, const char *new_name, hid_t d
found_attr.initialized=TRUE;
/* Modify the attribute message */
- if (H5O_modify(ent, H5O_ATTR_ID, idx, 0, H5O_UPDATE_TIME, &found_attr, dxpl_id) < 0)
+ if (H5O_modify(ent, H5O_ATTR_ID, idx, 0, H5O_UPDATE_TIME, &found_attr, dxpl_id) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTINIT, FAIL, "unable to update attribute header messages")
-
+
/* Close the attribute */
if(H5A_free(&found_attr)<0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "unable to close renamed attribute")
@@ -1323,7 +1323,7 @@ done:
RETURNS
Returns a negative value if something is wrong, the return value of the
last operator if it was non-zero, or zero if all attributes were processed.
-
+
ERRORS
DESCRIPTION
@@ -1337,7 +1337,7 @@ done:
over ('loc_id'), the name of the current attribute about the object
('attr_name') and the pointer to the operator data passed in to H5Aiterate
('op_data'). The return values from an operator are:
- A. Zero causes the iterator to continue, returning zero when all
+ A. Zero causes the iterator to continue, returning zero when all
attributes have been processed.
B. Positive causes the iterator to immediately return that positive
value, indicating short-circuit success. The iterator can be
@@ -1353,7 +1353,7 @@ done:
* Robb Matzke, 5 Jun 1998
* Like the group iterator, if ATTR_NUM is the null pointer then all
* attributes are processed.
- *
+ *
--------------------------------------------------------------------------*/
herr_t
H5Aiterate(hid_t loc_id, unsigned *attr_num, H5A_operator_t op, void *op_data)
@@ -1418,19 +1418,19 @@ done:
const char *name; IN: Name of attribute to delete
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
This function removes the named attribute from a dataset or group.
This function should not be used when attribute IDs are open on 'loc_id'
- as it may cause the internal indexes of the attributes to change and future
+ as it may cause the internal indexes of the attributes to change and future
writes to the open attributes to produce incorrect results.
*
* Modifications:
* Robb Matzke, 5 Jun 1998
* The LOC_ID can also be a named (committed) datatype.
- *
+ *
--------------------------------------------------------------------------*/
herr_t
H5Adelete(hid_t loc_id, const char *name)
@@ -1457,7 +1457,7 @@ H5Adelete(hid_t loc_id, const char *name)
/* Delete the attribute from the location */
if ((ret_value=H5O_remove(ent, H5O_ATTR_ID, found, H5AC_dxpl_id)) < 0)
HGOTO_ERROR(H5E_ATTR, H5E_CANTDELETE, FAIL, "unable to delete attribute header message")
-
+
done:
FUNC_LEAVE_API(ret_value)
} /* H5Adelete() */
@@ -1473,7 +1473,7 @@ done:
hid_t attr_id; IN: Attribute to release access to
RETURNS
Non-negative on success/Negative on failure
-
+
ERRORS
DESCRIPTION
@@ -1563,7 +1563,7 @@ H5A_copy(H5A_t *_new_attr, const H5A_t *old_attr, unsigned update_flags)
/* Set the return value */
ret_value=new_attr;
-
+
done:
if(ret_value==NULL) {
if(new_attr!=NULL && allocated_attr)
@@ -1618,7 +1618,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5A_close
*
- * Purpose: Frees an attribute and all associated memory.
+ * Purpose: Frees an attribute and all associated memory.
*
* Return: Non-negative on success/Negative on failure
*
@@ -1662,7 +1662,7 @@ H5A_close(H5A_t *attr)
HGOTO_ERROR(H5E_ATTR, H5E_CANTRELEASE, FAIL, "can't release object header info")
H5FL_FREE(H5A_t, attr);
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5A_close() */
diff --git a/src/H5AC.c b/src/H5AC.c
index 7415385..c6bb622 100644
--- a/src/H5AC.c
+++ b/src/H5AC.c
@@ -32,7 +32,7 @@
* Turned on "H5AC_SORT_BY_ADDR"
*
* John Mainzer, 5/19/04
- * Complete redesign and rewrite. See the header comments for
+ * Complete redesign and rewrite. See the header comments for
* H5AC_t for an overview of what is going on.
*
* John Mainzer, 6/4/04
@@ -81,7 +81,7 @@ hid_t H5AC_ind_dxpl_id=(-1);
* Private file-scope function declarations:
*/
-static herr_t H5AC_check_if_write_permitted(const H5F_t *f,
+static herr_t H5AC_check_if_write_permitted(const H5F_t *f,
hid_t dxpl_id,
hbool_t * write_permitted_ptr);
@@ -313,10 +313,10 @@ H5AC_term_interface(void)
* Modifications:
*
* Complete re-design and re-write to support the re-designed
- * metadata cache.
+ * metadata cache.
*
- * At present, the size_hint is ignored, and the
- * max_cache_size and min_clean_size fields are hard
+ * At present, the size_hint is ignored, and the
+ * max_cache_size and min_clean_size fields are hard
* coded. This should be fixed, but a parameter
* list change will be required, so I will leave it
* for now.
@@ -326,7 +326,7 @@ H5AC_term_interface(void)
* JRM - 4/28/04
*
* Reworked the function again after abstracting its guts to
- * the similar function in H5C.c. The function is now a
+ * the similar function in H5C.c. The function is now a
* wrapper for H5C_create().
* JRM - 6/4/04
*-------------------------------------------------------------------------
@@ -390,14 +390,14 @@ done:
* Modifications:
*
* Complete re-design and re-write to support the re-designed
- * metadata cache.
+ * metadata cache.
* JRM - 5/12/04
*
* Abstracted the guts of the function to H5C_dest() in H5C.c,
* and then re-wrote the function as a wrapper for H5C_dest().
*
* JRM - 6/7/04
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -430,34 +430,34 @@ done:
* Function: H5AC_flush
*
* Purpose: Flush (and possibly destroy) the metadata cache associated
- * with the specified file.
+ * with the specified file.
*
* This is a re-write of an earlier version of the function
* which was reputedly capable of flushing (and destroying
- * if requested) individual entries, individual entries if
- * they match the supplied type, all entries of a given type,
- * as well as all entries in the cache.
+ * if requested) individual entries, individual entries if
+ * they match the supplied type, all entries of a given type,
+ * as well as all entries in the cache.
*
* As only this last capability is actually used at present,
- * I have not implemented the other capabilities in this
- * version of the function.
+ * I have not implemented the other capabilities in this
+ * version of the function.
*
- * The type and addr parameters are retained to avoid source
- * code changed, but values other than NULL and HADDR_UNDEF
- * respectively are errors. If all goes well, they should
+ * The type and addr parameters are retained to avoid source
+ * code changed, but values other than NULL and HADDR_UNDEF
+ * respectively are errors. If all goes well, they should
* be removed, and the function renamed to something more
* descriptive -- perhaps H5AC_flush_cache.
*
* If the cache contains protected entries, the function will
- * fail, as protected entries cannot be flushed. However
- * all unprotected entries should be flushed before the
+ * fail, as protected entries cannot be flushed. However
+ * all unprotected entries should be flushed before the
* function returns failure.
- *
- * For historical purposes, the original version of the
+ *
+ * For historical purposes, the original version of the
* purpose section is reproduced below:
*
* ============ Original Version of "Purpose:" ============
- *
+ *
* Flushes (and destroys if DESTROY is non-zero) the specified
* entry from the cache. If the entry TYPE is CACHE_FREE and
* ADDR is HADDR_UNDEF then all types of entries are
@@ -500,10 +500,10 @@ H5AC_flush(H5F_t *f, hid_t dxpl_id, unsigned flags)
HDassert(f);
HDassert(f->shared->cache);
- status = H5C_flush_cache(f,
- dxpl_id,
- H5AC_noblock_dxpl_id,
- f->shared->cache,
+ status = H5C_flush_cache(f,
+ dxpl_id,
+ H5AC_noblock_dxpl_id,
+ f->shared->cache,
flags);
if ( status < 0 ) {
@@ -550,8 +550,8 @@ done:
* at the beginning of the function.
*
* JRM - 6/7/04
- * Abstracted the guts of the function to H5C_insert_entry()
- * in H5C.c, and then re-wrote the function as a wrapper for
+ * Abstracted the guts of the function to H5C_insert_entry()
+ * in H5C.c, and then re-wrote the function as a wrapper for
* H5C_insert_entry().
*
*-------------------------------------------------------------------------
@@ -584,7 +584,7 @@ H5AC_set(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr, void *
result = H5C_insert_entry(f,
dxpl_id,
- H5AC_noblock_dxpl_id,
+ H5AC_noblock_dxpl_id,
cache,
type,
addr,
@@ -626,8 +626,8 @@ done:
* Complete rewrite for the new meta-data cache.
*
* JRM - 6/7/04
- * Abstracted the guts of the function to H5C_rename_entry()
- * in H5C.c, and then re-wrote the function as a wrapper for
+ * Abstracted the guts of the function to H5C_rename_entry()
+ * in H5C.c, and then re-wrote the function as a wrapper for
* H5C_rename_entry().
*
*-------------------------------------------------------------------------
@@ -668,7 +668,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5AC_protect
*
- * Purpose: If the target entry is not in the cache, load it. If
+ * Purpose: If the target entry is not in the cache, load it. If
* necessary, attempt to evict one or more entries to keep
* the cache within its maximum size.
*
@@ -676,8 +676,8 @@ done:
* to the caller. The caller must call H5AC_unprotect() when
* finished with the entry.
*
- * While it is protected, the entry may not be either evicted
- * or flushed -- nor may it be accessed by another call to
+ * While it is protected, the entry may not be either evicted
+ * or flushed -- nor may it be accessed by another call to
* H5AC_protect. Any attempt to do so will result in a failure.
*
* This comment is a re-write of the original Purpose: section.
@@ -718,19 +718,19 @@ done:
* Purpose section above.
*
* JRM - 6/7/04
- * Abstracted the guts of the function to H5C_protect()
- * in H5C.c, and then re-wrote the function as a wrapper for
+ * Abstracted the guts of the function to H5C_protect()
+ * in H5C.c, and then re-wrote the function as a wrapper for
* H5C_protect().
*
*-------------------------------------------------------------------------
*/
void *
-H5AC_protect(H5F_t *f,
- hid_t dxpl_id,
- const H5AC_class_t *type,
+H5AC_protect(H5F_t *f,
+ hid_t dxpl_id,
+ const H5AC_class_t *type,
haddr_t addr,
- const void *udata1,
- void *udata2,
+ const void *udata1,
+ void *udata2,
H5AC_protect_t
UNUSED
rw)
@@ -751,7 +751,7 @@ H5AC_protect(H5F_t *f,
thing = H5C_protect(f,
dxpl_id,
- H5AC_noblock_dxpl_id,
+ H5AC_noblock_dxpl_id,
f->shared->cache,
type,
addr,
@@ -781,15 +781,15 @@ done:
* and give it back to the replacement policy.
*
* The TYPE and ADDR arguments must be the same as those in
- * the corresponding call to H5AC_protect() and the THING
- * argument must be the value returned by that call to
+ * the corresponding call to H5AC_protect() and the THING
+ * argument must be the value returned by that call to
* H5AC_protect().
*
* If the deleted flag is TRUE, simply remove the target entry
- * from the cache, clear it, and free it without writing it to
+ * from the cache, clear it, and free it without writing it to
* disk.
*
- * This verion of the function is a complete re-write to
+ * This verion of the function is a complete re-write to
* use the new metadata cache. While there isn't all that
* much difference between the old and new Purpose sections,
* the original version is given below.
@@ -828,8 +828,8 @@ done:
* Complete re-write for the new metadata cache.
*
* JRM - 6/7/04
- * Abstracted the guts of the function to H5C_unprotect()
- * in H5C.c, and then re-wrote the function as a wrapper for
+ * Abstracted the guts of the function to H5C_unprotect()
+ * in H5C.c, and then re-wrote the function as a wrapper for
* H5C_unprotect().
*
*-------------------------------------------------------------------------
@@ -854,7 +854,7 @@ H5AC_unprotect(H5F_t *f, hid_t dxpl_id, const H5AC_class_t *type, haddr_t addr,
result = H5C_unprotect(f,
dxpl_id,
- H5AC_noblock_dxpl_id,
+ H5AC_noblock_dxpl_id,
f->shared->cache,
type,
addr,
@@ -889,8 +889,8 @@ done:
* Re-write to support the new metadata cache.
*
* JRM - 6/7/04
- * Abstracted the guts of the function to H5C_stats()
- * in H5C.c, and then re-wrote the function as a wrapper for
+ * Abstracted the guts of the function to H5C_stats()
+ * in H5C.c, and then re-wrote the function as a wrapper for
* H5C_stats().
*
*-------------------------------------------------------------------------
@@ -921,10 +921,10 @@ done:
*
* Function: H5AC_check_if_write_permitted
*
- * Purpose: Determine if a write is permitted under the current
- * circumstances, and set *write_permitted_ptr accordingly.
- * As a general rule it is, but when we are running in parallel
- * mode with collective I/O, we must ensure that a read cannot
+ * Purpose: Determine if a write is permitted under the current
+ * circumstances, and set *write_permitted_ptr accordingly.
+ * As a general rule it is, but when we are running in parallel
+ * mode with collective I/O, we must ensure that a read cannot
* cause a write.
*
* In the event of failure, the value of *write_permitted_ptr
diff --git a/src/H5ACprivate.h b/src/H5ACprivate.h
index 8c34d92..7b18ccc 100644
--- a/src/H5ACprivate.h
+++ b/src/H5ACprivate.h
@@ -44,10 +44,10 @@
#define H5AC_LHEAP_ID 2 /*local heap */
#define H5AC_GHEAP_ID 3 /*global heap */
#define H5AC_OHDR_ID 4 /*object header */
-#define H5AC_NTYPES 5
+#define H5AC_NTYPES 5
-/* H5AC_DUMP_STATS_ON_CLOSE should always be FALSE when
- * H5C_COLLECT_CACHE_STATS is FALSE.
+/* H5AC_DUMP_STATS_ON_CLOSE should always be FALSE when
+ * H5C_COLLECT_CACHE_STATS is FALSE.
*
* When H5C_COLLECT_CACHE_STATS is TRUE, H5AC_DUMP_STATS_ON_CLOSE must
* be FALSE for "make check" to succeed, but may be set to TRUE at other
diff --git a/src/H5B.c b/src/H5B.c
index 55f4b73..adc3196 100644
--- a/src/H5B.c
+++ b/src/H5B.c
@@ -47,7 +47,7 @@
* e. left[x] is a pointer to the node's left sibling
* or the null pointer if this is the left-most
* node at this level in the tree.
- *
+ *
* f. right[x] is a pointer to the node's right
* sibling or the null pointer if this is the
* right-most node at this level in the tree.
@@ -242,7 +242,7 @@ H5B_create(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, void *udata,
#ifdef H5B_DEBUG
H5B_assert(f, dxpl_id, *addr_p, shared->type, udata);
#endif
-
+
done:
if (ret_value<0) {
if(shared && shared->sizeof_rnode>0) {
@@ -252,7 +252,7 @@ done:
if (bt)
(void)H5B_dest(f,bt);
}
-
+
FUNC_LEAVE_NOAPI(ret_value)
} /*lint !e818 Can't make udata a pointer to const */
@@ -571,7 +571,7 @@ H5B_clear(H5F_t *f, H5B_t *bt, hbool_t destroy)
/* Reset the dirty flag. */
bt->cache_info.is_dirty = FALSE;
-
+
if (destroy)
if (H5B_dest(f, bt) < 0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTFREE, FAIL, "unable to destroy B-tree node")
@@ -584,8 +584,8 @@ done:
/*-------------------------------------------------------------------------
* Function: H5B_compute_size
*
- * Purpose: Compute the size in bytes of the specified instance of
- * H5B_t on disk, and return it in *len_ptr. On failure,
+ * Purpose: Compute the size in bytes of the specified instance of
+ * H5B_t on disk, and return it in *len_ptr. On failure,
* the value of *len_ptr is undefined.
*
* Return: Non-negative on success/Negative on failure
@@ -704,7 +704,7 @@ H5B_find(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void *u
#else /* OLD_WAY */
HGOTO_DONE(FAIL)
#endif /* OLD_WAY */
-
+
/*
* Follow the link to the subtree or to the data node.
*/
@@ -848,7 +848,7 @@ H5B_split(H5F_t *f, hid_t dxpl_id, H5B_t *old_bt, haddr_t old_addr,
if (H5DEBUG(B))
fprintf(H5DEBUG(B), " split %3d/%-3d\n", nleft, nright);
#endif
-
+
/*
* Create the new B-tree node.
*/
@@ -875,7 +875,7 @@ H5B_split(H5F_t *f, hid_t dxpl_id, H5B_t *old_bt, haddr_t old_addr,
*/
old_bt->cache_info.is_dirty = TRUE;
old_bt->nchildren = nleft;
-
+
/*
* Update sibling pointers.
*/
@@ -982,14 +982,14 @@ H5B_insert(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
HGOTO_ERROR(H5E_BTREE, H5E_PROTECT, FAIL, "unable to release new child")
bt = NULL;
-
+
/* the new node */
if (NULL == (bt = H5AC_protect(f, dxpl_id, H5AC_BT, child, type, udata, H5AC_READ)))
HGOTO_ERROR(H5E_BTREE, H5E_CANTLOAD, FAIL, "unable to load new node")
if (!rt_key_changed)
HDmemcpy(rt_key, H5B_NKEY(bt,shared,bt->nchildren), type->sizeof_nkey);
-
+
if (H5AC_unprotect(f, dxpl_id, H5AC_BT, child, bt, FALSE) != SUCCEED)
HGOTO_ERROR(H5E_BTREE, H5E_PROTECT, FAIL, "unable to release new child")
@@ -1071,11 +1071,11 @@ H5B_insert(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr,
#ifdef H5B_DEBUG
H5B_assert(f, dxpl_id, addr, type, udata);
#endif
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
-
+
/*-------------------------------------------------------------------------
* Function: H5B_insert_child
@@ -1422,7 +1422,7 @@ H5B_insert_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type
if (H5B_insert_child(tmp_bt, idx, child_addr, my_ins, md_key) < 0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTINSERT, H5B_INS_ERROR, "can't insert child")
}
-
+
/*
* If this node split, return the mid key (the one that is shared
* by the left and right node).
@@ -1492,7 +1492,7 @@ H5B_iterate (H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, H5B_operator_t op
unsigned level;
haddr_t left_child;
herr_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5B_iterate, FAIL)
/*
@@ -1610,7 +1610,7 @@ H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type
unsigned idx=0, lt=0, rt; /* Final, left & right indices */
int cmp=1; /* Key comparison value */
H5B_ins_t ret_value = H5B_INS_ERROR;
-
+
FUNC_ENTER_NOAPI(H5B_remove_helper, H5B_INS_ERROR)
assert(f);
@@ -1785,7 +1785,7 @@ H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type
*/
bt->cache_info.is_dirty = TRUE;
bt->nchildren -= 1;
-
+
HDmemmove(bt->native,
bt->native + type->sizeof_nkey,
(bt->nchildren+1) * type->sizeof_nkey);
@@ -1839,7 +1839,7 @@ H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type
*/
bt->cache_info.is_dirty = TRUE;
bt->nchildren -= 1;
-
+
HDmemmove(bt->native + idx * type->sizeof_nkey,
bt->native + (idx+1) * type->sizeof_nkey,
(bt->nchildren+1-idx) * type->sizeof_nkey);
@@ -1847,7 +1847,7 @@ H5B_remove_helper(H5F_t *f, hid_t dxpl_id, haddr_t addr, const H5B_class_t *type
bt->child+idx+1,
(bt->nchildren-idx) * sizeof(haddr_t));
ret_value = H5B_INS_NOOP;
-
+
} else {
ret_value = H5B_INS_NOOP;
}
@@ -1890,7 +1890,7 @@ H5B_remove(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void
hbool_t rt_key_changed = FALSE; /*right key changed?*/
H5B_t *bt = NULL; /*btree node */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5B_remove, FAIL)
/* Check args */
@@ -1915,7 +1915,7 @@ H5B_remove(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void
bt->level = 0;
bt->cache_info.is_dirty = TRUE;
}
-
+
if (H5AC_unprotect(f, dxpl_id, H5AC_BT, addr, bt, FALSE) != SUCCEED)
HGOTO_ERROR(H5E_BTREE, H5E_PROTECT, FAIL, "unable to release node")
@@ -1951,7 +1951,7 @@ H5B_delete(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void
H5B_shared_t *shared; /* Pointer to shared B-tree info */
unsigned u; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5B_delete, FAIL)
/* Check args */
@@ -1991,7 +1991,7 @@ H5B_delete(H5F_t *f, hid_t dxpl_id, const H5B_class_t *type, haddr_t addr, void
/* Delete this node from disk */
if (H5MF_xfree(f, H5FD_MEM_BTREE, dxpl_id, addr, (hsize_t)shared->sizeof_rnode)<0)
HGOTO_ERROR(H5E_BTREE, H5E_CANTFREE, FAIL, "unable to free B-tree node")
-
+
done:
if (bt && H5AC_unprotect(f, dxpl_id, H5AC_BT, addr, bt, TRUE)<0)
HDONE_ERROR(H5E_BTREE, H5E_PROTECT, FAIL, "unable to release B-tree node in cache")
@@ -2207,7 +2207,7 @@ H5B_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int f
HDfprintf(stream, "%*sChild %d...\n", indent, "", u);
HDfprintf(stream, "%*s%-*s %a\n", indent + 3, "", MAX(0, fwidth - 3),
"Address:", bt->child[u]);
-
+
/* If there is a key debugging routine, use it to display the left & right keys */
if (type->debug_key) {
/* Decode the 'left' key & print it */
diff --git a/src/H5Bprivate.h b/src/H5Bprivate.h
index b4b1a97..28494f7 100644
--- a/src/H5Bprivate.h
+++ b/src/H5Bprivate.h
@@ -47,7 +47,7 @@
#endif
#define H5B_MAGIC "TREE" /*tree node magic number */
#define H5B_SIZEOF_MAGIC 4 /*size of magic number */
-
+
typedef enum H5B_ins_t {
H5B_INS_ERROR = -1, /*error return value */
H5B_INS_NOOP = 0, /*insert made no changes */
@@ -103,7 +103,7 @@ typedef struct H5B_class_t {
int (*cmp2)(H5F_t*, hid_t, void*, void*, void*); /*compare 2 keys */
int (*cmp3)(H5F_t*, hid_t, void*, void*, void*); /*compare 3 keys */
herr_t (*found)(H5F_t*, hid_t, haddr_t, const void*, void*);
-
+
/* insert new data */
H5B_ins_t (*insert)(H5F_t*, hid_t, haddr_t, void*, hbool_t*, void*, void*,
void*, hbool_t*, haddr_t*);
@@ -111,7 +111,7 @@ typedef struct H5B_class_t {
/* min insert uses min leaf, not new(), similarily for max insert */
hbool_t follow_min;
hbool_t follow_max;
-
+
/* remove existing data */
H5B_ins_t (*remove)(H5F_t*, hid_t, haddr_t, void*, hbool_t*, void*, void*,
hbool_t*);
diff --git a/src/H5C.c b/src/H5C.c
index fbac5fa..b73db52 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -19,13 +19,13 @@
* John Mainzer
*
* Purpose: Functions in this file implement a generic cache for
- * things which exist on disk, and which may be
+ * things which exist on disk, and which may be
* unambiguously referenced by their disk addresses.
*
- * The code in this module was initially written in
+ * The code in this module was initially written in
* support of a complete re-write of the metadata cache
* in H5AC.c However, other uses for the cache code
- * suggested themselves, and thus this file was created
+ * suggested themselves, and thus this file was created
* in an attempt to support re-use.
*
* For a detailed overview of the cache, please see the
@@ -57,7 +57,7 @@
* unprotect -- or some other way should be found to advise the
* cache of changes in entry size.
*
- * - Flush entries in increasing address order in
+ * - Flush entries in increasing address order in
* H5C_make_space_in_cache().
*
* - Also in H5C_make_space_in_cache(), use high and low water marks
@@ -98,11 +98,11 @@
/****************************************************************************
*
- * We maintain doubly linked lists of instances of H5C_cache_entry_t for a
- * variety of reasons -- protected list, LRU list, and the clean and dirty
- * LRU lists at present. The following macros support linking and unlinking
- * of instances of H5C_cache_entry_t by both their regular and auxilary next
- * and previous pointers.
+ * We maintain doubly linked lists of instances of H5C_cache_entry_t for a
+ * variety of reasons -- protected list, LRU list, and the clean and dirty
+ * LRU lists at present. The following macros support linking and unlinking
+ * of instances of H5C_cache_entry_t by both their regular and auxilary next
+ * and previous pointers.
*
* The size and length fields are also maintained.
*
@@ -436,7 +436,7 @@ if ( ( (entry_ptr) == NULL ) || \
if ( (cache_ptr)->slist_len > (cache_ptr)->max_slist_len ) \
(cache_ptr)->max_slist_len = (cache_ptr)->slist_len; \
if ( (cache_ptr)->slist_size > (cache_ptr)->max_slist_size ) \
- (cache_ptr)->max_slist_size = (cache_ptr)->slist_size;
+ (cache_ptr)->max_slist_size = (cache_ptr)->slist_size;
#define H5C__UPDATE_STATS_FOR_RENAME(cache_ptr, entry_ptr) \
(((cache_ptr)->renames)[(entry_ptr)->type->id])++;
@@ -521,16 +521,16 @@ if ( ( (entry_ptr) == NULL ) || \
#else /* H5C_COLLECT_CACHE_ENTRY_STATS */
-#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
+#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
#define H5C__UPDATE_STATS_FOR_CLEAR(cache_ptr, entry_ptr) \
- (((cache_ptr)->clears)[(entry_ptr)->type->id])++;
+ (((cache_ptr)->clears)[(entry_ptr)->type->id])++;
#define H5C__UPDATE_STATS_FOR_FLUSH(cache_ptr, entry_ptr) \
- (((cache_ptr)->flushes)[(entry_ptr)->type->id])++;
+ (((cache_ptr)->flushes)[(entry_ptr)->type->id])++;
#define H5C__UPDATE_STATS_FOR_EVICTION(cache_ptr, entry_ptr) \
- (((cache_ptr)->evictions)[(entry_ptr)->type->id])++;
+ (((cache_ptr)->evictions)[(entry_ptr)->type->id])++;
#define H5C__UPDATE_STATS_FOR_PROTECT(cache_ptr, entry_ptr, hit) \
if ( hit ) \
@@ -550,7 +550,7 @@ if ( ( (entry_ptr) == NULL ) || \
#else /* H5C_COLLECT_CACHE_STATS */
-#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
+#define H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
#define H5C__UPDATE_STATS_FOR_UNPROTECT(cache_ptr)
#define H5C__UPDATE_STATS_FOR_RENAME(cache_ptr, entry_ptr)
#define H5C__UPDATE_STATS_FOR_HT_INSERTION(cache_ptr)
@@ -745,12 +745,12 @@ if ( ( (cache_ptr) == NULL ) || \
} \
} \
H5C__UPDATE_STATS_FOR_HT_SEARCH(cache_ptr, (entry_ptr != NULL), depth) \
-}
+}
/**************************************************************************
*
- * Skip list insertion and deletion macros:
+ * Skip list insertion and deletion macros:
*
* These used to be functions, but I converted them to macros to avoid some
* function call overhead.
@@ -761,7 +761,7 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Macro: H5C__INSERT_ENTRY_IN_SLIST
*
- * Purpose: Insert the specified instance of H5C_cache_entry_t into
+ * Purpose: Insert the specified instance of H5C_cache_entry_t into
* the skip list in the specified instance of H5C_t. Update
* the associated length and size fields.
*
@@ -773,8 +773,8 @@ if ( ( (cache_ptr) == NULL ) || \
*
* JRM -- 7/21/04
* Updated function to set the in_tree flag when inserting
- * an entry into the tree. Also modified the function to
- * update the tree size and len fields instead of the similar
+ * an entry into the tree. Also modified the function to
+ * update the tree size and len fields instead of the similar
* index fields.
*
* All of this is part of the modifications to support the
@@ -782,7 +782,7 @@ if ( ( (cache_ptr) == NULL ) || \
*
* JRM -- 7/27/04
* Converted the function H5C_insert_entry_in_tree() into
- * the macro H5C__INSERT_ENTRY_IN_TREE in the hopes of
+ * the macro H5C__INSERT_ENTRY_IN_TREE in the hopes of
* wringing a little more speed out of the cache.
*
* Note that we don't bother to check if the entry is already
@@ -820,7 +820,7 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Function: H5C__REMOVE_ENTRY_FROM_SLIST
*
- * Purpose: Remove the specified instance of H5C_cache_entry_t from the
+ * Purpose: Remove the specified instance of H5C_cache_entry_t from the
* index skip list in the specified instance of H5C_t. Update
* the associated length and size fields.
*
@@ -870,7 +870,7 @@ if ( ( (cache_ptr) == NULL ) || \
/**************************************************************************
*
- * Replacement policy update macros:
+ * Replacement policy update macros:
*
* These used to be functions, but I converted them to macros to avoid some
* function call overhead.
@@ -881,10 +881,10 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Macro: H5C__UPDATE_RP_FOR_EVICTION
*
- * Purpose: Update the replacement policy data structures for an
+ * Purpose: Update the replacement policy data structures for an
* eviction of the specified cache entry.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -978,10 +978,10 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Macro: H5C__UPDATE_RP_FOR_FLUSH
*
- * Purpose: Update the replacement policy data structures for a flush
+ * Purpose: Update the replacement policy data structures for a flush
* of the specified cache entry.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -1098,7 +1098,7 @@ if ( ( (cache_ptr) == NULL ) || \
* Purpose: Update the replacement policy data structures for an
* insertion of the specified cache entry.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -1193,14 +1193,14 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Macro: H5C__UPDATE_RP_FOR_PROTECT
*
- * Purpose: Update the replacement policy data structures for a
+ * Purpose: Update the replacement policy data structures for a
* protect of the specified cache entry.
*
- * To do this, unlink the specified entry from any data
+ * To do this, unlink the specified entry from any data
* structures used by the replacement policy, and add the
* entry to the protected list.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -1314,10 +1314,10 @@ if ( ( (cache_ptr) == NULL ) || \
*
* Macro: H5C__UPDATE_RP_FOR_RENAME
*
- * Purpose: Update the replacement policy data structures for a
+ * Purpose: Update the replacement policy data structures for a
* rename of the specified cache entry.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -1440,7 +1440,7 @@ if ( ( (cache_ptr) == NULL ) || \
* list, and re-insert it in the data structures used by the
* current replacement policy.
*
- * At present, we only support the modified LRU policy, so
+ * At present, we only support the modified LRU policy, so
* this function deals with that case unconditionally. If
* we ever support other replacement policies, the function
* should switch on the current policy and act accordingly.
@@ -1452,8 +1452,8 @@ if ( ( (cache_ptr) == NULL ) || \
* Modifications:
*
* JRM - 7/27/04
- * Converted the function H5C_update_rp_for_unprotect() to
- * the macro H5C__UPDATE_RP_FOR_UNPROTECT in an effort to
+ * Converted the function H5C_update_rp_for_unprotect() to
+ * the macro H5C__UPDATE_RP_FOR_UNPROTECT in an effort to
* squeeze a bit more performance out of the cache.
*
* At least for the first cut, I am leaving the comments and
@@ -1554,27 +1554,27 @@ if ( ( (cache_ptr) == NULL ) || \
*
* structure H5C_t
*
- * Catchall structure for all variables specific to an instance of the cache.
+ * Catchall structure for all variables specific to an instance of the cache.
*
- * While the individual fields of the structure are discussed below, the
+ * While the individual fields of the structure are discussed below, the
* following overview may be helpful.
*
* Entries in the cache are stored in an instance of H5TB_TREE, indexed on
- * the entry's disk address. While the H5TB_TREE is less efficient than
+ * the entry's disk address. While the H5TB_TREE is less efficient than
* hash table, it keeps the entries in address sorted order. As flushes
- * in parallel mode are more efficient if they are issued in increasing
+ * in parallel mode are more efficient if they are issued in increasing
* address order, this is a significant benefit. Also the H5TB_TREE code
* was readily available, which reduced development time.
*
* While the cache was designed with multiple replacement policies in mind,
- * at present only a modified form of LRU is supported.
+ * at present only a modified form of LRU is supported.
*
* JRM - 4/26/04
*
* Profiling has indicated that searches in the instance of H5TB_TREE are
- * too expensive. To deal with this issue, I have augmented the cache
- * with a hash table in which all entries will be stored. Given the
- * advantages of flushing entries in increasing address order, the TBBT
+ * too expensive. To deal with this issue, I have augmented the cache
+ * with a hash table in which all entries will be stored. Given the
+ * advantages of flushing entries in increasing address order, the TBBT
* is retained, but only dirty entries are stored in it. At least for
* now, we will leave entries in the TBBT after they are flushed.
*
@@ -1591,7 +1591,7 @@ if ( ( (cache_ptr) == NULL ) || \
* *********************************************
*
* WARNING: A copy of H5C_t is in tst/cache.c (under the name "local_H5C_t"
- * to allow the test code to access the internal fields of the
+ * to allow the test code to access the internal fields of the
* cache. If you modify H5C_t, be sure to update local_H5C_t
* in cache.c as well.
*
@@ -1601,12 +1601,12 @@ if ( ( (cache_ptr) == NULL ) || \
* field is used to validate pointers to instances of H5C_t.
*
* max_type_id: Integer field containing the maximum type id number assigned
- * to a type of entry in the cache. All type ids from 0 to
- * max_type_id inclusive must be defined. The names of the
+ * to a type of entry in the cache. All type ids from 0 to
+ * max_type_id inclusive must be defined. The names of the
* types are stored in the type_name_table discussed below, and
* indexed by the ids.
*
- * type_name_table_ptr: Pointer to an array of pointer to char of length
+ * type_name_table_ptr: Pointer to an array of pointer to char of length
* max_type_id + 1. The strings pointed to by the entries
* in the array are the names of the entry types associated
* with the indexing type IDs.
@@ -1621,11 +1621,11 @@ if ( ( (cache_ptr) == NULL ) || \
* max_cache_size, it will do so. The cache will attempt
* to reduce its size as entries are unprotected.
*
- * b) When running in parallel mode, the cache may not be
- * permitted to flush a dirty entry in response to a read.
- * If there are no clean entries available to evict, the
- * cache will exceed its maximum size. Again the cache
- * will attempt to reduce its size to the max_cache_size
+ * b) When running in parallel mode, the cache may not be
+ * permitted to flush a dirty entry in response to a read.
+ * If there are no clean entries available to evict, the
+ * cache will exceed its maximum size. Again the cache
+ * will attempt to reduce its size to the max_cache_size
* limit on the next cache write.
*
* min_clean_size: Nominal minimum number of clean bytes in the cache.
@@ -1634,11 +1634,11 @@ if ( ( (cache_ptr) == NULL ) || \
* a soft limit.
*
*
- * In addition to the call back functions required for each entry, the
+ * In addition to the call back functions required for each entry, the
* cache requires the following call back functions for this instance of
* the cache as a whole:
- *
- * check_write_permitted: In certain applications, the cache may not
+ *
+ * check_write_permitted: In certain applications, the cache may not
* be allowed to write to disk at certain time. If specified,
* the check_write_permitted function is used to determine if
* a write is permissible at any given point in time.
@@ -1650,7 +1650,7 @@ if ( ( (cache_ptr) == NULL ) || \
* The cache requires an index to facilitate searching for entries. The
* following fields support that index.
*
- * index_len: Number of entries currently in the hash table used to index
+ * index_len: Number of entries currently in the hash table used to index
* the cache.
*
* index_size: Number of bytes of cache entries currently stored in the
@@ -1664,16 +1664,16 @@ if ( ( (cache_ptr) == NULL ) || \
*
* index: Array of pointer to H5C_cache_entry_t of size
* H5C__HASH_TABLE_LEN. At present, this value is a power
- * of two, not the usual prime number.
+ * of two, not the usual prime number.
*
- * I hope that the variable size of cache elements, the large
+ * I hope that the variable size of cache elements, the large
* hash table size, and the way in which HDF5 allocates space
- * will combine to avoid problems with periodicity. If so, we
- * can use a trivial hash function (a bit-and and a 3 bit left
- * shift) with some small savings.
+ * will combine to avoid problems with periodicity. If so, we
+ * can use a trivial hash function (a bit-and and a 3 bit left
+ * shift) with some small savings.
*
* If not, it will become evident in the statistics. Changing
- * to the usual prime number length hash table will require
+ * to the usual prime number length hash table will require
* changing the H5C__HASH_FCN macro and the deletion of the
* H5C__HASH_MASK #define. No other changes should be required.
*
@@ -1688,7 +1688,7 @@ if ( ( (cache_ptr) == NULL ) || \
* are flushed.
*
* slist_len: Number of entries currently in the skip list
- * used to maintain a sorted list of dirty entries in the
+ * used to maintain a sorted list of dirty entries in the
* cache.
*
* slist_size: Number of bytes of cache entries currently stored in the
@@ -1851,39 +1851,39 @@ if ( ( (cache_ptr) == NULL ) || \
* below. The first set are collected only when H5C_COLLECT_CACHE_STATS
* is true.
*
- * hits: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type id
- * equal to the array index has been in cache when requested in
+ * hits: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type id
+ * equal to the array index has been in cache when requested in
* the current epoch.
*
- * misses: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type id
- * equal to the array index has not been in cache when
+ * misses: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type id
+ * equal to the array index has not been in cache when
* requested in the current epoch.
*
- * insertions: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type
- * id equal to the array index has been inserted into the
+ * insertions: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type
+ * id equal to the array index has been inserted into the
* cache in the current epoch.
*
- * clears: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type
- * id equal to the array index has been cleared in the current
+ * clears: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type
+ * id equal to the array index has been cleared in the current
* epoch.
*
- * flushes: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type id
+ * flushes: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type id
* equal to the array index has been written to disk in the
* current epoch.
*
- * evictions: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type id
- * equal to the array index has been evicted from the cache in
+ * evictions: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type id
+ * equal to the array index has been evicted from the cache in
* the current epoch.
*
- * renames: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the number of times an entry with type
- * id equal to the array index has been renamed in the current
+ * renames: Array of int64 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the number of times an entry with type
+ * id equal to the array index has been renamed in the current
* epoch.
*
* total_ht_insertions: Number of times entries have been inserted into the
@@ -1892,10 +1892,10 @@ if ( ( (cache_ptr) == NULL ) || \
* total_ht_deletions: Number of times entries have been deleted from the
* hash table in the current epoch.
*
- * successful_ht_searches: int64 containing the total number of successful
+ * successful_ht_searches: int64 containing the total number of successful
* searches of the hash table in the current epoch.
*
- * total_successful_ht_search_depth: int64 containing the total number of
+ * total_successful_ht_search_depth: int64 containing the total number of
* entries other than the targets examined in successful
* searches of the hash table in the current epoch.
*
@@ -1903,7 +1903,7 @@ if ( ( (cache_ptr) == NULL ) || \
* searches of the hash table in the current epoch.
*
* total_failed_ht_search_depth: int64 containing the total number of
- * entries examined in unsuccessful searches of the hash
+ * entries examined in unsuccessful searches of the hash
* table in the current epoch.
*
* max_index_len: Largest value attained by the index_len field in the
@@ -1927,28 +1927,28 @@ if ( ( (cache_ptr) == NULL ) || \
* The remaining stats are collected only when both H5C_COLLECT_CACHE_STATS
* and H5C_COLLECT_CACHE_ENTRY_STATS are true.
*
- * max_accesses: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the maximum number of times any single
- * entry with type id equal to the array index has been
+ * max_accesses: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the maximum number of times any single
+ * entry with type id equal to the array index has been
* accessed in the current epoch.
*
- * min_accesses: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the minimum number of times any single
- * entry with type id equal to the array index has been
+ * min_accesses: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the minimum number of times any single
+ * entry with type id equal to the array index has been
* accessed in the current epoch.
*
- * max_clears: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the maximum number of times any single
- * entry with type id equal to the array index has been cleared
+ * max_clears: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the maximum number of times any single
+ * entry with type id equal to the array index has been cleared
* in the current epoch.
*
- * max_flushes: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the maximum number of times any single
- * entry with type id equal to the array index has been
+ * max_flushes: Array of int32 of length H5C__MAX_NUM_TYPE_IDS. The cells
+ * are used to record the maximum number of times any single
+ * entry with type id equal to the array index has been
* flushed in the current epoch.
*
* max_size: Array of size_t of length H5C__MAX_NUM_TYPE_IDS. The cells
- * are used to record the maximum size of any single entry
+ * are used to record the maximum size of any single entry
* with type id equal to the array index that has resided in
* the cache in the current epoch.
*
@@ -1966,9 +1966,9 @@ if ( ( (cache_ptr) == NULL ) || \
* When this flag is set, all sanity checks on the file
* parameters are skipped. The field defaults to FALSE.
*
- * skip_dxpl_id_checks: Boolean flag used to skip sanity checks on the
+ * skip_dxpl_id_checks: Boolean flag used to skip sanity checks on the
* dxpl_id parameters passed to the cache. These are not
- * used directly by the cache, so skipping the checks
+ * used directly by the cache, so skipping the checks
* simplifies the test bed.
*
* When this flag is set, all sanity checks on the dxpl_id
@@ -2105,16 +2105,16 @@ static herr_t H5C_make_space_in_cache(H5F_t * f,
/*-------------------------------------------------------------------------
* Function: H5C_create
*
- * Purpose: Allocate, initialize, and return the address of a new
+ * Purpose: Allocate, initialize, and return the address of a new
* instance of H5C_t.
*
- * In general, the max_cache_size parameter must be positive,
- * and the min_clean_size parameter must lie in the closed
- * interval [0, max_cache_size].
+ * In general, the max_cache_size parameter must be positive,
+ * and the min_clean_size parameter must lie in the closed
+ * interval [0, max_cache_size].
*
* The check_write_permitted parameter must either be NULL,
* or point to a function of type H5C_write_permitted_func_t.
- * If it is NULL, the cache will presume that writes are
+ * If it is NULL, the cache will presume that writes are
* always permitted.
*
* Return: Success: Pointer to the new instance.
@@ -2165,7 +2165,7 @@ H5C_create(size_t max_cache_size,
"memory allocation failed")
}
- if ( (cache_ptr->slist_ptr = H5SL_create(H5SL_TYPE_HADDR,0.5,16))
+ if ( (cache_ptr->slist_ptr = H5SL_create(H5SL_TYPE_HADDR,0.5,16))
== NULL ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTCREATE, NULL, "can't create skip list.")
@@ -2254,11 +2254,11 @@ done:
* This function fails if any object are protected since the
* resulting file might not be consistent.
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the destroy (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). This is useful in the metadata
- * cache, but may not be needed elsewhere. If so, just use the
+ * by the destroy (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). This is useful in the metadata
+ * cache, but may not be needed elsewhere. If so, just use the
* same dxpl_id for both parameters.
*
* Note that *cache_ptr has been freed upon successful return.
@@ -2273,9 +2273,9 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5C_dest(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_dest(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr)
{
herr_t ret_value=SUCCEED; /* Return value */
@@ -2286,7 +2286,7 @@ H5C_dest(H5F_t * f,
HDassert( cache_ptr->magic == H5C__H5C_T_MAGIC );
HDassert( cache_ptr->skip_file_checks || f );
- if ( H5C_flush_cache(f, primary_dxpl_id, secondary_dxpl_id,
+ if ( H5C_flush_cache(f, primary_dxpl_id, secondary_dxpl_id,
cache_ptr, H5F_FLUSH_INVALIDATE) < 0 ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush cache")
@@ -2336,8 +2336,8 @@ H5C_dest_empty(H5C_t * cache_ptr)
/* This would normally be an assert, but we need to use an HGOTO_ERROR
* call to shut up the compiler.
*/
- if ( ( ! cache_ptr ) ||
- ( cache_ptr->magic != H5C__H5C_T_MAGIC ) ||
+ if ( ( ! cache_ptr ) ||
+ ( cache_ptr->magic != H5C__H5C_T_MAGIC ) ||
( cache_ptr->index_len != 0 ) ) {
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, \
@@ -2368,18 +2368,18 @@ done:
* specified cache.
*
* If the cache contains protected entries, the function will
- * fail, as protected entries cannot be flushed. However
- * all unprotected entries should be flushed before the
+ * fail, as protected entries cannot be flushed. However
+ * all unprotected entries should be flushed before the
* function returns failure.
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the flush (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). This is useful in the metadata
- * cache, but may not be needed elsewhere. If so, just use the
+ * by the flush (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). This is useful in the metadata
+ * cache, but may not be needed elsewhere. If so, just use the
* same dxpl_id for both parameters.
- *
- * Return: Non-negative on success/Negative on failure or if there was
+ *
+ * Return: Non-negative on success/Negative on failure or if there was
* a request to flush all items and something was protected.
*
* Programmer: John Mainzer
@@ -2393,9 +2393,9 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5C_flush_cache(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_flush_cache(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr,
unsigned flags)
{
@@ -2443,24 +2443,24 @@ H5C_flush_cache(H5F_t * f,
if ( entry_ptr->is_protected ) {
- /* we have major problems -- but lets flush everything
+ /* we have major problems -- but lets flush everything
* we can before we flag an error.
*/
protected_entries++;
- } else {
+ } else {
- status = H5C_flush_single_entry(f,
- primary_dxpl_id,
- secondary_dxpl_id,
+ status = H5C_flush_single_entry(f,
+ primary_dxpl_id,
+ secondary_dxpl_id,
cache_ptr,
- NULL,
- entry_ptr->addr,
- flags,
- &first_flush,
+ NULL,
+ entry_ptr->addr,
+ flags,
+ &first_flush,
FALSE);
if ( status < 0 ) {
-
+
/* This shouldn't happen -- if it does, we are toast so
* just scream and die.
*/
@@ -2505,7 +2505,7 @@ H5C_flush_cache(H5F_t * f,
/* we have major problems -- but lets flush and destroy
* everything we can before we flag an error.
*/
-
+
H5C__DELETE_FROM_INDEX(cache_ptr, entry_ptr)
if ( !entry_ptr->in_slist ) {
@@ -2518,17 +2518,17 @@ H5C_flush_cache(H5F_t * f,
HDassert( !(entry_ptr->is_dirty) );
HDassert( !(entry_ptr->in_slist) );
- status = H5C_flush_single_entry(f,
- primary_dxpl_id,
- secondary_dxpl_id,
+ status = H5C_flush_single_entry(f,
+ primary_dxpl_id,
+ secondary_dxpl_id,
cache_ptr,
- NULL,
- entry_ptr->addr,
- flags,
- &first_flush,
+ NULL,
+ entry_ptr->addr,
+ flags,
+ &first_flush,
FALSE);
if ( status < 0 ) {
-
+
/* This shouldn't happen -- if it does, we are toast so
* just scream and die.
*/
@@ -2543,10 +2543,10 @@ H5C_flush_cache(H5F_t * f,
if ( protected_entries > 0 )
{
- /* the caller asked us to flush and destroy a cache that
+ /* the caller asked us to flush and destroy a cache that
* contains one or more protected entries. Since we can't
* flush protected entries, we haven't destroyed them either.
- * Since they are all on the protected list, just re-insert
+ * Since they are all on the protected list, just re-insert
* them into the cache before we flag an error.
*/
entry_ptr = cache_ptr->pl_head_ptr;
@@ -2587,15 +2587,15 @@ done:
* exist on disk yet, but it must have an address and disk
* space reserved.
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the insertion (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). This is useful in the
- * metadata cache, but may not be needed elsewhere. If so,
+ * by the insertion (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). This is useful in the
+ * metadata cache, but may not be needed elsewhere. If so,
* just use the same dxpl_id for both parameters.
*
- * The primary_dxpl_id is the dxpl_id passed to the
- * check_write_permitted function if such a function has been
+ * The primary_dxpl_id is the dxpl_id passed to the
+ * check_write_permitted function if such a function has been
* provided.
*
* Observe that this function cannot occasion a read.
@@ -2614,12 +2614,12 @@ done:
*/
herr_t
-H5C_insert_entry(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_insert_entry(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr,
- const H5C_class_t * type,
- haddr_t addr,
+ const H5C_class_t * type,
+ haddr_t addr,
void * thing)
{
herr_t result;
@@ -2650,7 +2650,7 @@ H5C_insert_entry(H5F_t * f,
"Can't get size of thing")
}
- HDassert( entry_ptr->size < H5C_MAX_ENTRY_SIZE );
+ HDassert( entry_ptr->size < H5C_MAX_ENTRY_SIZE );
entry_ptr->in_slist = FALSE;
@@ -2658,12 +2658,12 @@ H5C_insert_entry(H5F_t * f,
entry_ptr->ht_prev = NULL;
entry_ptr->next = NULL;
- entry_ptr->prev = NULL;
+ entry_ptr->prev = NULL;
entry_ptr->aux_next = NULL;
entry_ptr->aux_prev = NULL;
- H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
+ H5C__RESET_CACHE_ENTRY_STATS(entry_ptr)
if ((cache_ptr->index_size + entry_ptr->size) > cache_ptr->max_cache_size) {
@@ -2671,8 +2671,8 @@ H5C_insert_entry(H5F_t * f,
if ( cache_ptr->check_write_permitted != NULL ) {
- result = (cache_ptr->check_write_permitted)(f,
- primary_dxpl_id,
+ result = (cache_ptr->check_write_permitted)(f,
+ primary_dxpl_id,
&write_permitted);
if ( result < 0 ) {
@@ -2711,11 +2711,11 @@ H5C_insert_entry(H5F_t * f,
* check on space_needed here.
*/
- result = H5C_make_space_in_cache(f,
- primary_dxpl_id,
+ result = H5C_make_space_in_cache(f,
+ primary_dxpl_id,
secondary_dxpl_id,
- cache_ptr,
- space_needed,
+ cache_ptr,
+ space_needed,
write_permitted);
if ( result < 0 ) {
@@ -2746,7 +2746,7 @@ H5C_insert_entry(H5F_t * f,
}
/* we don't initialize the protected field until here as it is
- * possible that the entry is already in the cache, and already
+ * possible that the entry is already in the cache, and already
* protected. If it is, we don't want to make things worse by
* marking it unprotected.
*/
@@ -2793,7 +2793,7 @@ done:
herr_t
H5C_rename_entry(H5C_t * cache_ptr,
- const H5C_class_t * type,
+ const H5C_class_t * type,
haddr_t old_addr,
haddr_t new_addr)
{
@@ -2824,7 +2824,7 @@ H5C_rename_entry(H5C_t * cache_ptr,
H5C__SEARCH_INDEX(cache_ptr, new_addr, test_entry_ptr, FAIL)
if ( test_entry_ptr != NULL ) { /* we are hosed */
-
+
if ( test_entry_ptr->type == type ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTRENAME, FAIL, \
@@ -2838,7 +2838,7 @@ H5C_rename_entry(H5C_t * cache_ptr,
}
/* If we get this far, we have work to do. Remove *entry_ptr from
- * the hash table (and skip list if necessary), change its address to the
+ * the hash table (and skip list if necessary), change its address to the
* new address, and then re-insert.
*
* Update the replacement policy for a hit to avoid an eviction before
@@ -2879,7 +2879,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5C_protect
*
- * Purpose: If the target entry is not in the cache, load it. If
+ * Purpose: If the target entry is not in the cache, load it. If
* necessary, attempt to evict one or more entries to keep
* the cache within its maximum size.
*
@@ -2887,20 +2887,20 @@ done:
* to the caller. The caller must call H5C_unprotect() when
* finished with the entry.
*
- * While it is protected, the entry may not be either evicted
- * or flushed -- nor may it be accessed by another call to
+ * While it is protected, the entry may not be either evicted
+ * or flushed -- nor may it be accessed by another call to
* H5C_protect. Any attempt to do so will result in a failure.
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the insertion (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). This is useful in the
- * metadata cache, but may not be needed elsewhere. If so,
+ * by the insertion (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). This is useful in the
+ * metadata cache, but may not be needed elsewhere. If so,
* just use the same dxpl_id for both parameters.
*
* All reads are performed with the primary_dxpl_id.
*
- * Similarly, the primary_dxpl_id is passed to the
+ * Similarly, the primary_dxpl_id is passed to the
* check_write_permitted function if it is called.
*
* Return: Success: Ptr to the desired entry
@@ -2918,13 +2918,13 @@ done:
*/
void *
-H5C_protect(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_protect(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr,
- const H5C_class_t * type,
+ const H5C_class_t * type,
haddr_t addr,
- const void * udata1,
+ const void * udata1,
void * udata2)
{
hbool_t hit = FALSE;
@@ -2965,7 +2965,7 @@ H5C_protect(H5F_t * f,
entry_ptr = (H5C_cache_entry_t *)thing;
/* try to free up some space if necessay */
- if ( (cache_ptr->index_size + entry_ptr->size) >
+ if ( (cache_ptr->index_size + entry_ptr->size) >
cache_ptr->max_cache_size ) {
hbool_t write_permitted = TRUE;
@@ -2974,8 +2974,8 @@ H5C_protect(H5F_t * f,
if ( cache_ptr->check_write_permitted != NULL ) {
- result = (cache_ptr->check_write_permitted)(f,
- primary_dxpl_id,
+ result = (cache_ptr->check_write_permitted)(f,
+ primary_dxpl_id,
&write_permitted);
if ( result < 0 ) {
@@ -2990,8 +2990,8 @@ H5C_protect(H5F_t * f,
space_needed = (cache_ptr->index_size + entry_ptr->size) -
cache_ptr->max_cache_size;
- /* It would be nice to be able to do a tight sanity check on
- * space_needed here, but it is hard to assign an upper bound on
+ /* It would be nice to be able to do a tight sanity check on
+ * space_needed here, but it is hard to assign an upper bound on
* its value other than then value assigned to it.
*
* This fact springs from several features of the cache:
@@ -3002,8 +3002,8 @@ H5C_protect(H5F_t * f,
* Second, when writes are not permitted it is also possible
* for the cache to grow without bound.
*
- * Finally, we don't check to see if the cache is oversized
- * at the end of an unprotect. As a result, it is possible
+ * Finally, we don't check to see if the cache is oversized
+ * at the end of an unprotect. As a result, it is possible
* to have a vastly oversized cache with no protected entries
* as long as all the protects preceed the unprotects.
*
@@ -3014,8 +3014,8 @@ H5C_protect(H5F_t * f,
* check on space_needed here.
*/
- result = H5C_make_space_in_cache(f, primary_dxpl_id,
- secondary_dxpl_id, cache_ptr,
+ result = H5C_make_space_in_cache(f, primary_dxpl_id,
+ secondary_dxpl_id, cache_ptr,
space_needed, write_permitted);
if ( result < 0 ) {
@@ -3025,7 +3025,7 @@ H5C_protect(H5F_t * f,
}
}
- /* Insert the entry in the hash table. It can't be dirty yet, so
+ /* Insert the entry in the hash table. It can't be dirty yet, so
* we don't even check to see if it should go in the skip list.
*/
H5C__INSERT_IN_INDEX(cache_ptr, entry_ptr, NULL)
@@ -3070,17 +3070,17 @@ done:
* and give it back to the replacement policy.
*
* The TYPE and ADDR arguments must be the same as those in
- * the corresponding call to H5C_protect() and the THING
- * argument must be the value returned by that call to
+ * the corresponding call to H5C_protect() and the THING
+ * argument must be the value returned by that call to
* H5C_protect().
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the unprotect (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). Since an uprotect cannot
- * occasion a write at present, all this is moot for now.
- * However, things change, and in any case,
- * H5C_flush_single_entry() needs primary_dxpl_id and
+ * by the unprotect (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). Since an uprotect cannot
+ * occasion a write at present, all this is moot for now.
+ * However, things change, and in any case,
+ * H5C_flush_single_entry() needs primary_dxpl_id and
* secondary_dxpl_id in its parameter list.
*
* The function can't cause a read either, so the dxpl_id
@@ -3089,7 +3089,7 @@ done:
* Return: Non-negative on success/Negative on failure
*
* If the deleted flag is TRUE, simply remove the target entry
- * from the cache, clear it, and free it without writing it to
+ * from the cache, clear it, and free it without writing it to
* disk.
*
* Return: Non-negative on success/Negative on failure
@@ -3107,13 +3107,13 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5C_unprotect(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_unprotect(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr,
- const H5C_class_t * type,
+ const H5C_class_t * type,
haddr_t addr,
- void * thing,
+ void * thing,
hbool_t deleted)
{
herr_t ret_value = SUCCEED; /* Return value */
@@ -3144,7 +3144,7 @@ H5C_unprotect(H5F_t * f,
H5C__UPDATE_RP_FOR_UNPROTECT(cache_ptr, entry_ptr, FAIL)
- entry_ptr->is_protected = FALSE;
+ entry_ptr->is_protected = FALSE;
/* add the entry to the skip list if it is dirty, and it isn't already in
* the list.
@@ -3158,9 +3158,9 @@ H5C_unprotect(H5F_t * f,
/* this implementation of the "deleted" option is a bit inefficient, as
* we re-insert the entry to be deleted into the replacement policy
* data structures, only to remove them again. Depending on how often
- * we do this, we may want to optimize a bit.
+ * we do this, we may want to optimize a bit.
*
- * On the other hand, this implementation is reasonably clean, and
+ * On the other hand, this implementation is reasonably clean, and
* makes good use of existing code.
* JRM - 5/19/04
*/
@@ -3188,14 +3188,14 @@ H5C_unprotect(H5F_t * f,
"hash table contains multiple entries for addr?!?.")
}
- if ( H5C_flush_single_entry(f,
- primary_dxpl_id,
- secondary_dxpl_id,
+ if ( H5C_flush_single_entry(f,
+ primary_dxpl_id,
+ secondary_dxpl_id,
cache_ptr,
- type,
- addr,
+ type,
+ addr,
(H5F_FLUSH_CLEAR_ONLY|H5F_FLUSH_INVALIDATE),
- &dummy_first_flush,
+ &dummy_first_flush,
TRUE) < 0 ) {
HGOTO_ERROR(H5E_CACHE, H5E_CANTUNPROTECT, FAIL, "Can't flush.")
@@ -3264,8 +3264,8 @@ H5C_stats(H5C_t * cache_ptr,
/* This would normally be an assert, but we need to use an HGOTO_ERROR
* call to shut up the compiler.
*/
- if ( ( ! cache_ptr ) ||
- ( cache_ptr->magic != H5C__H5C_T_MAGIC ) ||
+ if ( ( ! cache_ptr ) ||
+ ( cache_ptr->magic != H5C__H5C_T_MAGIC ) ||
( !cache_name ) ) {
HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "Bad cache_ptr or cache_name")
@@ -3288,7 +3288,7 @@ H5C_stats(H5C_t * cache_ptr,
if ( aggregate_min_accesses > aggregate_max_accesses )
aggregate_min_accesses = aggregate_max_accesses;
if ( aggregate_min_accesses > cache_ptr->min_accesses[i] )
- aggregate_min_accesses = cache_ptr->min_accesses[i];
+ aggregate_min_accesses = cache_ptr->min_accesses[i];
if ( aggregate_max_clears < cache_ptr->max_clears[i] )
aggregate_max_clears = cache_ptr->max_clears[i];
if ( aggregate_max_flushes < cache_ptr->max_flushes[i] )
@@ -3308,54 +3308,54 @@ H5C_stats(H5C_t * cache_ptr,
if ( cache_ptr->successful_ht_searches > 0 ) {
- average_successful_search_depth =
+ average_successful_search_depth =
((double)(cache_ptr->total_successful_ht_search_depth)) /
((double)(cache_ptr->successful_ht_searches));
}
if ( cache_ptr->failed_ht_searches > 0 ) {
- average_failed_search_depth =
+ average_failed_search_depth =
((double)(cache_ptr->total_failed_ht_search_depth)) /
((double)(cache_ptr->failed_ht_searches));
}
-
+
HDfprintf(stdout, "\nH5C: cache statistics for %s\n",
cache_name);
HDfprintf(stdout, "\n");
- HDfprintf(stdout,
+ HDfprintf(stdout,
" hash table insertion / deletions = %ld / %ld\n",
(long)(cache_ptr->total_ht_insertions),
(long)(cache_ptr->total_ht_deletions));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" HT successful / failed searches = %ld / %ld\n",
(long)(cache_ptr->successful_ht_searches),
(long)(cache_ptr->failed_ht_searches));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" Av. HT suc / failed search depth = %f / %f\n",
average_successful_search_depth,
average_failed_search_depth);
- HDfprintf(stdout,
+ HDfprintf(stdout,
" current (max) index size / length = %ld (%ld) / %ld (%ld)\n",
(long)(cache_ptr->index_size),
(long)(cache_ptr->max_index_size),
(long)(cache_ptr->index_len),
(long)(cache_ptr->max_index_len));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" current (max) skip list size / length = %ld (%ld) / %ld (%ld)\n",
(long)(cache_ptr->slist_size),
(long)(cache_ptr->max_slist_size),
(long)(cache_ptr->slist_len),
(long)(cache_ptr->max_slist_len));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" current (max) PL size / length = %ld (%ld) / %ld (%ld)\n",
(long)(cache_ptr->pl_size),
(long)(cache_ptr->max_pl_size),
@@ -3377,13 +3377,13 @@ H5C_stats(H5C_t * cache_ptr,
(long)(cache_ptr->dLRU_list_size),
(long)(cache_ptr->dLRU_list_len));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" Total hits / misses / hit_rate = %ld / %ld / %f\n",
- (long)total_hits,
- (long)total_misses,
+ (long)total_hits,
+ (long)total_misses,
hit_rate);
- HDfprintf(stdout,
+ HDfprintf(stdout,
" Total clears / flushes / evictions = %ld / %ld / %ld\n",
(long)total_clears,
(long)total_flushes,
@@ -3416,7 +3416,7 @@ H5C_stats(H5C_t * cache_ptr,
HDfprintf(stdout, "\n");
- HDfprintf(stdout, " Stats on %s:\n",
+ HDfprintf(stdout, " Stats on %s:\n",
((cache_ptr->type_name_table_ptr))[i]);
if ( ( cache_ptr->hits[i] > 0 ) || ( cache_ptr->misses[i] > 0 ) ) {
@@ -3427,36 +3427,36 @@ H5C_stats(H5C_t * cache_ptr,
hit_rate = 0.0;
}
- HDfprintf(stdout,
- " hits / misses / hit_rate = %ld / %ld / %f\n",
+ HDfprintf(stdout,
+ " hits / misses / hit_rate = %ld / %ld / %f\n",
(long)(cache_ptr->hits[i]),
(long)(cache_ptr->misses[i]),
hit_rate);
- HDfprintf(stdout,
+ HDfprintf(stdout,
" clears / flushes / evictions = %ld / %ld / %ld\n",
(long)(cache_ptr->clears[i]),
(long)(cache_ptr->flushes[i]),
(long)(cache_ptr->evictions[i]));
- HDfprintf(stdout,
+ HDfprintf(stdout,
" insertions / renames = %ld / %ld\n",
(long)(cache_ptr->insertions[i]),
(long)(cache_ptr->renames[i]));
#if H5C_COLLECT_CACHE_ENTRY_STATS
- HDfprintf(stdout,
+ HDfprintf(stdout,
" entry max / min accesses = %d / %d\n",
cache_ptr->max_accesses[i],
cache_ptr->min_accesses[i]);
- HDfprintf(stdout,
+ HDfprintf(stdout,
" entry max_clears / max_flushes = %d / %d\n",
cache_ptr->max_clears[i],
cache_ptr->max_flushes[i]);
- HDfprintf(stdout,
+ HDfprintf(stdout,
" entry max_size = %d\n",
(int)(cache_ptr->max_size[i]));
@@ -3537,7 +3537,7 @@ H5C_stats__reset(H5C_t * cache_ptr)
for ( i = 0; i <= cache_ptr->max_type_id; i++ )
{
cache_ptr->max_accesses[i] = 0;
- cache_ptr->min_accesses[i] = 1000000;
+ cache_ptr->min_accesses[i] = 1000000;
cache_ptr->max_clears[i] = 0;
cache_ptr->max_flushes[i] = 0;
cache_ptr->max_size[i] = (size_t)0;
@@ -3555,9 +3555,9 @@ H5C_stats__reset(H5C_t * cache_ptr)
* Function: H5C_set_skip_flags
*
* Purpose: Set the values of the skip sanity check flags.
- *
+ *
* This function and the skip sanity check flags were created
- * for the convenience of the test bed. However it is
+ * for the convenience of the test bed. However it is
* possible that there may be other uses for the flags.
*
* Return: Non-negative on success/Negative on failure
@@ -3604,24 +3604,24 @@ done:
*
* Function: H5C_flush_single_entry
*
- * Purpose: Flush or clear (and evict if requested) the cache entry
+ * Purpose: Flush or clear (and evict if requested) the cache entry
* with the specified address and type. If the type is NULL,
- * any unprotected entry at the specified address will be
+ * any unprotected entry at the specified address will be
* flushed (and possibly evicted).
*
- * Attempts to flush a protected entry will result in an
+ * Attempts to flush a protected entry will result in an
* error.
*
- * *first_flush_ptr should be true if only one
+ * *first_flush_ptr should be true if only one
* flush is contemplated before the next load, or if this
- * is the first of a sequence of flushes that will be
+ * is the first of a sequence of flushes that will be
* completed before the next load. *first_flush_ptr is set
- * to false if a flush actually takes place, and should be
+ * to false if a flush actually takes place, and should be
* left false until the end of the sequence.
*
* The primary_dxpl_id is used if *first_flush_ptr is TRUE
- * on entry, and a flush actually takes place. The
- * secondary_dxpl_id is used in any subsequent flush where
+ * on entry, and a flush actually takes place. The
+ * secondary_dxpl_id is used in any subsequent flush where
* *first_flush_ptr is FALSE on entry.
*
* If the H5F_FLUSH_CLEAR_ONLY flag is set, the entry will
@@ -3629,17 +3629,17 @@ done:
* primary_dxpl_id, and secondary_dxpl_id are all irrelevent,
* and the call can't be part of a sequence of flushes.
*
- * If the caller knows the address of the TBBT node at
- * which the target entry resides, it can avoid a lookup
+ * If the caller knows the address of the TBBT node at
+ * which the target entry resides, it can avoid a lookup
* by supplying that address in the tgt_node_ptr parameter.
* If this parameter is NULL, the function will do a TBBT
* search for the entry instead.
*
* The function does nothing silently if there is no entry
- * at the supplied address, or if the entry found has the
+ * at the supplied address, or if the entry found has the
* wrong type.
*
- * Return: Non-negative on success/Negative on failure or if there was
+ * Return: Non-negative on success/Negative on failure or if there was
* an attempt to flush a protected item.
*
* Programmer: John Mainzer, 5/5/04
@@ -3655,18 +3655,18 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5C_flush_single_entry(H5F_t * f,
- hid_t primary_dxpl_id,
- hid_t secondary_dxpl_id,
+H5C_flush_single_entry(H5F_t * f,
+ hid_t primary_dxpl_id,
+ hid_t secondary_dxpl_id,
H5C_t * cache_ptr,
- const H5C_class_t * type_ptr,
- haddr_t addr,
+ const H5C_class_t * type_ptr,
+ haddr_t addr,
unsigned flags,
hbool_t * first_flush_ptr,
hbool_t del_entry_from_slist_on_destroy)
{
hbool_t destroy = ( (flags & H5F_FLUSH_INVALIDATE) != 0 );
- hbool_t clear_only = ( (flags & H5F_FLUSH_CLEAR_ONLY) != 0);
+ hbool_t clear_only = ( (flags & H5F_FLUSH_CLEAR_ONLY) != 0);
herr_t ret_value = SUCCEED; /* Return value */
herr_t status;
H5C_cache_entry_t * entry_ptr = NULL;
@@ -3714,12 +3714,12 @@ H5C_flush_single_entry(H5F_t * f,
{
/* we have work to do */
-#ifdef H5_HAVE_PARALLEL
+#ifdef H5_HAVE_PARALLEL
#ifndef NDEBUG
/* If MPI based VFD is used, do special parallel I/O sanity checks.
* Note that we only do these sanity checks when the clear_only flag
- * is not set, and the entry to be flushed is dirty. Don't bother
+ * is not set, and the entry to be flushed is dirty. Don't bother
* otherwise as no file I/O can result.
*
* There are also cases (testing for instance) where it is convenient
@@ -3727,9 +3727,9 @@ H5C_flush_single_entry(H5F_t * f,
* this isn't a problem -- but we do have to turn off sanity checks
* involving them. We use cache_ptr->skip_dxpl_id_checks to do this.
*/
- if ( ( ! cache_ptr->skip_dxpl_id_checks ) &&
- ( ! clear_only ) &&
- ( entry_ptr->is_dirty ) &&
+ if ( ( ! cache_ptr->skip_dxpl_id_checks ) &&
+ ( ! clear_only ) &&
+ ( entry_ptr->is_dirty ) &&
( IS_H5FD_MPI(f) ) ) {
H5P_genplist_t *dxpl; /* Dataset transfer property list */
@@ -3766,12 +3766,12 @@ H5C_flush_single_entry(H5F_t * f,
H5C__UPDATE_STATS_FOR_EVICTION(cache_ptr, entry_ptr)
}
- /* Always remove the entry from the hash table on a destroy. On a
+ /* Always remove the entry from the hash table on a destroy. On a
* flush with destroy, it is cheaper to discard the skip list all at once
* rather than remove the entries one by one, so we only delete from
* the list if requested.
*
- * We must do deletions now as the callback routines will free the
+ * We must do deletions now as the callback routines will free the
* entry if destroy is true.
*/
if ( destroy ) {
@@ -3785,7 +3785,7 @@ H5C_flush_single_entry(H5F_t * f,
}
/* Update the replacement policy for the flush or eviction.
- * Again, do this now so we don't have to reference freed
+ * Again, do this now so we don't have to reference freed
* memory in the destroy case.
*/
if ( destroy ) { /* AKA eviction */
@@ -3805,16 +3805,16 @@ H5C_flush_single_entry(H5F_t * f,
}
} else {
- /* Only block for all the processes on the first piece of metadata
+ /* Only block for all the processes on the first piece of metadata
*/
if ( *first_flush_ptr && entry_ptr->is_dirty ) {
- status = (entry_ptr->type->flush)(f, primary_dxpl_id, destroy,
+ status = (entry_ptr->type->flush)(f, primary_dxpl_id, destroy,
entry_ptr->addr, entry_ptr);
*first_flush_ptr = FALSE;
} else {
- status = (entry_ptr->type->flush)(f, secondary_dxpl_id,
- destroy, entry_ptr->addr,
+ status = (entry_ptr->type->flush)(f, secondary_dxpl_id,
+ destroy, entry_ptr->addr,
entry_ptr);
}
@@ -3825,7 +3825,7 @@ H5C_flush_single_entry(H5F_t * f,
}
if ( ! destroy ) {
-
+
HDassert( !(entry_ptr->is_dirty) );
}
}
@@ -3846,7 +3846,7 @@ done:
* return the in memory address of the entry. Return NULL
* on failure.
*
- * Note that this function simply loads the entry into
+ * Note that this function simply loads the entry into
* core. It does not insert it into the cache.
*
* Return: Non-NULL on success / NULL on failure.
@@ -3862,11 +3862,11 @@ done:
*/
static void *
-H5C_load_entry(H5F_t * f,
- hid_t dxpl_id,
- const H5C_class_t * type,
+H5C_load_entry(H5F_t * f,
+ hid_t dxpl_id,
+ const H5C_class_t * type,
haddr_t addr,
- const void * udata1,
+ const void * udata1,
void * udata2,
hbool_t skip_file_checks)
{
@@ -3903,7 +3903,7 @@ H5C_load_entry(H5F_t * f,
"Can't get size of thing")
}
- HDassert( entry_ptr->size < H5C_MAX_ENTRY_SIZE );
+ HDassert( entry_ptr->size < H5C_MAX_ENTRY_SIZE );
entry_ptr->ht_next = NULL;
entry_ptr->ht_prev = NULL;
@@ -3932,24 +3932,24 @@ done:
* Purpose: Attempt to evict cache entries until the index_size
* is at least needed_space below max_cache_size.
*
- * In passing, also attempt to bring cLRU_list_size to a
+ * In passing, also attempt to bring cLRU_list_size to a
* value greater than min_clean_size.
*
* Depending on circumstances, both of these goals may
* be impossible, as in parallel mode, we must avoid generating
* a write as part of a read (to avoid deadlock in collective
* I/O), and in all cases, it is possible (though hopefully
- * highly unlikely) that the protected list may exceed the
+ * highly unlikely) that the protected list may exceed the
* maximum size of the cache.
- *
+ *
* Thus the function simply does its best, returning success
* unless an error is encountered.
*
- * The primary_dxpl_id and secondary_dxpl_id parameters
+ * The primary_dxpl_id and secondary_dxpl_id parameters
* specify the dxpl_ids used on the first write occasioned
- * by the call (primary_dxpl_id), and on all subsequent
- * writes (secondary_dxpl_id). This is useful in the metadata
- * cache, but may not be needed elsewhere. If so, just use the
+ * by the call (primary_dxpl_id), and on all subsequent
+ * writes (secondary_dxpl_id). This is useful in the metadata
+ * cache, but may not be needed elsewhere. If so, just use the
* same dxpl_id for both parameters.
*
* Observe that this function cannot occasion a read.
@@ -3993,8 +3993,8 @@ H5C_make_space_in_cache(H5F_t * f,
initial_list_len = cache_ptr->LRU_list_len;
entry_ptr = cache_ptr->LRU_tail_ptr;
- while ( ( (cache_ptr->index_size + space_needed)
- >
+ while ( ( (cache_ptr->index_size + space_needed)
+ >
cache_ptr->max_cache_size
)
&&
@@ -4009,25 +4009,25 @@ H5C_make_space_in_cache(H5F_t * f,
if ( entry_ptr->is_dirty ) {
- result = H5C_flush_single_entry(f,
- primary_dxpl_id,
+ result = H5C_flush_single_entry(f,
+ primary_dxpl_id,
secondary_dxpl_id,
cache_ptr,
- entry_ptr->type,
- entry_ptr->addr,
- (unsigned)0,
- &first_flush,
+ entry_ptr->type,
+ entry_ptr->addr,
+ (unsigned)0,
+ &first_flush,
FALSE);
} else {
- result = H5C_flush_single_entry(f,
- primary_dxpl_id,
+ result = H5C_flush_single_entry(f,
+ primary_dxpl_id,
secondary_dxpl_id,
cache_ptr,
- entry_ptr->type,
- entry_ptr->addr,
+ entry_ptr->type,
+ entry_ptr->addr,
H5F_FLUSH_INVALIDATE,
- &first_flush,
+ &first_flush,
TRUE);
}
@@ -4056,14 +4056,14 @@ H5C_make_space_in_cache(H5F_t * f,
prev_ptr = entry_ptr->aux_prev;
- result = H5C_flush_single_entry(f,
- primary_dxpl_id,
+ result = H5C_flush_single_entry(f,
+ primary_dxpl_id,
secondary_dxpl_id,
cache_ptr,
- entry_ptr->type,
- entry_ptr->addr,
- (unsigned)0,
- &first_flush,
+ entry_ptr->type,
+ entry_ptr->addr,
+ (unsigned)0,
+ &first_flush,
FALSE);
if ( result < 0 ) {
@@ -4084,12 +4084,12 @@ H5C_make_space_in_cache(H5F_t * f,
initial_list_len = cache_ptr->cLRU_list_len;
entry_ptr = cache_ptr->cLRU_tail_ptr;
- while ( ( (cache_ptr->index_size + space_needed)
- >
+ while ( ( (cache_ptr->index_size + space_needed)
+ >
cache_ptr->max_cache_size
)
&&
- ( entries_examined <= initial_list_len )
+ ( entries_examined <= initial_list_len )
&&
( entry_ptr != NULL )
)
@@ -4099,14 +4099,14 @@ H5C_make_space_in_cache(H5F_t * f,
prev_ptr = entry_ptr->aux_prev;
- result = H5C_flush_single_entry(f,
- primary_dxpl_id,
+ result = H5C_flush_single_entry(f,
+ primary_dxpl_id,
secondary_dxpl_id,
cache_ptr,
- entry_ptr->type,
- entry_ptr->addr,
+ entry_ptr->type,
+ entry_ptr->addr,
H5F_FLUSH_INVALIDATE,
- &first_flush,
+ &first_flush,
TRUE);
if ( result < 0 ) {
diff --git a/src/H5Cprivate.h b/src/H5Cprivate.h
index affd433..f161c01 100644
--- a/src/H5Cprivate.h
+++ b/src/H5Cprivate.h
@@ -51,10 +51,10 @@
#define H5C_COLLECT_CACHE_STATS 0
/* H5C_COLLECT_CACHE_ENTRY_STATS controls collection of statistics
- * in individual cache entries.
- *
- * H5C_COLLECT_CACHE_ENTRY_STATS should only be defined to true if
- * H5C_COLLECT_CACHE_STATS is also defined to true.
+ * in individual cache entries.
+ *
+ * H5C_COLLECT_CACHE_ENTRY_STATS should only be defined to true if
+ * H5C_COLLECT_CACHE_STATS is also defined to true.
*/
#if H5C_COLLECT_CACHE_STATS
@@ -109,23 +109,23 @@
* Note that the space allocated on disk may not be contiguous.
*/
-typedef void *(*H5C_load_func_t)(H5F_t *f,
- hid_t dxpl_id,
- haddr_t addr,
- const void *udata1,
+typedef void *(*H5C_load_func_t)(H5F_t *f,
+ hid_t dxpl_id,
+ haddr_t addr,
+ const void *udata1,
void *udata2);
-typedef herr_t (*H5C_flush_func_t)(H5F_t *f,
- hid_t dxpl_id,
- hbool_t dest,
- haddr_t addr,
+typedef herr_t (*H5C_flush_func_t)(H5F_t *f,
+ hid_t dxpl_id,
+ hbool_t dest,
+ haddr_t addr,
void *thing);
-typedef herr_t (*H5C_dest_func_t)(H5F_t *f,
+typedef herr_t (*H5C_dest_func_t)(H5F_t *f,
void *thing);
-typedef herr_t (*H5C_clear_func_t)(H5F_t *f,
- void *thing,
+typedef herr_t (*H5C_clear_func_t)(H5F_t *f,
+ void *thing,
hbool_t dest);
-typedef herr_t (*H5C_size_func_t)(const H5F_t *f,
- const void *thing,
+typedef herr_t (*H5C_size_func_t)(const H5F_t *f,
+ const void *thing,
size_t *size_ptr);
typedef struct H5C_class_t {
@@ -157,11 +157,11 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
*
* structure H5C_cache_entry_t
*
- * Instances of the H5C_cache_entry_t structure are used to store cache
- * entries in a hash table and sometimes in a skip list.
+ * Instances of the H5C_cache_entry_t structure are used to store cache
+ * entries in a hash table and sometimes in a skip list.
* See H5SL.c for the particulars of the skip list.
*
- * In typical application, this structure is the first field in a
+ * In typical application, this structure is the first field in a
* structure to be cached. For historical reasons, the external module
* is responsible for managing the is_dirty field. All other fields are
* managed by the cache.
@@ -191,12 +191,12 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
*
* NOTE: For historical reasons, this field is not maintained
* by the cache. Instead, the module using the cache
- * sets this flag when it modifies the entry, and the
+ * sets this flag when it modifies the entry, and the
* flush and clear functions supplied by that module
* reset the dirty when appropriate.
*
* This is a bit quirky, so we may want to change this
- * someday. However it will require a change in the
+ * someday. However it will require a change in the
* cache interface.
*
* is_protected: Boolean flag indicating whether this entry is protected
@@ -222,63 +222,63 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
*
* ht_next: Next pointer used by the hash table to store multiple
* entries in a single hash bin. This field points to the
- * next entry in the doubly linked list of entries in the
+ * next entry in the doubly linked list of entries in the
* hash bin, or NULL if there is no next entry.
*
* ht_prev: Prev pointer used by the hash table to store multiple
* entries in a single hash bin. This field points to the
- * previous entry in the doubly linked list of entries in
+ * previous entry in the doubly linked list of entries in
* the hash bin, or NULL if there is no previuos entry.
*
*
* Fields supporting replacement policies:
*
- * The cache must have a replacement policy, and it will usually be
+ * The cache must have a replacement policy, and it will usually be
* necessary for this structure to contain fields supporting that policy.
*
- * While there has been interest in several replacement policies for
+ * While there has been interest in several replacement policies for
* this cache, the initial development schedule is tight. Thus I have
* elected to support only a modified LRU policy for the first cut.
*
* When additional replacement policies are added, the fields in this
- * section will be used in different ways or not at all. Thus the
+ * section will be used in different ways or not at all. Thus the
* documentation of these fields is repeated for each replacement policy.
- *
+ *
* Modified LRU:
- *
+ *
* When operating in parallel mode, we must ensure that a read does not
* cause a write. If it does, the process will hang, as the write will
* be collective and the other processes will not know to participate.
*
* To deal with this issue, I have modified the usual LRU policy by adding
- * clean and dirty LRU lists to the usual LRU list. When reading in
+ * clean and dirty LRU lists to the usual LRU list. When reading in
* parallel mode, we evict from the clean LRU list only. This implies
- * that we must try to ensure that the clean LRU list is reasonably well
+ * that we must try to ensure that the clean LRU list is reasonably well
* stocked. See the comments on H5C_t in H5C.c for more details.
- *
+ *
* Note that even if we start with a completely clean cache, a sequence
* of protects without unprotects can empty the clean LRU list. In this
- * case, the cache must grow temporarily. At the next write, we will
+ * case, the cache must grow temporarily. At the next write, we will
* attempt to evict enough entries to get the cache down to its nominal
* maximum size.
*
* The use of the replacement policy fields under the Modified LRU policy
* is discussed below:
*
- * next: Next pointer in either the LRU or the protected list,
- * depending on the current value of protected. If there
- * is no next entry on the list, this field should be set
+ * next: Next pointer in either the LRU or the protected list,
+ * depending on the current value of protected. If there
+ * is no next entry on the list, this field should be set
* to NULL.
*
- * prev: Prev pointer in either the LRU or the protected list,
- * depending on the current value of protected. If there
- * is no previous entry on the list, this field should be
+ * prev: Prev pointer in either the LRU or the protected list,
+ * depending on the current value of protected. If there
+ * is no previous entry on the list, this field should be
* set to NULL.
*
* aux_next: Next pointer on either the clean or dirty LRU lists.
* This entry should be NULL when protected is true. When
* protected is false, and dirty is true, it should point
- * to the next item on the dirty LRU list. When protected
+ * to the next item on the dirty LRU list. When protected
* is false, and dirty is false, it should point to the
* next item on the clean LRU list. In either case, when
* there is no next item, it should be NULL.
@@ -286,7 +286,7 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
* aux_prev: Previous pointer on either the clean or dirty LRU lists.
* This entry should be NULL when protected is true. When
* protected is false, and dirty is true, it should point
- * to the previous item on the dirty LRU list. When protected
+ * to the previous item on the dirty LRU list. When protected
* is false, and dirty is false, it should point to the
* previous item on the clean LRU list. In either case, when
* there is no previous item, it should be NULL.
@@ -296,7 +296,7 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
*
* These fields should only be compiled in when both H5C_COLLECT_CACHE_STATS
* and H5C_COLLECT_CACHE_ENTRY_STATS are true. When present, they allow
- * collection of statistics on individual cache entries.
+ * collection of statistics on individual cache entries.
*
* accesses: int32_t containing the number of times this cache entry has
* been referenced in its lifetime.
@@ -305,8 +305,8 @@ typedef herr_t (*H5C_write_permitted_func_t)(const H5F_t *f,
* been cleared in its life time.
*
* flushes: int32_t containing the number of times this cache entry has
- * been flushed to file in its life time.
- *
+ * been flushed to file in its life time.
+ *
****************************************************************************/
typedef struct H5C_cache_entry_t
@@ -340,7 +340,7 @@ typedef struct H5C_cache_entry_t
#endif /* H5C_COLLECT_CACHE_ENTRY_STATS */
-} H5C_cache_entry_t;
+} H5C_cache_entry_t;
/* Typedef for the main structure for the cache (defined in H5C.c) */
diff --git a/src/H5D.c b/src/H5D.c
index cd63c53..b0dbaec 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -33,7 +33,7 @@
/* Local functions */
static herr_t H5D_init_storage(H5D_t *dataset, hbool_t full_overwrite, hid_t dxpl_id);
static H5D_shared_t * H5D_new(hid_t dcpl_id, hbool_t creating, hbool_t vl_type);
-static H5D_t * H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id,
+static H5D_t * H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id,
const H5S_t *space, hid_t dcpl_id, hid_t dxpl_id);
static H5D_t * H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id);
static herr_t H5D_get_space_status(H5D_t *dset, H5D_space_status_t *allocation, hid_t dxpl_id);
@@ -111,7 +111,7 @@ NAME
H5D_init_interface -- Initialize interface-specific information
USAGE
herr_t H5D_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -144,23 +144,23 @@ H5D_init_interface(void)
* - Default value for EDC property
* - Default value for filter callback
*/
- H5P_genclass_t *xfer_pclass;
+ H5P_genclass_t *xfer_pclass;
size_t def_max_temp_buf = H5D_XFER_MAX_TEMP_BUF_DEF;
void *def_tconv_buf = H5D_XFER_TCONV_BUF_DEF;
- void *def_bkgr_buf = H5D_XFER_BKGR_BUF_DEF;
- H5T_bkg_t def_bkgr_buf_type = H5D_XFER_BKGR_BUF_TYPE_DEF;
+ void *def_bkgr_buf = H5D_XFER_BKGR_BUF_DEF;
+ H5T_bkg_t def_bkgr_buf_type = H5D_XFER_BKGR_BUF_TYPE_DEF;
double def_btree_split_ratio[3] = H5D_XFER_BTREE_SPLIT_RATIO_DEF;
#ifdef H5_WANT_H5_V1_4_COMPAT
- unsigned def_hyper_cache = H5D_XFER_HYPER_CACHE_DEF;
- unsigned def_hyper_cache_lim = H5D_XFER_HYPER_CACHE_LIM_DEF;
+ unsigned def_hyper_cache = H5D_XFER_HYPER_CACHE_DEF;
+ unsigned def_hyper_cache_lim = H5D_XFER_HYPER_CACHE_LIM_DEF;
#endif /* H5_WANT_H5_V1_4_COMPAT */
- H5MM_allocate_t def_vlen_alloc = H5D_XFER_VLEN_ALLOC_DEF;
+ H5MM_allocate_t def_vlen_alloc = H5D_XFER_VLEN_ALLOC_DEF;
void *def_vlen_alloc_info = H5D_XFER_VLEN_ALLOC_INFO_DEF;
- H5MM_free_t def_vlen_free = H5D_XFER_VLEN_FREE_DEF;
+ H5MM_free_t def_vlen_free = H5D_XFER_VLEN_FREE_DEF;
void *def_vlen_free_info = H5D_XFER_VLEN_FREE_INFO_DEF;
- hid_t def_vfl_id = H5D_XFER_VFL_ID_DEF;
- void *def_vfl_info = H5D_XFER_VFL_INFO_DEF;
- size_t def_hyp_vec_size = H5D_XFER_HYPER_VECTOR_SIZE_DEF;
+ hid_t def_vfl_id = H5D_XFER_VFL_ID_DEF;
+ void *def_vfl_info = H5D_XFER_VFL_INFO_DEF;
+ size_t def_hyp_vec_size = H5D_XFER_HYPER_VECTOR_SIZE_DEF;
#ifdef H5_HAVE_PARALLEL
H5FD_mpio_xfer_t def_io_xfer_mode = H5D_XFER_IO_XFER_MODE_DEF;
#endif /* H5_HAVE_PARALLEL */
@@ -183,7 +183,7 @@ H5D_init_interface(void)
H5O_fill_t fill = H5D_CRT_FILL_VALUE_DEF;
H5D_alloc_time_t alloc_time = H5D_CRT_ALLOC_TIME_DEF;
unsigned alloc_time_state = H5D_CRT_ALLOC_TIME_STATE_DEF;
- H5D_fill_time_t fill_time = H5D_CRT_FILL_TIME_DEF;
+ H5D_fill_time_t fill_time = H5D_CRT_FILL_TIME_DEF;
H5O_efl_t efl = H5D_CRT_EXT_FILE_LIST_DEF;
H5O_pline_t pline = H5D_CRT_DATA_PIPELINE_DEF;
@@ -197,7 +197,7 @@ H5D_init_interface(void)
if (H5I_init_group(H5I_DATASET, H5I_DATASETID_HASHSIZE, H5D_RESERVED_ATOMS, (H5I_free_t)H5D_close)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize interface")
- /* =========Dataset Transfer Property Class Initialization========= */
+ /* =========Dataset Transfer Property Class Initialization========= */
/* Register the default dataset transfer properties */
assert(H5P_CLS_DATASET_XFER_g!=(-1));
@@ -278,7 +278,7 @@ H5D_init_interface(void)
/* Register the EDC property */
if(H5P_register(xfer_pclass,H5D_XFER_EDC_NAME,H5D_XFER_EDC_SIZE,&enable_edc,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
-
+
/* Register the filter callback property */
if(H5P_register(xfer_pclass,H5D_XFER_FILTER_CB_NAME,H5D_XFER_FILTER_CB_SIZE,&filter_cb,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
@@ -294,29 +294,29 @@ H5D_init_interface(void)
/* =========Dataset Creation Property Class Initialization========== */
/* Register the default dataset creation properties */
assert(H5P_CLS_DATASET_CREATE_g != -1);
-
+
/* Get the pointer to the dataset creation class */
if(NULL == (crt_pclass = H5I_object(H5P_CLS_DATASET_CREATE_g)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list class")
-
+
/* Get the number of properties in the class */
if(H5P_get_nprops_pclass(crt_pclass,&nprops)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "can't query number of properties")
/* Assume that if there are properties in the class, they are the default ones */
if(nprops==0) {
- /* Register the storage layout property */
+ /* Register the storage layout property */
if(H5P_register(crt_pclass, H5D_CRT_LAYOUT_NAME, H5D_CRT_LAYOUT_SIZE, &layout, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
-
+
/* Register the chunking dimensionality property */
if(H5P_register(crt_pclass, H5D_CRT_CHUNK_DIM_NAME, H5D_CRT_CHUNK_DIM_SIZE, &chunk_ndims, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
- /* Register the chunking size property */
+ /* Register the chunking size property */
if(H5P_register(crt_pclass, H5D_CRT_CHUNK_SIZE_NAME, H5D_CRT_CHUNK_SIZE_SIZE, chunk_size, NULL, NULL, NULL, NULL, NULL, NULL, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
-
+
/* Register the fill value property */
if(H5P_register(crt_pclass, H5D_CRT_FILL_VALUE_NAME, H5D_CRT_FILL_VALUE_SIZE, &fill, NULL, NULL, NULL, NULL, NULL, H5D_CRT_FILL_VALUE_CMP, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
@@ -336,7 +336,7 @@ H5D_init_interface(void)
/* Register the external file list property */
if(H5P_register(crt_pclass, H5D_CRT_EXT_FILE_LIST_NAME, H5D_CRT_EXT_FILE_LIST_SIZE, &efl, NULL, NULL, NULL, NULL, NULL, H5D_CRT_EXT_FILE_LIST_CMP, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
-
+
/* Register the data pipeline property */
if(H5P_register(crt_pclass, H5D_CRT_DATA_PIPELINE_NAME, H5D_CRT_DATA_PIPELINE_SIZE, &pline, NULL, NULL, NULL, NULL, NULL, H5D_CRT_DATA_PIPELINE_CMP, NULL) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
@@ -452,7 +452,7 @@ H5D_term_interface(void)
/*-------------------------------------------------------------------------
* Function: H5D_crt_copy
*
- * Purpose: Callback routine which is called whenever any dataset
+ * Purpose: Callback routine which is called whenever any dataset
* creation property list is copied. This routine copies
* the properties from the old list to the new list.
*
@@ -463,7 +463,7 @@ H5D_term_interface(void)
* Programmer: Raymond Lu
* Tuesday, October 2, 2001
*
- * Modification:
+ * Modification:
*
*-------------------------------------------------------------------------
*/
@@ -488,7 +488,7 @@ H5D_crt_copy(hid_t new_plist_id, hid_t old_plist_id, void UNUSED *copy_data)
/* Get the fill value, external file list, and data pipeline properties
* from the old property list */
- if(H5P_get(old_plist, H5D_CRT_FILL_VALUE_NAME, &src_fill) < 0)
+ if(H5P_get(old_plist, H5D_CRT_FILL_VALUE_NAME, &src_fill) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value")
if(H5P_get(old_plist, H5D_CRT_EXT_FILE_LIST_NAME, &src_efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get external file list")
@@ -505,12 +505,12 @@ H5D_crt_copy(hid_t new_plist_id, hid_t old_plist_id, void UNUSED *copy_data)
dst_fill.size = src_fill.size;
}
HDmemset(&dst_efl,0,sizeof(H5O_efl_t));
- if(NULL==H5O_copy(H5O_EFL_ID, &src_efl, &dst_efl))
+ if(NULL==H5O_copy(H5O_EFL_ID, &src_efl, &dst_efl))
HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't copy external file list")
- if(NULL==H5O_copy(H5O_PLINE_ID, &src_pline, &dst_pline))
+ if(NULL==H5O_copy(H5O_PLINE_ID, &src_pline, &dst_pline))
HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't copy data pipeline")
- /* Set the fill value, external file list, and data pipeline property
+ /* Set the fill value, external file list, and data pipeline property
* for the new property list */
if(H5P_set(new_plist, H5D_CRT_FILL_VALUE_NAME, &dst_fill) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set fill value")
@@ -560,7 +560,7 @@ H5D_crt_close(hid_t dcpl_id, void UNUSED *close_data)
/* Get the fill value, external file list, and data pipeline properties
* from the old property list */
- if(H5P_get(plist, H5D_CRT_FILL_VALUE_NAME, &fill) < 0)
+ if(H5P_get(plist, H5D_CRT_FILL_VALUE_NAME, &fill) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value")
if(H5P_get(plist, H5D_CRT_EXT_FILE_LIST_NAME, &efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get external file list")
@@ -594,7 +594,7 @@ done:
* Programmer: Quincey Koziol
* Wednesday, January 7, 2004
*
- * Modification:
+ * Modification:
*
*-------------------------------------------------------------------------
*/
@@ -650,7 +650,7 @@ done:
* Programmer: Quincey Koziol
* Wednesday, January 7, 2004
*
- * Modification:
+ * Modification:
*
*-------------------------------------------------------------------------
*/
@@ -732,7 +732,7 @@ done:
* Programmer: Quincey Koziol
* Wednesday, January 7, 2004
*
- * Modification:
+ * Modification:
*
*-------------------------------------------------------------------------
*/
@@ -865,7 +865,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_xfer_copy
*
- * Purpose: Callback routine which is called whenever any dataset
+ * Purpose: Callback routine which is called whenever any dataset
* transfer property list is copied. This routine copies
* the properties from the old list to the new list.
*
@@ -876,7 +876,7 @@ done:
* Programmer: Raymond Lu
* Tuesday, October 2, 2001
*
- * Modification:
+ * Modification:
*
*-------------------------------------------------------------------------
*/
@@ -902,7 +902,7 @@ H5D_xfer_copy(hid_t new_dxpl_id, hid_t old_dxpl_id, void UNUSED *copy_data)
HGOTO_ERROR (H5E_PLIST, H5E_CANTGET, FAIL, "can't retrieve VFL driver ID")
if(H5P_get(old_plist, H5D_XFER_VFL_INFO_NAME, &driver_info)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get drver info")
-
+
if(driver_id > 0) {
/* Set the driver for the property list */
if(H5FD_dxpl_open(new_plist, driver_id, driver_info)<0)
@@ -1040,13 +1040,13 @@ done:
* Failure: FAIL
*
* Errors:
- * ARGS BADTYPE Not a data space.
- * ARGS BADTYPE Not a dataset creation plist.
- * ARGS BADTYPE Not a file.
- * ARGS BADTYPE Not a type.
- * ARGS BADVALUE No name.
- * DATASET CANTINIT Can't create dataset.
- * DATASET CANTREGISTER Can't register dataset.
+ * ARGS BADTYPE Not a data space.
+ * ARGS BADTYPE Not a dataset creation plist.
+ * ARGS BADTYPE Not a file.
+ * ARGS BADTYPE Not a type.
+ * ARGS BADVALUE No name.
+ * DATASET CANTINIT Can't create dataset.
+ * DATASET CANTREGISTER Can't register dataset.
*
* Programmer: Robb Matzke
* Wednesday, December 3, 1997
@@ -1140,7 +1140,7 @@ H5Dopen(hid_t loc_id, const char *name)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a location")
if (!name || !*name)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no name")
-
+
/* Find the dataset object */
if (H5G_find(loc, name, NULL, &ent, dxpl_id) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_NOTFOUND, FAIL, "not found")
@@ -1183,8 +1183,8 @@ done:
* Return: Non-negative on success/Negative on failure
*
* Errors:
- * ARGS BADTYPE Not a dataset.
- * DATASET CANTINIT Can't free.
+ * ARGS BADTYPE Not a dataset.
+ * DATASET CANTINIT Can't free.
*
* Programmer: Robb Matzke
* Thursday, December 4, 1997
@@ -1221,7 +1221,7 @@ done:
/*-------------------------------------------------------------------------
- * Function: H5Dget_space
+ * Function: H5Dget_space
*
* Purpose: Returns a copy of the file data space for a dataset.
*
@@ -1246,7 +1246,7 @@ H5Dget_space(hid_t dset_id)
H5D_t *dset = NULL;
H5S_t *space = NULL;
hid_t ret_value;
-
+
FUNC_ENTER_API(H5Dget_space, FAIL)
H5TRACE1("i","i",dset_id);
@@ -1279,9 +1279,9 @@ done:
*
* Purpose: Returns the status of data space allocation.
*
- * Return:
+ * Return:
* Success: Non-negative
- *
+ *
* Failture: Negative
*
* Programmer: Raymond Lu
@@ -1404,11 +1404,11 @@ done:
hid_t
H5Dget_type(hid_t dset_id)
{
-
+
H5D_t *dset = NULL;
H5T_t *copied_type = NULL;
hid_t ret_value = FAIL;
-
+
FUNC_ENTER_API(H5Dget_type, FAIL)
H5TRACE1("i","i",dset_id);
@@ -1427,7 +1427,7 @@ H5Dget_type(hid_t dset_id)
/* Unlock copied type */
if (H5T_lock (copied_type, FALSE)<0)
HGOTO_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to lock transient data type")
-
+
/* Create an atom */
if ((ret_value=H5I_register (H5I_DATATYPE, copied_type))<0)
HGOTO_ERROR (H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register data type")
@@ -1459,10 +1459,10 @@ done:
* Tuesday, February 3, 1998
*
* Modifications:
- *
+ *
* Raymond Lu
* Tuesday, October 2, 2001
- * The way to retrieve and set property is changed for the
+ * The way to retrieve and set property is changed for the
* generic property list.
*
*-------------------------------------------------------------------------
@@ -1476,7 +1476,7 @@ H5Dget_create_plist(hid_t dset_id)
H5P_genplist_t *new_plist;
hid_t new_dcpl_id = FAIL;
hid_t ret_value = FAIL;
-
+
FUNC_ENTER_API(H5Dget_create_plist, FAIL)
H5TRACE1("i","i",dset_id);
@@ -1539,7 +1539,7 @@ H5Dextend(hid_t dset_id, const hsize_t *size)
{
H5D_t *dset = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Dextend, FAIL)
H5TRACE2("e","i*h",dset_id,size);
@@ -1587,7 +1587,7 @@ H5D_new(hid_t dcpl_id, hbool_t creating, hbool_t vl_type)
H5P_genplist_t *plist; /* Property list created */
H5D_shared_t *new_dset = NULL; /* New dataset object */
H5D_shared_t *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_new)
if (NULL==(new_dset = H5FL_MALLOC(H5D_shared_t)))
@@ -1646,7 +1646,7 @@ done:
* Thursday, June 24, 2004
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1718,7 +1718,7 @@ done:
* Thursday, October 31, 2002
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1825,7 +1825,7 @@ H5D_update_entry_info(H5F_t *file, hid_t dxpl_id, H5D_t *dset, H5P_genplist_t *p
fill.alloc_time = alloc_time;
fill.fill_time = fill_time;
-
+
if (fill.fill_defined == FALSE && fill_time == H5D_FILL_TIME_ALLOC)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT,FAIL, "unable to create dataset")
@@ -1918,7 +1918,7 @@ H5D_update_entry_info(H5F_t *file, hid_t dxpl_id, H5D_t *dset, H5P_genplist_t *p
if (H5O_bogus_oh(file, dxpl_id, oh))<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to update 'bogus' message")
#endif /* H5O_ENABLE_BOGUS */
-
+
/* Add a modification time message. */
if (H5O_touch_oh(file, oh, TRUE) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to update modification time message")
@@ -1953,8 +1953,8 @@ done:
* Failure: NULL
*
* Errors:
- * DATASET CANTINIT Can't update dataset header.
- * DATASET CANTINIT Problem with the dataset name.
+ * DATASET CANTINIT Can't update dataset header.
+ * DATASET CANTINIT Problem with the dataset name.
* DATASET CANTINIT Fail in file space allocation for
* chunks
*
@@ -1975,13 +1975,13 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to retrieve and set property for generic property
+ * Changed the way to retrieve and set property for generic property
* list.
*
* Raymond Lu, 26 Feb 2002
* A new fill value message is added. Two properties, space allocation
* time and fill value writing time, govern space allocation and fill
- * value writing.
+ * value writing.
*
* Bill Wendling, 1. November 2002
* Removed the cache updating mechanism. This was done so that it
@@ -1995,7 +1995,7 @@ done:
* Nat Furrer and James Laird
* June 7, 2004
* Added checked_filters flag
- *
+ *
*-------------------------------------------------------------------------
*/
static H5D_t *
@@ -2107,13 +2107,13 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
new_dset->shared->alloc_time=alloc_time;
/* If MPI VFD is used, no filter support yet. */
- if(IS_H5FD_MPI(file) && dcpl_pline.nused > 0)
+ if(IS_H5FD_MPI(file) && dcpl_pline.nused > 0)
HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, NULL, "Parallel I/O does not support filters yet")
/* Chunked datasets are non-default, so retrieve their info here */
if(H5P_get(dc_plist, H5D_CRT_CHUNK_DIM_NAME, &chunk_ndims) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't retrieve chunk dimensions")
-
+
/* Get the dataset's external file list information */
if(H5P_get(dc_plist, H5D_CRT_EXT_FILE_LIST_NAME, &new_dset->shared->efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't retrieve external file list")
@@ -2125,7 +2125,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
/* Check if this dataset is going into a parallel file and set space allocation time */
if(IS_H5FD_MPI(file))
new_dset->shared->alloc_time=H5D_ALLOC_TIME_EARLY;
-
+
/* Set up layout information */
new_dset->shared->layout.unused.ndims = H5S_GET_EXTENT_NDIMS(new_dset->shared->space) + 1;
assert((unsigned)(new_dset->shared->layout.unused.ndims) <= NELMTS(new_dset->shared->layout.unused.dim));
@@ -2210,7 +2210,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
/*
* The chunk size of a dimension with a fixed size cannot exceed
- * the maximum dimension size
+ * the maximum dimension size
*/
if(H5P_get(dc_plist, H5D_CRT_CHUNK_SIZE_NAME, new_dset->shared->layout.u.chunk.dim) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't retrieve chunk size")
@@ -2245,7 +2245,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
hsize_t comp_data_size;
/*
- * Compact dataset is stored in dataset object header message of
+ * Compact dataset is stored in dataset object header message of
* layout.
*/
tmp_size = H5S_GET_EXTENT_NPOINTS(space) *
@@ -2277,7 +2277,7 @@ H5D_create(H5G_entry_t *loc, const char *name, hid_t type_id, const H5S_t *space
if (H5D_get_dcpl_cache(new_dset->shared->dcpl_id,&new_dset->shared->dcpl_cache)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, NULL, "can't fill DCPL cache")
- /*
+ /*
* Give the dataset a name. That is, create and add a new
* "H5G_entry_t" object to the group this dataset is being initially
* created in.
@@ -2355,7 +2355,7 @@ H5D_isa(H5G_entry_t *ent, hid_t dxpl_id)
{
htri_t exists;
htri_t ret_value=TRUE; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_isa, FAIL)
assert(ent);
@@ -2373,7 +2373,7 @@ H5D_isa(H5G_entry_t *ent, hid_t dxpl_id)
} else if (!exists) {
HGOTO_DONE(FALSE)
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -2381,7 +2381,7 @@ done:
/*
- *-------------------------------------------------------------------------
+ *-------------------------------------------------------------------------
* Function: H5D_open
*
* Purpose: Checks if dataset is already open, or opens a dataset for
@@ -2405,7 +2405,7 @@ H5D_open(const H5G_entry_t *ent, hid_t dxpl_id)
H5D_shared_t *shared_fo=NULL;
H5D_t *dataset=NULL;
H5D_t *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_open, NULL)
/* check args */
@@ -2487,18 +2487,18 @@ static H5D_t *
H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
{
H5D_t *dataset = NULL; /*new dataset struct */
- H5O_fill_new_t fill = {NULL, 0, NULL, H5D_ALLOC_TIME_LATE, H5D_CRT_FILL_TIME_DEF, TRUE};
+ H5O_fill_new_t fill = {NULL, 0, NULL, H5D_ALLOC_TIME_LATE, H5D_CRT_FILL_TIME_DEF, TRUE};
unsigned alloc_time_state; /* Allocation time state */
H5O_fill_t *fill_prop; /* Pointer to dataset's fill value area */
H5O_pline_t pline; /* I/O pipeline information */
H5P_genplist_t *plist; /* Property list */
H5D_t *ret_value = NULL; /*return value */
-
+
FUNC_ENTER_NOAPI(H5D_open_oid, NULL)
/* check args */
assert (ent);
-
+
/* Allocate the dataset structure */
if(NULL==(dataset=H5FL_CALLOC(H5D_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
@@ -2514,7 +2514,7 @@ H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
/* Find the dataset object */
if (H5O_open(&(dataset->ent)) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTOPENOBJ, NULL, "unable to open")
-
+
/* Get the type and space */
if (NULL==(dataset->shared->type=H5O_read(&(dataset->ent), H5O_DTYPE_ID, 0, NULL, dxpl_id)))
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to load type info from dataset header")
@@ -2579,7 +2579,7 @@ H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
unsigned chunk_ndims; /* Dimensionality of chunk */
chunk_ndims = dataset->shared->layout.u.chunk.ndims - 1;
-
+
if(H5P_set(plist, H5D_CRT_CHUNK_DIM_NAME, &chunk_ndims) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTSET, NULL, "can't set chunk dimensions")
if(H5P_set(plist, H5D_CRT_CHUNK_SIZE_NAME, dataset->shared->layout.u.chunk.dim) < 0)
@@ -2594,7 +2594,7 @@ H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
dataset->shared->io_ops.readvv=H5D_istore_readvv;
dataset->shared->io_ops.writevv=H5D_istore_writevv;
break;
-
+
case H5D_COMPACT:
/* Set the I/O functions for this layout type */
dataset->shared->io_ops.readvv=H5D_compact_readvv;
@@ -2632,7 +2632,7 @@ H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
case H5D_CHUNKED:
fill.alloc_time=H5D_ALLOC_TIME_INCR;
break;
-
+
default:
HGOTO_ERROR(H5E_DATASET, H5E_UNSUPPORTED, NULL, "not implemented yet")
} /* end switch */ /*lint !e788 All appropriate cases are covered */
@@ -2660,8 +2660,8 @@ H5D_open_oid(const H5G_entry_t *ent, hid_t dxpl_id)
|| (dataset->shared->layout.type==H5D_CONTIGUOUS && fill.alloc_time==H5D_ALLOC_TIME_LATE)
|| (dataset->shared->layout.type==H5D_CHUNKED && fill.alloc_time==H5D_ALLOC_TIME_INCR))
alloc_time_state=1;
-
- /* Set revised fill value properties */
+
+ /* Set revised fill value properties */
if(H5P_set(plist, H5D_CRT_FILL_VALUE_NAME, fill_prop) < 0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTSET, NULL, "can't set fill value")
dataset->shared->alloc_time=fill.alloc_time; /* Cache this for later */
@@ -2744,7 +2744,7 @@ done:
*
* Errors:
* DATASET CANTINIT Couldn't free the type or space,
- * but the dataset was freed anyway.
+ * but the dataset was freed anyway.
*
* Programmer: Robb Matzke
* Thursday, December 4, 1997
@@ -2804,7 +2804,7 @@ H5D_close(H5D_t *dataset)
HGOTO_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "unable to destroy chunk cache")
break;
- case H5D_COMPACT:
+ case H5D_COMPACT:
/* Update header message of layout for compact dataset. */
if(dataset->shared->layout.u.compact.dirty) {
if(H5O_modify(&(dataset->ent), H5O_LAYOUT_ID, 0, 0, H5O_UPDATE_TIME, &(dataset->shared->layout), H5AC_dxpl_id)<0)
@@ -2879,7 +2879,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to retrieve property for generic property
+ * Changed the way to retrieve property for generic property
* list.
*
* Nat Furrer and James Laird
@@ -2923,7 +2923,7 @@ H5D_extend (H5D_t *dataset, const hsize_t *size, hid_t dxpl_id)
if(H5Z_can_apply(dataset->shared->dcpl_id, dataset->shared->type_id) <0)
HGOTO_ERROR(H5E_PLINE, H5E_CANAPPLY, FAIL, "can't apply filters")
- dataset->shared->checked_filters = TRUE;
+ dataset->shared->checked_filters = TRUE;
}
}
}
@@ -3071,7 +3071,7 @@ H5D_alloc_storage (H5F_t *f, hid_t dxpl_id, H5D_t *dset/*in,out*/, H5D_time_allo
unsigned init_space=0; /* Flag to indicate that space should be initialized */
unsigned addr_set=0; /* Flag to indicate that the dataset's storage address was set */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_alloc_storage)
/* check args */
@@ -3123,7 +3123,7 @@ H5D_alloc_storage (H5F_t *f, hid_t dxpl_id, H5D_t *dset/*in,out*/, H5D_time_allo
break;
- case H5D_COMPACT:
+ case H5D_COMPACT:
/* Check if space is already allocated */
if(layout->u.compact.buf==NULL) {
/* Reserve space in layout header message for the entire array. */
@@ -3139,7 +3139,7 @@ H5D_alloc_storage (H5F_t *f, hid_t dxpl_id, H5D_t *dset/*in,out*/, H5D_time_allo
init_space=1;
} /* end if */
break;
-
+
default:
assert ("not implemented yet" && 0);
#ifdef NDEBUG
@@ -3210,7 +3210,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to retrieve property for generic property
+ * Changed the way to retrieve property for generic property
* list.
*
*-------------------------------------------------------------------------
@@ -3257,9 +3257,9 @@ H5D_init_storage(H5D_t *dset, hbool_t full_overwrite, hid_t dxpl_id)
break;
case H5D_CHUNKED:
- /*
- * Allocate file space
- * for all chunks now and initialize each chunk with the fill value.
+ /*
+ * Allocate file space
+ * for all chunks now and initialize each chunk with the fill value.
*/
if (H5D_istore_allocate(dset, dxpl_id, full_overwrite)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "unable to allocate all chunks of dataset")
@@ -3271,7 +3271,7 @@ H5D_init_storage(H5D_t *dset, hbool_t full_overwrite, hid_t dxpl_id)
HGOTO_ERROR (H5E_IO, H5E_UNSUPPORTED, FAIL, "unsupported storage layout")
#endif /* NDEBUG */
} /* end switch */ /*lint !e788 All appropriate cases are covered */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_init_storage() */
@@ -3302,7 +3302,7 @@ H5Dget_storage_size(hid_t dset_id)
{
H5D_t *dset=NULL;
hsize_t ret_value; /* Return value */
-
+
FUNC_ENTER_API(H5Dget_storage_size, 0)
H5TRACE1("h","i",dset_id);
@@ -3339,7 +3339,7 @@ static hsize_t
H5D_get_storage_size(H5D_t *dset, hid_t dxpl_id)
{
hsize_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5D_get_storage_size, 0)
switch(dset->shared->layout.type) {
@@ -3365,7 +3365,7 @@ H5D_get_storage_size(H5D_t *dset, hid_t dxpl_id)
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a dataset type")
} /*lint !e788 All appropriate cases are covered */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -3376,12 +3376,12 @@ done:
*
* Purpose: Returns the address of dataset in file.
*
- * Return: Success: the address of dataset
+ * Return: Success: the address of dataset
*
* Failure: HADDR_UNDEF
*
- * Programmer: Raymond Lu
- * November 6, 2002
+ * Programmer: Raymond Lu
+ * November 6, 2002
*
* Modifications:
*
@@ -3392,7 +3392,7 @@ H5Dget_offset(hid_t dset_id)
{
H5D_t *dset=NULL;
haddr_t ret_value; /* Return value */
-
+
FUNC_ENTER_API(H5Dget_offset, HADDR_UNDEF)
H5TRACE1("a","i",dset_id);
@@ -3411,15 +3411,15 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_get_offset
*
- * Purpose: Private function for H5D_get_offset. Returns the address
+ * Purpose: Private function for H5D_get_offset. Returns the address
* of dataset in file.
*
- * Return: Success: the address of dataset
+ * Return: Success: the address of dataset
*
* Failure: HADDR_UNDEF
*
- * Programmer: Raymond Lu
- * November 6, 2002
+ * Programmer: Raymond Lu
+ * November 6, 2002
*
* Modifications:
*
@@ -3431,7 +3431,7 @@ H5D_get_offset(const H5D_t *dset)
haddr_t ret_value=HADDR_UNDEF;
haddr_t base_addr;
H5F_t *f;
-
+
FUNC_ENTER_NOAPI(H5D_get_offset, HADDR_UNDEF)
assert(dset);
@@ -3442,11 +3442,11 @@ H5D_get_offset(const H5D_t *dset)
break;
case H5D_CONTIGUOUS:
- /* If dataspace hasn't been allocated or dataset is stored in
+ /* If dataspace hasn't been allocated or dataset is stored in
* an external file, the value will be HADDR_UNDEF. */
f = H5D_get_file(dset);
base_addr = H5F_get_base_addr(f);
-
+
/* If there's user block in file, returns the absolute dataset offset
* from the beginning of file. */
if(base_addr!=HADDR_UNDEF)
@@ -3461,7 +3461,7 @@ H5D_get_offset(const H5D_t *dset)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, HADDR_UNDEF, "unknown dataset layout type")
#endif /* NDEBUG */
} /*lint !e788 All appropriate cases are covered */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -3507,12 +3507,12 @@ done:
* void *operator_data; IN/OUT: Pointer to any user-defined data
* associated with the operation.
*
- * The return values from an operator are:
+ * The return values from an operator are:
* Zero causes the iterator to continue, returning zero when all
- * elements have been processed.
+ * elements have been processed.
* Positive causes the iterator to immediately return that positive
* value, indicating short-circuit success. The iterator can be
- * restarted at the next element.
+ * restarted at the next element.
* Negative causes the iterator to immediately return that value,
* indicating failure. The iterator can be restarted at the next
* element.
@@ -3757,7 +3757,7 @@ H5Dvlen_get_buf_size(hid_t dataset_id, hid_t type_id, hid_t space_id,
/* Get a copy of the dataspace ID */
if((vlen_bufsize.fspace_id=H5Dget_space(dataset_id))<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "can't copy dataspace")
-
+
/* Create a scalar for the memory dataspace */
if((vlen_bufsize.mspace_id=H5Screate(H5S_SCALAR))<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "can't create dataspace")
@@ -3819,7 +3819,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Dset_extent
*
- * Purpose: Modifies the dimensions of a dataset, based on H5Dextend.
+ * Purpose: Modifies the dimensions of a dataset, based on H5Dextend.
* Can change to a lower dimension.
*
* Return: Success: SUCCEED, Failure: FAIL
@@ -3862,7 +3862,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_set_extent
*
- * Purpose: Based in H5D_extend, allows change to a lower dimension,
+ * Purpose: Based in H5D_extend, allows change to a lower dimension,
* calls H5S_set_extent and H5D_istore_prune_by_extent instead
*
* Return: Success: SUCCEED, Failure: FAIL
@@ -3953,7 +3953,7 @@ H5D_set_extent(H5D_t *dset, const hsize_t *size, hid_t dxpl_id)
H5D_io_info_t io_info; /* Dataset I/O info */
H5D_dxpl_cache_t _dxpl_cache; /* Data transfer property cache buffer */
H5D_dxpl_cache_t *dxpl_cache=&_dxpl_cache; /* Data transfer property cache */
-
+
/* Fill the DXPL cache values for later use */
if (H5D_get_dxpl_cache(dxpl_id,&dxpl_cache)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't fill dxpl cache")
@@ -4045,14 +4045,14 @@ H5D_flush(const H5F_t *f, hid_t dxpl_id, unsigned flags)
HGOTO_ERROR(H5E_CACHE, H5E_CANTFLUSH, FAIL, "unable to flush raw data cache")
break;
- case H5D_COMPACT:
+ case H5D_COMPACT:
if(dataset->shared->layout.u.compact.dirty) {
if(H5O_modify(&(dataset->ent), H5O_LAYOUT_ID, 0, 0, H5O_UPDATE_TIME, &(dataset->shared->layout), dxpl_id)<0)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to update layout message")
dataset->shared->layout.u.compact.dirty = FALSE;
} /* end if */
break;
-
+
default:
assert ("not implemented yet" && 0);
#ifdef NDEBUG
@@ -4106,7 +4106,7 @@ H5Ddebug(hid_t dset_id)
} else if (H5D_CONTIGUOUS==dset->shared->layout.type) {
HDfprintf(stdout, " %-10s %a\n", "Address:", dset->shared->layout.u.contig.addr);
}
-
+
done:
FUNC_LEAVE_API(ret_value)
}
diff --git a/src/H5Dcompact.c b/src/H5Dcompact.c
index a3048b3..9c272f0 100644
--- a/src/H5Dcompact.c
+++ b/src/H5Dcompact.c
@@ -13,8 +13,8 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
- * Programmer: Raymond Lu <slu@ncsa.uiuc.edu>
- * August 5, 2002
+ * Programmer: Raymond Lu <slu@ncsa.uiuc.edu>
+ * August 5, 2002
*
* Purpose: Compact dataset I/O functions. These routines are similar
* H5D_contig_* and H5D_istore_*.
@@ -34,32 +34,32 @@
/*-------------------------------------------------------------------------
* Function: H5D_compact_readvv
- *
+ *
* Purpose: Reads some data vectors from a dataset into a buffer.
- * The data is in compact dataset. The address is relative
+ * The data is in compact dataset. The address is relative
* to the beginning address of the dataset. The offsets and
* sequence lengths are in bytes.
- *
+ *
* Return: Non-negative on success/Negative on failure
- *
+ *
* Programmer: Quincey Koziol
* May 7, 2003
- *
- * Notes:
+ *
+ * Notes:
* Offsets in the sequences must be monotonically increasing
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
ssize_t
H5D_compact_readvv(const H5D_io_info_t *io_info,
- size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
- size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
+ size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
+ size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
void *buf)
{
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_compact_readvv, FAIL)
assert(io_info->dset);
@@ -68,42 +68,42 @@ H5D_compact_readvv(const H5D_io_info_t *io_info,
if((ret_value=H5V_memcpyvv(buf,mem_max_nseq,mem_curr_seq,mem_size_arr,mem_offset_arr,io_info->dset->shared->layout.u.compact.buf,dset_max_nseq,dset_curr_seq,dset_size_arr,dset_offset_arr))<0)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "vectorized memcpy failed")
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_compact_readvv() */
/*-------------------------------------------------------------------------
* Function: H5D_compact_writevv
- *
+ *
* Purpose: Writes some data vectors from a dataset into a buffer.
- * The data is in compact dataset. The address is relative
+ * The data is in compact dataset. The address is relative
* to the beginning address for the file. The offsets and
* sequence lengths are in bytes. This function only copies
- * data into the buffer in the LAYOUT struct and mark it
- * as DIRTY. Later in H5D_close, the data is copied into
- * header message in memory.
- *
+ * data into the buffer in the LAYOUT struct and mark it
+ * as DIRTY. Later in H5D_close, the data is copied into
+ * header message in memory.
+ *
* Return: Non-negative on success/Negative on failure
- *
+ *
* Programmer: Quincey Koziol
* May 2, 2003
- *
- * Notes:
+ *
+ * Notes:
* Offsets in the sequences must be monotonically increasing
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
ssize_t
H5D_compact_writevv(const H5D_io_info_t *io_info,
- size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
- size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
+ size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
+ size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
const void *buf)
{
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_compact_writevv, FAIL)
assert(io_info->dset);
@@ -114,6 +114,6 @@ H5D_compact_writevv(const H5D_io_info_t *io_info,
io_info->dset->shared->layout.u.compact.dirty = TRUE;
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_compact_writevv() */
diff --git a/src/H5Dcontig.c b/src/H5Dcontig.c
index d03c597..2c2539f 100644
--- a/src/H5Dcontig.c
+++ b/src/H5Dcontig.c
@@ -124,7 +124,7 @@ H5D_contig_fill(H5D_t *dset, hid_t dxpl_id)
#endif /* H5_HAVE_PARALLEL */
int non_zero_fill_f=(-1); /* Indicate that a non-zero fill-value was used */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_contig_fill, FAIL)
/* Check args */
@@ -215,7 +215,7 @@ H5D_contig_fill(H5D_t *dset, hid_t dxpl_id)
/* Indicate that a zero fill buffer was used */
non_zero_fill_f=0;
} /* end else */
-
+
/* Start at the beginning of the dataset */
offset = 0;
@@ -248,7 +248,7 @@ H5D_contig_fill(H5D_t *dset, hid_t dxpl_id)
npoints -= MIN(ptsperbuf, npoints);
offset += size;
} /* end while */
-
+
#ifdef H5_HAVE_PARALLEL
/* Only need to block at the barrier if we actually wrote fill values */
/* And if we are using an MPI-capable file driver */
@@ -421,7 +421,7 @@ H5D_contig_readvv(const H5D_io_info_t *io_info,
size_t u; /* Counting variable */
size_t v; /* Counting variable */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_contig_readvv, FAIL)
/* Check args */
@@ -688,7 +688,7 @@ H5D_contig_writevv(const H5D_io_info_t *io_info,
size_t u; /* Counting variable */
size_t v; /* Counting variable */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_contig_writevv, FAIL)
/* Check args */
@@ -716,7 +716,7 @@ H5D_contig_writevv(const H5D_io_info_t *io_info,
sieve_size=dset_contig->sieve_size;
sieve_end=sieve_start+sieve_size;
} /* end if */
-
+
/* Works through sequences as fast as possible */
for(; u<dset_max_nseq && v<mem_max_nseq; ) {
/* Choose smallest buffer to write */
@@ -834,7 +834,7 @@ H5D_contig_writevv(const H5D_io_info_t *io_info,
/* Adjust sieve location */
dset_contig->sieve_loc=addr;
-
+
} /* end if */
/* Append to existing sieve buffer */
else {
@@ -844,7 +844,7 @@ H5D_contig_writevv(const H5D_io_info_t *io_info,
/* Adjust sieve size */
dset_contig->sieve_size += size;
-
+
/* Update local copies of sieve information */
sieve_start=dset_contig->sieve_loc;
sieve_size=dset_contig->sieve_size;
diff --git a/src/H5Defl.c b/src/H5Defl.c
index 4e1c601..1356950 100644
--- a/src/H5Defl.c
+++ b/src/H5Defl.c
@@ -62,7 +62,7 @@ H5D_efl_read (const H5O_efl_t *efl, haddr_t addr, size_t size, uint8_t *buf)
ssize_t n;
size_t u; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_efl_read)
/* Check args */
@@ -79,7 +79,7 @@ H5D_efl_read (const H5O_efl_t *efl, haddr_t addr, size_t size, uint8_t *buf)
}
cur += efl->slot[u].size;
}
-
+
/* Read the data */
while (size) {
assert(buf);
@@ -110,14 +110,14 @@ H5D_efl_read (const H5O_efl_t *efl, haddr_t addr, size_t size, uint8_t *buf)
skip = 0;
u++;
}
-
+
done:
if (fd>=0)
HDclose (fd);
FUNC_LEAVE_NOAPI(ret_value)
}
-
+
/*-------------------------------------------------------------------------
* Function: H5D_efl_write
@@ -149,7 +149,7 @@ H5D_efl_write (const H5O_efl_t *efl, haddr_t addr, size_t size, const uint8_t *b
hsize_t skip=0;
size_t u; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_efl_write)
/* Check args */
@@ -166,7 +166,7 @@ H5D_efl_write (const H5O_efl_t *efl, haddr_t addr, size_t size, const uint8_t *b
}
cur += efl->slot[u].size;
}
-
+
/* Write the data */
while (size) {
assert(buf);
@@ -199,14 +199,14 @@ H5D_efl_write (const H5O_efl_t *efl, haddr_t addr, size_t size, const uint8_t *b
skip = 0;
u++;
}
-
+
done:
if (fd>=0)
HDclose (fd);
FUNC_LEAVE_NOAPI(ret_value)
}
-
+
/*-------------------------------------------------------------------------
* Function: H5D_efl_readvv
@@ -239,7 +239,7 @@ H5D_efl_readvv(const H5D_io_info_t *io_info,
size_t u; /* Counting variable */
size_t v; /* Counting variable */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_efl_readvv, FAIL)
/* Check args */
@@ -290,7 +290,7 @@ H5D_efl_readvv(const H5D_io_info_t *io_info,
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_efl_readvv() */
-
+
/*-------------------------------------------------------------------------
* Function: H5D_efl_writevv
@@ -323,7 +323,7 @@ H5D_efl_writevv(const H5D_io_info_t *io_info,
size_t u; /* Counting variable */
size_t v; /* Counting variable */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_efl_writevv, FAIL)
/* Check args */
@@ -374,4 +374,4 @@ H5D_efl_writevv(const H5D_io_info_t *io_info,
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_efl_writevv() */
-
+
diff --git a/src/H5Dio.c b/src/H5Dio.c
index fd9b6c9..495467a 100644
--- a/src/H5Dio.c
+++ b/src/H5Dio.c
@@ -77,7 +77,7 @@ static herr_t H5D_read(H5D_t *dataset, hid_t mem_type_id,
static herr_t H5D_write(H5D_t *dataset, hid_t mem_type_id,
const H5S_t *mem_space, const H5S_t *file_space,
hid_t dset_xfer_plist, const void *buf);
-static herr_t
+static herr_t
H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
const H5T_t *mem_type, const H5S_t *mem_space,
const H5S_t *file_space, H5T_path_t *tpath,
@@ -88,20 +88,20 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
const H5S_t *file_space, H5T_path_t *tpath,
hid_t src_id, hid_t dst_id, const void *buf);
static herr_t
-H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
+H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
const H5T_t *mem_type, const H5S_t *mem_space,
const H5S_t *file_space, H5T_path_t *tpath,
hid_t src_id, hid_t dst_id, void *buf/*out*/);
static herr_t
-H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
+H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
const H5T_t *mem_type, const H5S_t *mem_space,
const H5S_t *file_space, H5T_path_t *tpath,
hid_t src_id, hid_t dst_id, const void *buf);
#ifdef H5_HAVE_PARALLEL
-static herr_t
-H5D_io_assist_mpio(hid_t dxpl_id, H5D_dxpl_cache_t *dxpl_cache,
+static herr_t
+H5D_io_assist_mpio(hid_t dxpl_id, H5D_dxpl_cache_t *dxpl_cache,
hbool_t *xfer_mode_changed);
-static herr_t
+static herr_t
H5D_io_restore_mpio(hid_t dxpl_id);
static htri_t
H5D_get_collective_io_consensus(const H5F_t *file,
@@ -110,7 +110,7 @@ H5D_get_collective_io_consensus(const H5F_t *file,
#endif /* H5_HAVE_PARALLEL */
/* I/O info operations */
-static herr_t
+static herr_t
H5D_ioinfo_init(H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id,
const H5S_t *mem_space, const H5S_t *file_space,
unsigned flags, hbool_t *use_par_opt_io, H5D_io_info_t *io_info);
@@ -411,7 +411,7 @@ done:
* Purpose: Reads (part of) a DSET from the file into application
* memory BUF. The part of the dataset to read is defined with
* MEM_SPACE_ID and FILE_SPACE_ID. The data points are
- * converted from their file type to the MEM_TYPE_ID specified.
+ * converted from their file type to the MEM_TYPE_ID specified.
* Additional miscellaneous data transfer properties can be
* passed to this function with the PLIST_ID argument.
*
@@ -431,12 +431,12 @@ done:
* Return: Non-negative on success/Negative on failure
*
* Errors:
- * ARGS BADTYPE Not a data space.
- * ARGS BADTYPE Not a data type.
- * ARGS BADTYPE Not a dataset.
- * ARGS BADTYPE Not xfer parms.
- * ARGS BADVALUE No output buffer.
- * DATASET READERROR Can't read data.
+ * ARGS BADTYPE Not a data space.
+ * ARGS BADTYPE Not a data type.
+ * ARGS BADTYPE Not a dataset.
+ * ARGS BADTYPE Not xfer parms.
+ * ARGS BADVALUE No output buffer.
+ * DATASET READERROR Can't read data.
*
* Programmer: Robb Matzke
* Thursday, December 4, 1997
@@ -623,7 +623,7 @@ done:
* Changed the way to retrieve property for generic property list.
*
* Raymond Lu, 2002-2-26
- * For the new fill value design, data space can either be allocated
+ * For the new fill value design, data space can either be allocated
* or not allocated at this stage. Fill value or data from space is
* returned to outgoing buffer.
*
@@ -700,12 +700,12 @@ H5D_read(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space,
/* Retrieve dataset properties */
/* <none needed in the general case> */
- /* If space hasn't been allocated and not using external storage,
+ /* If space hasn't been allocated and not using external storage,
* return fill value to buffer if fill time is upon allocation, or
- * do nothing if fill time is never. If the dataset is compact and
+ * do nothing if fill time is never. If the dataset is compact and
* fill time is NEVER, there is no way to tell whether part of data
- * has been overwritten. So just proceed in reading.
- */
+ * has been overwritten. So just proceed in reading.
+ */
if(nelmts > 0 && dataset->shared->efl.nused==0 &&
((dataset->shared->layout.type==H5D_CONTIGUOUS && !H5F_addr_defined(dataset->shared->layout.u.contig.addr))
|| (dataset->shared->layout.type==H5D_CHUNKED && !H5F_addr_defined(dataset->shared->layout.u.chunk.addr)))) {
@@ -767,17 +767,17 @@ H5D_read(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space,
#ifdef H5_HAVE_PARALLEL
#ifdef H5_HAVE_INSTRUMENTED_LIBRARY
/**** Test for collective chunk IO
- notice the following code should be removed after
+ notice the following code should be removed after
a more general collective chunk IO algorithm is applied.
*/
if(dataset->shared->layout.type == H5D_CHUNKED) { /*only check for chunking storage */
check_prop = H5Pexist(dxpl_id,H5D_XFER_COLL_CHUNK_NAME);
- if(check_prop < 0)
+ if(check_prop < 0)
HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to check property list");
if(check_prop > 0) {
- if(H5Pget(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&prop_value)<0)
- HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to get property value");
+ if(H5Pget(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&prop_value)<0)
+ HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to get property value");
if(!use_par_opt_io) {
new_value = 0;
if(H5Pset(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&new_value)<0)
@@ -842,7 +842,7 @@ done:
* Added the code that when it detects it is not safe to process a
* COLLECTIVE write request without hanging, it changes it to
* INDEPENDENT calls.
- *
+ *
* Albert Cheng, 2000-11-27
* Changed to use the optimized MPIO transfer for Collective calls only.
*
@@ -850,8 +850,8 @@ done:
* Changed the way to retrieve property for generic property list.
*
* Raymond Lu, 2002-2-26
- * For the new fill value design, space may not be allocated until
- * this function is called. Allocate and initialize space if it
+ * For the new fill value design, space may not be allocated until
+ * this function is called. Allocate and initialize space if it
* hasn't been.
*
* QAK - 2002/04/02
@@ -928,8 +928,8 @@ H5D_write(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space,
if (!file_space)
file_space = dataset->shared->space;
- if (!mem_space)
- mem_space = file_space;
+ if (!mem_space)
+ mem_space = file_space;
if((snelmts = H5S_GET_SELECT_NPOINTS(mem_space))<0)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "src dataspace has invalid selection")
H5_ASSIGN_OVERFLOW(nelmts,snelmts,hssize_t,hsize_t);
@@ -959,7 +959,7 @@ H5D_write(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space,
/* <none needed currently> */
/* Allocate data space and initialize it if it hasn't been. */
- if(nelmts > 0 && dataset->shared->efl.nused==0 &&
+ if(nelmts > 0 && dataset->shared->efl.nused==0 &&
((dataset->shared->layout.type==H5D_CONTIGUOUS && !H5F_addr_defined(dataset->shared->layout.u.contig.addr))
|| (dataset->shared->layout.type==H5D_CHUNKED && !H5F_addr_defined(dataset->shared->layout.u.chunk.addr)))) {
hssize_t file_nelmts; /* Number of elements in file dataset's dataspace */
@@ -1012,22 +1012,22 @@ H5D_write(H5D_t *dataset, hid_t mem_type_id, const H5S_t *mem_space,
/* Set up I/O operation */
if(H5D_ioinfo_init(dataset,dxpl_cache,dxpl_id,mem_space,file_space,sconv_flags,&use_par_opt_io,&io_info)<0)
HGOTO_ERROR (H5E_DATASET, H5E_UNSUPPORTED, FAIL, "unable to set up I/O operation")
-
+
#ifdef H5_HAVE_PARALLEL
#ifdef H5_HAVE_INSTRUMENTED_LIBRARY
/**** Test for collective chunk IO
- notice the following code should be removed after
+ notice the following code should be removed after
a more general collective chunk IO algorithm is applied.
*/
if(dataset->shared->layout.type == H5D_CHUNKED) { /*only check for chunking storage */
-
+
check_prop = H5Pexist(dxpl_id,H5D_XFER_COLL_CHUNK_NAME);
- if(check_prop < 0)
+ if(check_prop < 0)
HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to check property list");
if(check_prop > 0) {
- if(H5Pget(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&prop_value)<0)
- HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to get property value");
+ if(H5Pget(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&prop_value)<0)
+ HGOTO_ERROR(H5E_PLIST, H5E_UNSUPPORTED, FAIL, "unable to get property value");
if(!use_par_opt_io) {
new_value = 0;
if(H5Pset(dxpl_id,H5D_XFER_COLL_CHUNK_NAME,&new_value)<0)
@@ -1096,7 +1096,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
const H5T_t *mem_type, const H5S_t *mem_space,
const H5S_t *file_space, H5T_path_t *tpath,
@@ -1104,7 +1104,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
{
H5D_t *dataset=io_info->dset; /* Local pointer to dataset info */
const H5D_dxpl_cache_t *dxpl_cache=io_info->dxpl_cache; /* Local pointer to dataset transfer info */
- herr_t status; /*function return status*/
+ herr_t status; /*function return status*/
#ifdef H5S_DEBUG
H5_timer_t timer;
#endif
@@ -1155,7 +1155,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
|| dataset->shared->layout.type==H5D_COMPACT);
H5_CHECK_OVERFLOW(nelmts,hsize_t,size_t);
status = (io_info->ops.read)(io_info,
- (size_t)nelmts, H5T_get_size(dataset->shared->type),
+ (size_t)nelmts, H5T_get_size(dataset->shared->type),
file_space, mem_space,
buf/*out*/);
#ifdef H5S_DEBUG
@@ -1196,7 +1196,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
target_size=(size_t)(nelmts*max_type_size);
} /* end if */
request_nelmts = target_size / max_type_size;
-
+
/* Sanity check elements in temporary buffer */
if (request_nelmts==0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "temporary buffer max size is too small")
@@ -1246,7 +1246,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
/* Go figure out how many elements to read from the file */
assert(H5S_SELECT_ITER_NELMTS(&file_iter)==(nelmts-smine_start));
smine_nelmts = (size_t)MIN(request_nelmts, (nelmts-smine_start));
-
+
/*
* Gather the data from disk into the data type conversion
* buffer. Also gather data from application to background buffer
@@ -1255,10 +1255,10 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
#ifdef H5S_DEBUG
H5_timer_begin(&timer);
#endif
- /* Sanity check that space is allocated, then read data from it */
+ /* Sanity check that space is allocated, then read data from it */
assert(((dataset->shared->layout.type==H5D_CONTIGUOUS && H5F_addr_defined(dataset->shared->layout.u.contig.addr))
|| (dataset->shared->layout.type==H5D_CHUNKED && H5F_addr_defined(dataset->shared->layout.u.chunk.addr)))
- || dataset->shared->efl.nused>0 ||
+ || dataset->shared->efl.nused>0 ||
dataset->shared->layout.type==H5D_COMPACT);
n = H5D_select_fgath(io_info,
file_space, &file_iter, smine_nelmts,
@@ -1271,7 +1271,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
#endif
if (n!=smine_nelmts)
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL, "file gather failed")
-
+
if (H5T_BKG_YES==need_bkg) {
#ifdef H5S_DEBUG
H5_timer_begin(&timer);
@@ -1286,7 +1286,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
if (n!=smine_nelmts)
HGOTO_ERROR (H5E_IO, H5E_READERROR, FAIL, "mem gather failed")
} /* end if */
-
+
/*
* Perform data type conversion.
*/
@@ -1308,7 +1308,7 @@ H5D_contig_read(H5D_io_info_t *io_info, hsize_t nelmts,
#endif
if (status<0)
HGOTO_ERROR (H5E_DATASET, H5E_READERROR, FAIL, "scatter failed")
-
+
} /* end for */
done:
@@ -1330,7 +1330,7 @@ done:
H5FL_BLK_FREE(type_conv,tconv_buf);
if (bkg_buf && NULL==dxpl_cache->bkgr_buf)
H5FL_BLK_FREE(type_conv,bkg_buf);
-
+
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_contig_read() */
@@ -1359,7 +1359,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
{
H5D_t *dataset=io_info->dset; /* Local pointer to dataset info */
const H5D_dxpl_cache_t *dxpl_cache=io_info->dxpl_cache; /* Local pointer to dataset transfer info */
- herr_t status; /*function return status*/
+ herr_t status; /*function return status*/
#ifdef H5S_DEBUG
H5_timer_t timer;
#endif
@@ -1421,7 +1421,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
/* direct xfer accomplished successfully */
HGOTO_DONE(SUCCEED)
} /* end if */
-
+
/*
* This is the general case.
*/
@@ -1461,7 +1461,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
if (H5S_select_iter_init(&bkg_iter, file_space, dst_type_size)<0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize background selection information")
bkg_iter_init=1; /*file selection iteration info has been initialized */
-
+
/*
* Get a temporary buffer for type conversion unless the app has already
* supplied one through the xfer properties. Instead of allocating a
@@ -1470,7 +1470,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
* same size over and over.
*/
if(H5T_detect_class(dataset->shared->type, H5T_VLEN)) {
- /* Old data is retrieved into background buffer for VL datatype. The
+ /* Old data is retrieved into background buffer for VL datatype. The
* data is used later for freeing heap objects. */
need_bkg = H5T_BKG_YES;
} else if (H5T_path_bkg(tpath)) {
@@ -1500,7 +1500,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
/* Go figure out how many elements to read from the file */
assert(H5S_SELECT_ITER_NELMTS(&file_iter)==(nelmts-smine_start));
smine_nelmts = (size_t)MIN(request_nelmts, (nelmts-smine_start));
-
+
/*
* Gather data from application buffer into the data type conversion
* buffer. Also gather data from the file into the background buffer
@@ -1525,7 +1525,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
#endif
n = H5D_select_fgath(io_info,
file_space, &bkg_iter, smine_nelmts,
- bkg_buf/*out*/);
+ bkg_buf/*out*/);
#ifdef H5S_DEBUG
H5_timer_end(&(io_info->stats->stats[0].bkg_timer), &timer);
@@ -1535,7 +1535,7 @@ H5D_contig_write(H5D_io_info_t *io_info, hsize_t nelmts,
if (n!=smine_nelmts)
HGOTO_ERROR (H5E_IO, H5E_WRITEERROR, FAIL, "file gather failed")
} /* end if */
-
+
/*
* Perform data type conversion.
*/
@@ -1610,7 +1610,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
const H5D_dxpl_cache_t *dxpl_cache=io_info->dxpl_cache; /* Local pointer to dataset transfer info */
fm_map fm; /* File<->memory mapping */
H5SL_node_t *chunk_node; /* Current node in chunk skip list */
- herr_t status; /*function return status*/
+ herr_t status; /*function return status*/
#ifdef H5S_DEBUG
H5_timer_t timer;
#endif
@@ -1620,7 +1620,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
size_t target_size; /*desired buffer size */
size_t request_nelmts; /*requested strip mine */
hsize_t smine_start; /*strip mine start loc */
- size_t n, smine_nelmts; /*elements per strip */
+ size_t n, smine_nelmts; /*elements per strip */
H5S_sel_iter_t mem_iter; /*memory selection iteration info*/
hbool_t mem_iter_init=0; /*memory selection iteration info has been initialized */
H5S_sel_iter_t bkg_iter; /*background iteration info*/
@@ -1634,7 +1634,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
herr_t ret_value = SUCCEED; /*return value */
FUNC_ENTER_NOAPI_NOINIT(H5D_chunk_read)
-
+
/* Map elements between file and memory for each chunk*/
if(H5D_create_chunk_map(dataset, mem_type, file_space, mem_space, &fm)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "can't build chunk mapping")
@@ -1675,7 +1675,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
chunk_info->chunk_points, H5T_get_size(dataset->shared->type),
chunk_info->fspace, chunk_info->mspace,
buf);
-
+
/* Check return value from optimized read */
if (status<0)
HGOTO_ERROR(H5E_DATASET, H5E_READERROR, FAIL, "optimized read failed")
@@ -1683,7 +1683,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
/* Get the next chunk node in the skip list */
chunk_node=H5SL_next(chunk_node);
} /* end while */
-
+
#ifdef H5S_DEBUG
H5_timer_end(&(io_info->stats->stats[1].read_timer), &timer);
io_info->stats->stats[1].read_nbytes += nelmts * H5T_get_size(dataset->shared->type);
@@ -1718,7 +1718,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
target_size=(size_t)(nelmts*max_type_size);
} /* end if */
request_nelmts = target_size / max_type_size;
-
+
/* Sanity check elements in temporary buffer */
if (request_nelmts==0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "temporary buffer max size is too small")
@@ -1751,7 +1751,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
if((bkg_buf=H5FL_BLK_CALLOC(type_conv,(request_nelmts*dst_type_size)))==NULL)
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for background conversion")
} /* end if */
-
+
/* Loop over all the chunks, performing I/O on each */
/* Get first node in chunk skip list */
@@ -1774,16 +1774,16 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
if (H5S_select_iter_init(&bkg_iter, chunk_info->mspace, dst_type_size)<0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize background selection information")
bkg_iter_init=1; /*file selection iteration info has been initialized */
-
+
/* Pass in chunk's coordinates in a union*/
store.chunk.offset = chunk_info->coords;
store.chunk.index = chunk_info->index;
-
+
for (smine_start=0; smine_start<chunk_info->chunk_points; smine_start+=smine_nelmts) {
/* Go figure out how many elements to read from the file */
assert(H5S_SELECT_ITER_NELMTS(&file_iter)==(chunk_info->chunk_points-smine_start));
smine_nelmts = (size_t)MIN(request_nelmts, (chunk_info->chunk_points-smine_start));
-
+
/*
* Gather the data from disk into the data type conversion
* buffer. Also gather data from application to background buffer
@@ -1792,11 +1792,11 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
#ifdef H5S_DEBUG
H5_timer_begin(&timer);
#endif
- /* Sanity check that space is allocated, then read data from it */
+ /* Sanity check that space is allocated, then read data from it */
assert(((dataset->shared->layout.type==H5D_CONTIGUOUS && H5F_addr_defined(dataset->shared->layout.u.contig.addr))
|| (dataset->shared->layout.type==H5D_CHUNKED && H5F_addr_defined(dataset->shared->layout.u.chunk.addr)))
|| dataset->shared->efl.nused>0 || dataset->shared->layout.type==H5D_COMPACT);
- n = H5D_select_fgath(io_info,
+ n = H5D_select_fgath(io_info,
chunk_info->fspace, &file_iter, smine_nelmts,
tconv_buf/*out*/);
@@ -1822,11 +1822,11 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
if (n!=smine_nelmts)
HGOTO_ERROR (H5E_IO, H5E_READERROR, FAIL, "mem gather failed")
} /* end if */
-
+
/*
* Perform data type conversion.
*/
- if (H5T_convert(tpath, src_id, dst_id, smine_nelmts, 0, 0,
+ if (H5T_convert(tpath, src_id, dst_id, smine_nelmts, 0, 0,
tconv_buf, bkg_buf, io_info->dxpl_id)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "data type conversion failed")
@@ -1867,7 +1867,7 @@ H5D_chunk_read(H5D_io_info_t *io_info, hsize_t nelmts,
/* Get the next chunk node in the skip list */
chunk_node=H5SL_next(chunk_node);
} /* end while */
-
+
done:
/* Release selection iterators, if necessary */
if(file_iter_init) {
@@ -1887,11 +1887,11 @@ done:
H5FL_BLK_FREE(type_conv,tconv_buf);
if (bkg_buf && NULL==dxpl_cache->bkgr_buf)
H5FL_BLK_FREE(type_conv,bkg_buf);
-
+
/* Release chunk mapping information */
if(H5D_destroy_chunk_map(&fm) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "can't release chunk mapping")
-
+
FUNC_LEAVE_NOAPI(ret_value)
} /* H5D_chunk_read() */
@@ -1922,7 +1922,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
const H5D_dxpl_cache_t *dxpl_cache=io_info->dxpl_cache; /* Local pointer to dataset transfer info */
fm_map fm; /* File<->memory mapping */
H5SL_node_t *chunk_node; /* Current node in chunk skip list */
- herr_t status; /*function return status*/
+ herr_t status; /*function return status*/
#ifdef H5S_DEBUG
H5_timer_t timer;
#endif
@@ -1932,7 +1932,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
size_t target_size; /*desired buffer size */
size_t request_nelmts; /*requested strip mine */
hsize_t smine_start; /*strip mine start loc */
- size_t n, smine_nelmts; /*elements per strip */
+ size_t n, smine_nelmts; /*elements per strip */
H5S_sel_iter_t mem_iter; /*memory selection iteration info*/
hbool_t mem_iter_init=0; /*memory selection iteration info has been initialized */
H5S_sel_iter_t bkg_iter; /*background iteration info*/
@@ -1946,11 +1946,11 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
herr_t ret_value = SUCCEED; /*return value */
FUNC_ENTER_NOAPI_NOINIT(H5D_chunk_write)
-
+
/* Map elements between file and memory for each chunk*/
if(H5D_create_chunk_map(dataset, mem_type, file_space, mem_space, &fm)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "can't build chunk mapping")
-
+
/* Set dataset storage for I/O info */
io_info->store=&store;
@@ -1977,11 +1977,11 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
store.chunk.index = chunk_info->index;
/* Perform the actual write operation */
- status = (io_info->ops.write)(io_info,
+ status = (io_info->ops.write)(io_info,
chunk_info->chunk_points, H5T_get_size(dataset->shared->type),
chunk_info->fspace, chunk_info->mspace,
buf);
-
+
/* Check return value from optimized write */
if (status<0)
HGOTO_ERROR(H5E_DATASET, H5E_WRITEERROR, FAIL, "optimized write failed")
@@ -1989,7 +1989,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
/* Get the next chunk node in the skip list */
chunk_node=H5SL_next(chunk_node);
} /* end while */
-
+
#ifdef H5S_DEBUG
H5_timer_end(&(io_info->stats->stats[0].write_timer), &timer);
io_info->stats->stats[0].write_nbytes += nelmts * H5T_get_size(mem_type);
@@ -1999,13 +1999,13 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
/* direct xfer accomplished successfully */
HGOTO_DONE(SUCCEED)
} /* end if */
-
+
/*
* This is the general case (type conversion, usually).
*/
if(nelmts==0)
HGOTO_DONE(SUCCEED)
-
+
/* Compute element sizes and other parameters */
src_type_size = H5T_get_size(mem_type);
dst_type_size = H5T_get_size(dataset->shared->type);
@@ -2037,7 +2037,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
* same size over and over.
*/
if(H5T_detect_class(dataset->shared->type, H5T_VLEN)) {
- /* Old data is retrieved into background buffer for VL datatype. The
+ /* Old data is retrieved into background buffer for VL datatype. The
* data is used later for freeing heap objects. */
need_bkg = H5T_BKG_YES;
} else if (H5T_path_bkg(tpath)) {
@@ -2084,16 +2084,16 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
if (H5S_select_iter_init(&bkg_iter, chunk_info->fspace, dst_type_size)<0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "unable to initialize background selection information")
bkg_iter_init=1; /*file selection iteration info has been initialized */
-
+
/*pass in chunk's coordinates in a union*/
store.chunk.offset = chunk_info->coords;
store.chunk.index = chunk_info->index;
-
+
for (smine_start=0; smine_start<chunk_info->chunk_points; smine_start+=smine_nelmts) {
/* Go figure out how many elements to read from the file */
assert(H5S_SELECT_ITER_NELMTS(&file_iter)==(chunk_info->chunk_points-smine_start));
smine_nelmts = (size_t)MIN(request_nelmts, (chunk_info->chunk_points-smine_start));
-
+
/*
* Gather the data from disk into the data type conversion
* buffer. Also gather data from application to background buffer
@@ -2104,7 +2104,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
#endif
n = H5D_select_mgath(buf, chunk_info->mspace, &mem_iter,
smine_nelmts, dxpl_cache, tconv_buf/*out*/);
-
+
#ifdef H5S_DEBUG
H5_timer_end(&(io_info->stats->stats[1].gath_timer), &timer);
io_info->stats->stats[1].gath_nbytes += n * src_type_size;
@@ -2119,7 +2119,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
#endif
n = H5D_select_fgath(io_info,
chunk_info->fspace, &bkg_iter, smine_nelmts,
- bkg_buf/*out*/);
+ bkg_buf/*out*/);
#ifdef H5S_DEBUG
H5_timer_end(&(io_info->stats->stats[0].bkg_timer), &timer);
@@ -2133,7 +2133,7 @@ H5D_chunk_write(H5D_io_info_t *io_info, hsize_t nelmts,
/*
* Perform data type conversion.
*/
- if (H5T_convert(tpath, src_id, dst_id, smine_nelmts, 0, 0,
+ if (H5T_convert(tpath, src_id, dst_id, smine_nelmts, 0, 0,
tconv_buf, bkg_buf, io_info->dxpl_id)<0)
HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, FAIL, "data type conversion failed")
@@ -2191,12 +2191,12 @@ done:
if(H5S_SELECT_ITER_RELEASE(&bkg_iter)<0)
HDONE_ERROR (H5E_DATASET, H5E_CANTFREE, FAIL, "Can't release selection iterator")
} /* end if */
-
+
if (tconv_buf && NULL==dxpl_cache->tconv_buf)
H5FL_BLK_FREE(type_conv,tconv_buf);
if (bkg_buf && NULL==dxpl_cache->bkgr_buf)
H5FL_BLK_FREE(type_conv,bkg_buf);
-
+
/* Release chunk mapping information */
if(H5D_destroy_chunk_map(&fm) < 0)
HDONE_ERROR(H5E_DATASET, H5E_CANTRELEASE, FAIL, "can't release chunk mapping")
@@ -2223,14 +2223,14 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
-H5D_io_assist_mpio(hid_t dxpl_id, H5D_dxpl_cache_t *dxpl_cache,
+static herr_t
+H5D_io_assist_mpio(hid_t dxpl_id, H5D_dxpl_cache_t *dxpl_cache,
hbool_t *xfer_mode_changed)
-{
+{
herr_t ret_value = SUCCEED; /*return value */
FUNC_ENTER_NOAPI_NOINIT(H5D_io_assist_mpio)
-
+
/* The following may not handle a collective call correctly
* since it does not ensure all processes can handle the write
* request according to the MPI collective specification.
@@ -2262,7 +2262,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_io_restore_mpio
*
- * Purpose: Common logic for restoring MPI transfer mode
+ * Purpose: Common logic for restoring MPI transfer mode
*
* Return: Non-negative on success/Negative on failure
*
@@ -2273,15 +2273,15 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_io_restore_mpio(hid_t dxpl_id)
-{
+{
H5P_genplist_t *dx_plist; /* Data transer property list */
H5FD_mpio_xfer_t xfer_mode; /*xfer_mode for this request */
herr_t ret_value = SUCCEED; /*return value */
FUNC_ENTER_NOAPI_NOINIT(H5D_io_restore_mpio)
-
+
/* Get the dataset transfer property list */
if (NULL == (dx_plist = H5I_object(dxpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset creation property list")
@@ -2319,7 +2319,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *file_space,
+H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *file_space,
const H5S_t *mem_space, fm_map *fm)
{
H5S_t *tmp_mspace=NULL; /* Temporary memory dataspace */
@@ -2336,12 +2336,12 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
char bogus; /* "bogus" buffer to pass to selection iterator */
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_create_chunk_map)
/* Get layout for dataset */
fm->layout = &(dataset->shared->layout);
-
+
/* Check if the memory space is scalar & make equivalent memory space */
if((sm_ndims = H5S_GET_EXTENT_NDIMS(mem_space))<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTGET, FAIL, "unable to get dimension number")
@@ -2366,7 +2366,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
/* Set the number of dimensions for the memory dataspace */
H5_ASSIGN_OVERFLOW(fm->m_ndims,sm_ndims,int,unsigned);
} /* end else */
-
+
/* Get dim number and dimensionality for each dataspace */
fm->f_ndims=f_ndims=dataset->shared->layout.u.chunk.ndims-1;
@@ -2391,7 +2391,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
/* Round up to the next integer # of chunks, to accomodate partial chunks */
fm->chunks[u] = ((fm->f_dims[u]+dataset->shared->layout.u.chunk.dim[u])-1) / dataset->shared->layout.u.chunk.dim[u];
} /* end for */
-
+
/* Compute the "down" size of 'chunks' information */
if(H5V_array_down(f_ndims,fm->chunks,fm->down_chunks)<0)
HGOTO_ERROR (H5E_INTERNAL, H5E_BADVALUE, FAIL, "can't compute 'down' sizes")
@@ -2420,7 +2420,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
/* Create temporary datatypes for selection iteration */
if((f_tid = H5I_register(H5I_DATATYPE, H5T_copy(dataset->shared->type, H5T_COPY_ALL)))<0)
HGOTO_ERROR (H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable to register file datatype")
-
+
/* Spaces aren't the same shape, iterate over the memory selection directly */
if(H5S_select_iterate(&bogus, f_tid, file_space, H5D_chunk_file_cb, fm)<0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINIT, FAIL, "unable to create file chunk selections")
@@ -2469,7 +2469,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
/* Make a copy of equivalent memory space */
if((tmp_mspace = H5S_copy(equiv_mspace,TRUE))==NULL)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTCOPY, FAIL, "unable to copy memory space")
-
+
/* De-select the mem space copy */
if(H5S_select_none(tmp_mspace)<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to de-select memory space")
@@ -2482,7 +2482,7 @@ H5D_create_chunk_map(const H5D_t *dataset, const H5T_t *mem_type, const H5S_t *f
if((f_tid = H5I_register(H5I_DATATYPE, H5T_copy(dataset->shared->type, H5T_COPY_ALL)))<0)
HGOTO_ERROR (H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable to register file datatype")
} /* end if */
-
+
/* Create selection iterator for memory selection */
if((elmt_size=H5T_get_size(mem_type))==0)
HGOTO_ERROR(H5E_DATATYPE, H5E_BADSIZE, FAIL, "datatype size invalid")
@@ -2547,7 +2547,7 @@ done:
if(H5S_hyper_denormalize_offset(file_space, old_offset)<0)
HGOTO_ERROR (H5E_DATASET, H5E_BADSELECT, FAIL, "unable to normalize dataspace by offset")
} /* end if */
-
+
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_create_chunk_map() */
@@ -2610,7 +2610,7 @@ static herr_t
H5D_destroy_chunk_map(const fm_map *fm)
{
herr_t ret_value = SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_destroy_chunk_map)
/* Free the chunk info skip list */
@@ -2646,7 +2646,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_create_chunk_file_map_hyper(const fm_map *fm)
{
hssize_t ssel_points; /* Number of elements in file selection */
@@ -2660,7 +2660,7 @@ H5D_create_chunk_file_map_hyper(const fm_map *fm)
int curr_dim; /* Current dimension to increment */
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_create_chunk_file_map_hyper)
/* Sanity check */
@@ -2710,7 +2710,7 @@ H5D_create_chunk_file_map_hyper(const fm_map *fm)
(void)H5S_close(tmp_fchunk);
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTSELECT, FAIL, "can't create chunk selection")
} /* end if */
-
+
/* Resize chunk's dataspace dimensions to size of chunk */
if(H5S_set_extent_real(tmp_fchunk,fm->chunk_dim)<0) {
(void)H5S_close(tmp_fchunk);
@@ -2823,7 +2823,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_create_chunk_mem_map_hyper(const fm_map *fm)
{
H5SL_node_t *curr_node; /* Current node in skip list */
@@ -2835,7 +2835,7 @@ H5D_create_chunk_mem_map_hyper(const fm_map *fm)
hssize_t chunk_adjust[H5O_LAYOUT_NDIMS]; /* Adjustment to make to a particular chunk */
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_create_chunk_mem_map_hyper)
/* Sanity check */
@@ -2942,7 +2942,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_chunk_file_cb(void UNUSED *elem, hid_t UNUSED type_id, unsigned ndims, const hsize_t *coords, void *_fm)
{
fm_map *fm = (fm_map*)_fm; /* File<->memory chunk mapping info */
@@ -2951,7 +2951,7 @@ H5D_chunk_file_cb(void UNUSED *elem, hid_t UNUSED type_id, unsigned ndims, const
hsize_t chunk_index; /* Chunk index */
unsigned u; /* Local index variable */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_chunk_file_cb)
/* Calculate the index of this chunk */
@@ -3058,7 +3058,7 @@ done:
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
-static herr_t
+static herr_t
H5D_chunk_mem_cb(void UNUSED *elem, hid_t UNUSED type_id, unsigned ndims, const hsize_t *coords, void *_fm)
{
fm_map *fm = (fm_map*)_fm; /* File<->memory chunk mapping info */
@@ -3066,7 +3066,7 @@ H5D_chunk_mem_cb(void UNUSED *elem, hid_t UNUSED type_id, unsigned ndims, const
hsize_t coords_in_mem[H5O_LAYOUT_NDIMS]; /* Coordinates of element in memory */
hsize_t chunk_index; /* Chunk index */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_chunk_mem_cb)
/* Calculate the index of this chunk */
@@ -3235,13 +3235,13 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5D_ioinfo_init(H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id,
- const H5S_t
+ const H5S_t
#if !(defined H5_HAVE_PARALLEL || defined H5S_DEBUG)
UNUSED
#endif /* H5_HAVE_PARALLEL */
- *mem_space, const H5S_t
+ *mem_space, const H5S_t
#if !(defined H5_HAVE_PARALLEL || defined H5S_DEBUG)
UNUSED
#endif /* H5_HAVE_PARALLEL */
@@ -3249,7 +3249,7 @@ H5D_ioinfo_init(H5D_t *dset, const H5D_dxpl_cache_t *dxpl_cache, hid_t dxpl_id,
#ifndef H5_HAVE_PARALLEL
UNUSED
#endif /* H5_HAVE_PARALLEL */
- flags, hbool_t
+ flags, hbool_t
#ifndef H5_HAVE_PARALLEL
UNUSED
#endif /* H5_HAVE_PARALLEL */
diff --git a/src/H5Distore.c b/src/H5Distore.c
index dfb1214..a28174b 100644
--- a/src/H5Distore.c
+++ b/src/H5Distore.c
@@ -348,7 +348,7 @@ H5D_istore_decode_key(const H5F_t UNUSED *f, const H5B_t *bt, const uint8_t *raw
* Friday, October 10, 1997
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -403,7 +403,7 @@ H5D_istore_debug_key (FILE *stream, H5F_t UNUSED *f, hid_t UNUSED dxpl_id, int i
const H5D_istore_key_t *key = (const H5D_istore_key_t *)_key;
const H5D_istore_ud1_t *udata = (const H5D_istore_ud1_t *)_udata;
unsigned u;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5D_istore_debug_key)
assert (key);
@@ -486,7 +486,7 @@ H5D_istore_cmp2(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, void *_lt_key, void *_uda
* would describe the UDATA min_corner address
* would fall lexicographically between LT_KEY
* and RT_KEY.
- *
+ *
* Failure: FAIL (same as UDATA < LT_KEY)
*
* Programmer: Robb Matzke
@@ -746,7 +746,7 @@ H5D_istore_insert(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key,
if (cmp < 0) {
/* Negative indices not supported yet */
HGOTO_ERROR(H5E_STORAGE, H5E_UNSUPPORTED, H5B_INS_ERROR, "internal error")
-
+
} else if (H5V_vector_eq_u (udata->mesg->u.chunk.ndims,
udata->key.offset, lt_key->offset) &&
lt_key->nbytes>0) {
@@ -758,7 +758,7 @@ H5D_istore_insert(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key,
/* Currently, the old chunk data is "thrown away" after the space is reallocated,
* so avoid data copy in H5MF_realloc() call by just free'ing the space and
* allocating new space.
- *
+ *
* This should keep the file smaller also, by freeing the space and then
* allocating new space, instead of vice versa (in H5MF_realloc).
*
@@ -842,7 +842,7 @@ done:
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
-static int
+static int
H5D_istore_iter_allocated (H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_lt_key, haddr_t UNUSED addr,
const void UNUSED *_rt_key, void *_udata)
{
@@ -931,7 +931,7 @@ H5D_istore_init (const H5F_t *f, const H5D_t *dset)
{
H5D_rdcc_t *rdcc = &(dset->shared->cache.chunk);
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_init, FAIL)
if (H5F_RDCC_NBYTES(f)>0 && H5F_RDCC_NELMTS(f)>0) {
@@ -975,7 +975,7 @@ H5D_istore_flush_entry(const H5D_io_info_t *io_info, H5D_rdcc_ent_t *ent, hbool_
void *buf=NULL; /*temporary buffer */
size_t alloc; /*bytes allocated for BUF */
hbool_t point_of_no_return = FALSE;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_istore_flush_entry)
assert(io_info);
@@ -1018,7 +1018,7 @@ H5D_istore_flush_entry(const H5D_io_info_t *io_info, H5D_rdcc_ent_t *ent, hbool_
point_of_no_return = TRUE;
ent->chunk = NULL;
}
- if (H5Z_pipeline(&(io_info->dset->shared->dcpl_cache.pline), 0, &(udata.key.filter_mask), io_info->dxpl_cache->err_detect,
+ if (H5Z_pipeline(&(io_info->dset->shared->dcpl_cache.pline), 0, &(udata.key.filter_mask), io_info->dxpl_cache->err_detect,
io_info->dxpl_cache->filter_cb, &(udata.key.nbytes), &alloc, &buf)<0)
HGOTO_ERROR(H5E_PLINE, H5E_WRITEERROR, FAIL, "output pipeline failed")
}
@@ -1038,7 +1038,7 @@ H5D_istore_flush_entry(const H5D_io_info_t *io_info, H5D_rdcc_ent_t *ent, hbool_
io_info->dset->shared->cache.chunk.nflushes++;
#endif /* H5D_ISTORE_DEBUG */
} /* end if */
-
+
/* Reset, but do not free or removed from list */
if (reset) {
point_of_no_return = FALSE;
@@ -1047,12 +1047,12 @@ H5D_istore_flush_entry(const H5D_io_info_t *io_info, H5D_rdcc_ent_t *ent, hbool_
if(ent->chunk!=NULL)
ent->chunk = H5D_istore_chunk_xfree(ent->chunk,&(io_info->dset->shared->dcpl_cache.pline));
} /* end if */
-
+
done:
/* Free the temp buffer only if it's different than the entry chunk */
if (buf!=ent->chunk)
H5MM_xfree(buf);
-
+
/*
* If we reached the point of no return then we have no choice but to
* reset the entry. This can only happen if RESET is true but the
@@ -1081,7 +1081,7 @@ done:
*
* Modifications:
* Pedro Vicente, March 28, 2002
- * Added flush parameter that switches the call to H5F_istore_flush_entry
+ * Added flush parameter that switches the call to H5F_istore_flush_entry
* The call with FALSE is used by the H5F_istore_prune_by_extent function
*
*-------------------------------------------------------------------------
@@ -1162,7 +1162,7 @@ H5D_istore_flush (H5D_t *dset, hid_t dxpl_id, unsigned flags)
int nerrors=0;
H5D_rdcc_ent_t *ent=NULL, *next=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_flush, FAIL)
/* Fill the DXPL cache values for later use */
@@ -1186,7 +1186,7 @@ H5D_istore_flush (H5D_t *dset, hid_t dxpl_id, unsigned flags)
nerrors++;
}
} /* end for */
-
+
if (nerrors)
HGOTO_ERROR (H5E_IO, H5E_CANTFLUSH, FAIL, "unable to flush one or more raw data chunks")
@@ -1222,7 +1222,7 @@ H5D_istore_dest (H5D_t *dset, hid_t dxpl_id)
int nerrors=0;
H5D_rdcc_ent_t *ent=NULL, *next=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_dest, FAIL)
assert(dset);
@@ -1407,7 +1407,7 @@ H5D_istore_prune (const H5D_io_info_t *io_info, size_t size)
for (i=0; i<nmeth-1; i++)
if (0==w[i])
p[i+1] = rdcc->head;
-
+
/* Compute next value for each pointer */
for (i=0; i<nmeth; i++)
n[i] = p[i] ? p[i]->next : NULL;
@@ -1428,7 +1428,7 @@ H5D_istore_prune (const H5D_io_info_t *io_info, size_t size)
HDputc('.', stderr);
HDfflush(stderr);
#endif
-
+
} else if (1==i && p[1] && !p[1]->locked) {
/*
* Method 1: Preempt the entry without regard to
@@ -1440,7 +1440,7 @@ H5D_istore_prune (const H5D_io_info_t *io_info, size_t size)
HDputc(':', stderr);
HDfflush(stderr);
#endif
-
+
} else {
/* Nothing to preempt at this point */
cur= NULL;
@@ -1457,7 +1457,7 @@ H5D_istore_prune (const H5D_io_info_t *io_info, size_t size)
nerrors++;
}
}
-
+
/* Advance pointers */
for (i=0; i<nmeth; i++)
p[i] = n[i];
@@ -1526,7 +1526,7 @@ H5D_istore_lock(const H5D_io_info_t *io_info,
void *ret_value; /*return value */
FUNC_ENTER_NOAPI_NOINIT(H5D_istore_lock)
-
+
assert(io_info);
assert(dset);
assert(io_info->dxpl_cache);
@@ -1541,7 +1541,7 @@ H5D_istore_lock(const H5D_io_info_t *io_info,
if (rdcc->nslots>0) {
idx=H5D_HASH(dset->shared,io_info->store->chunk.index);
ent = rdcc->slot[idx];
-
+
if (ent) {
for (u=0, found=TRUE; u<layout->u.chunk.ndims; u++) {
if (io_info->store->chunk.offset[u]!=ent->offset[u]) {
@@ -1574,7 +1574,7 @@ H5D_istore_lock(const H5D_io_info_t *io_info,
#endif
if (NULL==(chunk=H5D_istore_chunk_alloc (chunk_size,pline)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for raw data chunk")
-
+
} else {
H5D_istore_ud1_t tmp_udata; /*B-tree pass-through */
haddr_t chunk_addr; /* Address of chunk on disk */
@@ -1607,7 +1607,7 @@ H5D_istore_lock(const H5D_io_info_t *io_info,
HGOTO_ERROR (H5E_IO, H5E_READERROR, NULL, "unable to read raw data chunk")
if (pline->nused)
- if (H5Z_pipeline(pline, H5Z_FLAG_REVERSE, &(udata->key.filter_mask), io_info->dxpl_cache->err_detect,
+ if (H5Z_pipeline(pline, H5Z_FLAG_REVERSE, &(udata->key.filter_mask), io_info->dxpl_cache->err_detect,
io_info->dxpl_cache->filter_cb, &(udata->key.nbytes), &chunk_alloc, &chunk)<0) {
HGOTO_ERROR(H5E_PLINE, H5E_READERROR, NULL, "data pipeline read failed")
}
@@ -1657,7 +1657,7 @@ else
} /* end else */
}
assert (found || chunk_size>0);
-
+
if (!found && rdcc->nslots>0 && chunk_size<=rdcc->nbytes &&
(!ent || !ent->locked)) {
/*
@@ -1686,7 +1686,7 @@ else
ent->rd_count = chunk_size;
ent->wr_count = chunk_size;
ent->chunk = chunk;
-
+
/* Add it to the cache */
assert(NULL==rdcc->slot[idx]);
rdcc->slot[idx] = ent;
@@ -1749,7 +1749,7 @@ else
/* Set return value */
ret_value = chunk;
-
+
done:
if (!ret_value)
if(chunk)
@@ -1793,7 +1793,7 @@ H5D_istore_unlock(const H5D_io_info_t *io_info,
H5D_rdcc_ent_t *ent = NULL;
unsigned u;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5D_istore_unlock)
assert(io_info);
@@ -1842,7 +1842,7 @@ H5D_istore_unlock(const H5D_io_info_t *io_info,
}
ent->locked = FALSE;
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_istore_unlock() */
@@ -1874,7 +1874,7 @@ H5D_istore_readvv(const H5D_io_info_t *io_info,
haddr_t chunk_addr; /* Chunk address on disk */
size_t u; /* Local index variables */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_readvv, FAIL)
/* Check args */
@@ -1956,7 +1956,7 @@ HDfprintf(stderr,"%s: buf=%p\n",FUNC,buf);
if (rdcc->nslots>0) {
unsigned idx=H5D_HASH(dset->shared,io_info->store->chunk.index); /* Cache entry index */
H5D_rdcc_ent_t *ent = rdcc->slot[idx]; /* Cache entry */
-
+
/* Potential match... */
if (ent) {
for (u=0, found=TRUE; u<dset->shared->layout.u.chunk.ndims; u++) {
@@ -2035,7 +2035,7 @@ HDfprintf(stderr,"%s: buf=%p\n",FUNC,buf);
/* Set return value */
ret_value=naccessed;
} /* end else */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5D_istore_readvv() */
@@ -2067,7 +2067,7 @@ H5D_istore_writevv(const H5D_io_info_t *io_info,
haddr_t chunk_addr; /* Chunk address on disk */
size_t u; /* Local index variables */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_writevv, FAIL)
/* Check args */
@@ -2185,7 +2185,7 @@ HDfprintf(stderr,"%s: mem_offset_arr[%Zu]=%Hu\n",FUNC,*mem_curr_seq,mem_offset_a
/* Set return value */
ret_value=naccessed;
} /* end else */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* H5D_istore_writevv() */
@@ -2236,7 +2236,7 @@ H5D_istore_create(H5F_t *f, hid_t dxpl_id, H5O_layout_t *layout /*out */ )
if (H5B_create(f, dxpl_id, H5B_ISTORE, &udata, &(layout->u.chunk.addr)/*out*/) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTINIT, FAIL, "can't create B-tree")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5D_istore_create() */
@@ -2328,7 +2328,7 @@ H5D_istore_get_addr(const H5D_io_info_t *io_info, H5D_istore_ud1_t *_udata)
H5D_istore_ud1_t *udata; /* Pointer to information about a chunk */
unsigned u;
haddr_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5D_istore_get_addr)
assert(io_info);
@@ -2388,7 +2388,7 @@ static void *
H5D_istore_chunk_alloc(size_t size, const H5O_pline_t *pline)
{
void *ret_value=NULL; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5D_istore_chunk_alloc)
assert(size);
@@ -2513,7 +2513,7 @@ H5D_istore_allocate(H5D_t *dset, hid_t dxpl_id, hbool_t full_overwrite)
int space_ndims; /* Dataset's space rank */
hsize_t space_dim[H5O_LAYOUT_NDIMS]; /* Dataset's dataspace dimensions */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_allocate, FAIL)
/* Check args */
@@ -2682,7 +2682,7 @@ H5D_istore_allocate(H5D_t *dset, hid_t dxpl_id, hbool_t full_overwrite)
#endif /* H5_HAVE_PARALLEL */
} /* end if */
} /* end if */
-
+
/* Increment indices */
for (i=(int)dset->shared->layout.u.chunk.ndims-1, carry=1; i>=0 && carry; --i) {
chunk_offset[i] += dset->shared->layout.u.chunk.dim[i];
@@ -2719,7 +2719,7 @@ done:
* Function: H5D_istore_prune_by_extent
*
* Purpose: This function searches for chunks that are no longer necessary both in the
- * raw data cache and in the B-tree.
+ * raw data cache and in the B-tree.
*
* Return: Success: 0, Failure: -1
*
@@ -2732,12 +2732,12 @@ done:
*
* For chunks that are no longer necessary:
*
- * 1. Search in the raw data cache for each chunk
+ * 1. Search in the raw data cache for each chunk
* 2. If found then preempt it from the cache
- * 3. Search in the B-tree for each chunk
+ * 3. Search in the B-tree for each chunk
* 4. If found then remove it from the B-tree and deallocate file storage for the chunk
*
- * This example shows a 2d dataset of 90x90 with a chunk size of 20x20.
+ * This example shows a 2d dataset of 90x90 with a chunk size of 20x20.
*
*
* 0 20 40 60 80 90 100
@@ -2763,7 +2763,7 @@ done:
* | : ::::::::::: : | :
* 80+.........:.........:::::::::::.........:.....+...: O Fill Val
* | : : ::::::::::: | : Explicitly
- * | : : ::::::X:::: | : Written
+ * | : : ::::::X:::: | : Written
* 90+---------+---------+---------+---------+-----+ :
* : : : ::::::::::: :
* 100:.........:.........:.........:::::::::::.........:
@@ -2780,27 +2780,27 @@ done:
* 0 20 40 60 70 80 90 100
* 0 +---------+---------+---------+----+----+-----+...+
* |:::::X:::::::::::::: : | : | :
- * |:::::::X:::::::::::: : | : | : Key
- * |::::::::::X::::::::: : | : | : --------
- * |::::::::::::X::::::: : | : | : +-+ Dataset
- * 20+::::::::::::::::::::.........:....+....:.....|...: | | Extent
- * | :::::X::::: : | : | : +-+
- * | ::::::::::: : | : | :
- * | ::::::::::: : | : | : ... Chunk
- * | :::::::X::: : | : | : : : Boundary
- * 40+.........:::::::::::.........:....+....:.....|...: :.:
- * | : : : | : | :
- * | : : : | : | : ... Allocated
- * | : : : | : | : ::: & Filled
- * | : : : | : | : ::: Chunk
- * 60+.........:.........:.........:....+....:.....|...:
- * | : :::::::X::: | : | : X Element
- * | : ::::::::::: | : | : Written
- * +---------+---------+---------+----+ : | :
- * | : ::::::::::: : | :
- * 80+.........:.........:::::::::X:.........:.....|...: O Fill Val
- * | : : ::::::::::: | : Explicitly
- * | : : ::::::X:::: | : Written
+ * |:::::::X:::::::::::: : | : | : Key
+ * |::::::::::X::::::::: : | : | : --------
+ * |::::::::::::X::::::: : | : | : +-+ Dataset
+ * 20+::::::::::::::::::::.........:....+....:.....|...: | | Extent
+ * | :::::X::::: : | : | : +-+
+ * | ::::::::::: : | : | :
+ * | ::::::::::: : | : | : ... Chunk
+ * | :::::::X::: : | : | : : : Boundary
+ * 40+.........:::::::::::.........:....+....:.....|...: :.:
+ * | : : : | : | :
+ * | : : : | : | : ... Allocated
+ * | : : : | : | : ::: & Filled
+ * | : : : | : | : ::: Chunk
+ * 60+.........:.........:.........:....+....:.....|...:
+ * | : :::::::X::: | : | : X Element
+ * | : ::::::::::: | : | : Written
+ * +---------+---------+---------+----+ : | :
+ * | : ::::::::::: : | :
+ * 80+.........:.........:::::::::X:.........:.....|...: O Fill Val
+ * | : : ::::::::::: | : Explicitly
+ * | : : ::::::X:::: | : Written
* 90+---------+---------+---------+---------+-----+ :
* : : : ::::::::::: :
* 100:.........:.........:.........:::::::::::.........:
@@ -2808,7 +2808,7 @@ done:
*
* That means that the nine chunks along the bottom and right side should
* no longer exist. Of those nine chunks, (0,80), (20,80), (40,80),
- * (60,80), (80,80), (80,60), (80,40), (80,20), and (80,0), one is actually allocated
+ * (60,80), (80,80), (80,60), (80,40), (80,20), and (80,0), one is actually allocated
* that needs to be released.
* To release the chunks, we traverse the B-tree to obtain a list of unused
* allocated chunks, and then call H5B_remove() for each chunk.
@@ -2840,7 +2840,7 @@ H5D_istore_prune_by_extent(const H5D_io_info_t *io_info)
HGOTO_ERROR(H5E_DATASET, H5E_CANTGET, FAIL, "can't get dataset dimensions")
/*-------------------------------------------------------------------------
- * Figure out what chunks are no longer in use for the specified extent
+ * Figure out what chunks are no longer in use for the specified extent
* and release them from the linked list raw data cache
*-------------------------------------------------------------------------
*/
@@ -2892,7 +2892,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_istore_prune_extent
*
- * Purpose: Search for chunks that are no longer necessary in the B-tree.
+ * Purpose: Search for chunks that are no longer necessary in the B-tree.
*
* Return: Success: 0, Failure: -1
*
@@ -2917,7 +2917,7 @@ H5D_istore_prune_extent(H5F_t *f, hid_t dxpl_id, const void *_lt_key, haddr_t UN
H5D_istore_ud1_t udata;
int ret_value=H5B_ITER_CONT; /* Return value */
- /* The LT_KEY is the left key (the one that describes the chunk). It points to a chunk of
+ /* The LT_KEY is the left key (the one that describes the chunk). It points to a chunk of
* storage that contains the beginning of the logical address space represented by UDATA.
*/
@@ -2951,7 +2951,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5D_istore_remove
*
- * Purpose: Removes chunks that are no longer necessary in the B-tree.
+ * Purpose: Removes chunks that are no longer necessary in the B-tree.
*
* Return: Success: 0, Failure: -1
*
@@ -2996,7 +2996,7 @@ done:
* Function: H5D_istore_initialize_by_extent
*
* Purpose: This function searches for chunks that have to be initialized with the fill
- * value both in the raw data cache and in the B-tree.
+ * value both in the raw data cache and in the B-tree.
*
* Return: Success: 0, Failure: -1
*
@@ -3004,12 +3004,12 @@ done:
*
* Date: April 4, 2002
*
- * Comments:
+ * Comments:
*
* (See the example of H5D_istore_prune_by_extent)
* Next, there are seven chunks where the database extent boundary is
* within the chunk. We find those seven just like we did with the previous nine.
- * Fot the ones that are allocated we initialize the part that lies outside the boundary
+ * Fot the ones that are allocated we initialize the part that lies outside the boundary
* with the fill value.
*
* Modifications:
@@ -3121,8 +3121,8 @@ H5D_istore_initialize_by_extent(H5D_io_info_t *io_info)
naccessed *= sub_size[u];
} /* end for */
- /*
- * Figure out what chunks have to be initialized. These are the chunks where the dataspace
+ /*
+ * Figure out what chunks have to be initialized. These are the chunks where the dataspace
* extent boundary is within the chunk
*/
for(u = 0, found = 0; u < rank; u++) {
@@ -3410,7 +3410,7 @@ H5D_istore_stats (H5D_t *dset, hbool_t headers)
double miss_rate;
char ascii[32];
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_stats, FAIL)
if (!H5DEBUG(AC))
@@ -3474,7 +3474,7 @@ H5D_istore_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE * stream, int inden
H5O_layout_t layout;
H5D_istore_ud1_t udata;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5D_istore_debug,FAIL)
layout.u.chunk.ndims = ndims;
diff --git a/src/H5Dmpio.c b/src/H5Dmpio.c
index fde5544..a309b8d 100644
--- a/src/H5Dmpio.c
+++ b/src/H5Dmpio.c
@@ -40,14 +40,14 @@
static herr_t
H5D_mpio_spaces_xfer(H5D_io_info_t *io_info, size_t elmt_size,
const H5S_t *file_space, const H5S_t *mem_space,
- void *buf/*out*/,
+ void *buf/*out*/,
hbool_t do_write);
/* For irregular hyperslab selection. */
static herr_t
H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info, size_t elmt_size,
const H5S_t *file_space, const H5S_t *mem_space,
- void *buf/*out*/,
+ void *buf/*out*/,
hbool_t do_write);
/*-------------------------------------------------------------------------
@@ -102,7 +102,7 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
HGOTO_DONE(FALSE);
/* Dataset storage must be contiguous or chunked */
- if ((flags&H5S_CONV_STORAGE_MASK)!=H5S_CONV_STORAGE_CONTIGUOUS &&
+ if ((flags&H5S_CONV_STORAGE_MASK)!=H5S_CONV_STORAGE_CONTIGUOUS &&
(flags&H5S_CONV_STORAGE_MASK)!=H5S_CONV_STORAGE_CHUNKED)
HGOTO_DONE(FALSE);
@@ -132,11 +132,11 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
if((mpi_rank = H5F_mpi_get_rank(dset->ent.file))<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTGET, FAIL, "can't retrieve MPI rank")
- /* Currently collective chunking storage
+ /* Currently collective chunking storage
inside HDF5 is supported for either one of the following two cases:
1. All the hyperslabs for one process is inside one chunk.
- 2. For single hyperslab selection, the number of chunks that covered
- the single selection for all processes should be equal.
+ 2. For single hyperslab selection, the number of chunks that covered
+ the single selection for all processes should be equal.
KY, 2004/7/14
*/
@@ -145,7 +145,7 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
space, the collective IO can work. Otherwise, SELECT_POINT will be reached,collective
IO shouldn't work.
Please clarify and correct the code on the following,
- Quincey said that it was probably okay if only one data space is SCALAR,
+ Quincey said that it was probably okay if only one data space is SCALAR,
Still keep the code here until we added more tests later.
Kent */
if(H5S_SCALAR==H5S_GET_EXTENT_TYPE(mem_space) || H5S_SCALAR ==H5S_GET_EXTENT_TYPE(file_space)) {
@@ -160,7 +160,7 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
if(H5S_SELECT_BOUNDS(file_space,startf,endf)==FAIL)
HGOTO_ERROR(H5E_DATASPACE, H5E_BADRANGE,FAIL, "invalid check for single selection blocks");
- for(u=0; u < dset->shared->layout.u.chunk.ndims; u++)
+ for(u=0; u < dset->shared->layout.u.chunk.ndims; u++)
chunk_dim[u] = dset->shared->layout.u.chunk.dim[u];
/* Case 1: check whether all hyperslab in this process is inside one chunk.
@@ -174,7 +174,7 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
pcheck_hyper = 0;
break;
}
-
+
if (MPI_SUCCESS != (mpi_code= MPI_Reduce(&pcheck_hyper,&check_hyper,1,MPI_INT,MPI_LAND,0,comm)))
HMPI_GOTO_ERROR(FAIL, "MPI_Reduce failed", mpi_code)
if (MPI_SUCCESS != (mpi_code= MPI_Bcast(&check_hyper,1,MPI_INT,0,comm)))
@@ -183,13 +183,13 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
/*if check_hyper is true, condition for collective IO case is fulfilled, no
need to do further test. */
if(check_hyper)
- HGOTO_DONE(TRUE);
-
+ HGOTO_DONE(TRUE);
+
/* Case 2:Check whether the number of chunks that covered the single hyperslab is the same.
- If not,no collective chunk IO.
+ If not,no collective chunk IO.
KY, 2004/7/14
*/
-
+
c1 = H5S_SELECT_IS_SINGLE(file_space);
c2 = H5S_SELECT_IS_SINGLE(mem_space);
@@ -210,11 +210,11 @@ H5D_mpio_opt_possible( const H5D_t *dset, const H5S_t *mem_space, const H5S_t *f
HMPI_GOTO_ERROR(FAIL, "MPI_Reduce failed", mpi_code)
if (MPI_SUCCESS != (mpi_code= MPI_Reduce(&tnum_chunkf,&min_chunkf,1,MPI_INT,MPI_MIN,0,comm)))
HMPI_GOTO_ERROR(FAIL, "MPI_Reduce failed", mpi_code)
-
+
/* Let the rank==0 process determine if the same number of chunks will be operated on by all processes */
if(mpi_rank == 0)
num_chunks_same = (max_chunkf==min_chunkf);
-
+
/* Broadcast the flag indicating the number of chunks are the same */
if (MPI_SUCCESS != (mpi_code= MPI_Bcast(&num_chunks_same,1,MPI_INT,0,comm)))
HMPI_GOTO_ERROR(FAIL, "MPI_Bcast failed", mpi_code)
@@ -324,7 +324,7 @@ H5D_mpio_spaces_xfer(H5D_io_info_t *io_info, size_t elmt_size,
else {
haddr_t chunk_addr; /* for collective chunk IO */
- assert(io_info->dset->shared->layout.type == H5D_CHUNKED);
+ assert(io_info->dset->shared->layout.type == H5D_CHUNKED);
chunk_addr=H5D_istore_get_addr(io_info,NULL);
addr = H5F_BASE_ADDR(io_info->dset->ent.file) + chunk_addr + mpi_file_offset;
}
@@ -374,11 +374,11 @@ done:
function until you don't see this line. Nov. 11,2004, KY**/
static herr_t
-H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info,
+H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info,
size_t elmt_size,
- const H5S_t *file_space,
+ const H5S_t *file_space,
const H5S_t *mem_space,
- void *_buf /*out*/,
+ void *_buf /*out*/,
hbool_t do_write )
{
haddr_t addr; /* Address of dataset (or selection) within file */
@@ -427,7 +427,7 @@ H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info,
printf("mpi_buf_count %d\n",mpi_buf_count);
/* create the MPI file type */
- if(H5S_SELECT_IS_REGULAR(file_space)== TRUE){
+ if(H5S_SELECT_IS_REGULAR(file_space)== TRUE){
if ( H5S_mpio_space_type( file_space, elmt_size,
/* out: */
&mpi_file_type,
@@ -452,7 +452,7 @@ H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info,
else {
haddr_t chunk_addr; /* for collective chunk IO */
- assert(io_info->dset->shared->layout.type == H5D_CHUNKED);
+ assert(io_info->dset->shared->layout.type == H5D_CHUNKED);
chunk_addr=H5D_istore_get_addr(io_info,NULL);
addr = H5F_BASE_ADDR(io_info->dset->ent.file) + chunk_addr + mpi_file_offset;
}
@@ -472,7 +472,7 @@ H5D_mpio_spaces_span_xfer(H5D_io_info_t *io_info,
if (do_write) {
if (H5F_block_write(io_info->dset->ent.file, H5FD_MEM_DRAW, addr, mpi_buf_count, io_info->dxpl_id, buf) <0)
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL,"MPI write failed");
- }
+ }
else {
if (H5F_block_read (io_info->dset->ent.file, H5FD_MEM_DRAW, addr, mpi_buf_count, io_info->dxpl_id, buf) <0)
HGOTO_ERROR(H5E_IO, H5E_READERROR, FAIL,"MPI read failed");
@@ -600,9 +600,9 @@ H5D_mpio_spaces_write(H5D_io_info_t *io_info,
*/
herr_t
H5D_mpio_spaces_span_read(H5D_io_info_t *io_info,
- size_t UNUSED nelmts,
+ size_t UNUSED nelmts,
size_t elmt_size,
- const H5S_t *file_space,
+ const H5S_t *file_space,
const H5S_t *mem_space,
void *buf/*out*/)
{
@@ -627,7 +627,7 @@ H5D_mpio_spaces_span_read(H5D_io_info_t *io_info,
* Programmer: KY
* Note: Don't call this funtion until you don't see this line.
* KY, 11/11/04
-
+
*
* Modifications:
*
@@ -642,9 +642,9 @@ H5D_mpio_spaces_span_read(H5D_io_info_t *io_info,
*/
herr_t
H5D_mpio_spaces_span_write(H5D_io_info_t *io_info,
- size_t UNUSED nelmts,
+ size_t UNUSED nelmts,
size_t elmt_size,
- const H5S_t *file_space,
+ const H5S_t *file_space,
const H5S_t *mem_space,
const void *buf)
{
diff --git a/src/H5Dpkg.h b/src/H5Dpkg.h
index a4b4574..14b97c9 100644
--- a/src/H5Dpkg.h
+++ b/src/H5Dpkg.h
@@ -228,12 +228,12 @@ H5_DLL ssize_t H5D_contig_writevv(const H5D_io_info_t *io_info,
/* Functions that operate on compact dataset storage */
H5_DLL ssize_t H5D_compact_readvv(const H5D_io_info_t *io_info,
- size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
- size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
+ size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
+ size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
void *buf);
H5_DLL ssize_t H5D_compact_writevv(const H5D_io_info_t *io_info,
- size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
- size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
+ size_t dset_max_nseq, size_t *dset_curr_seq, size_t dset_size_arr[], hsize_t dset_offset_arr[],
+ size_t mem_max_nseq, size_t *mem_curr_seq, size_t mem_size_arr[], hsize_t mem_offset_arr[],
const void *buf);
/* Functions that operate on indexed storage */
diff --git a/src/H5Dprivate.h b/src/H5Dprivate.h
index 1f32c5d..0e92641 100644
--- a/src/H5Dprivate.h
+++ b/src/H5Dprivate.h
@@ -38,7 +38,7 @@
/* Definitions for storage layout property */
#define H5D_CRT_LAYOUT_NAME "layout"
#define H5D_CRT_LAYOUT_SIZE sizeof(H5D_layout_t)
-#define H5D_CRT_LAYOUT_DEF H5D_CONTIGUOUS
+#define H5D_CRT_LAYOUT_DEF H5D_CONTIGUOUS
/* Definitions for chunk dimensionality property */
#define H5D_CRT_CHUNK_DIM_NAME "chunk_ndims"
#define H5D_CRT_CHUNK_DIM_SIZE sizeof(unsigned)
@@ -48,7 +48,7 @@
#define H5D_CRT_CHUNK_SIZE_SIZE sizeof(size_t[H5O_LAYOUT_NDIMS])
#define H5D_CRT_CHUNK_SIZE_DEF {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,\
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}
-/* Definitions for fill value. size=0 means fill value will be 0 as
+/* Definitions for fill value. size=0 means fill value will be 0 as
* library default; size=-1 means fill value is undefined. */
#define H5D_CRT_FILL_VALUE_NAME "fill_value"
#define H5D_CRT_FILL_VALUE_SIZE sizeof(H5O_fill_t)
@@ -64,7 +64,7 @@
/* Definitions for time of fill value writing */
#define H5D_CRT_FILL_TIME_NAME "fill_time"
#define H5D_CRT_FILL_TIME_SIZE sizeof(H5D_fill_time_t)
-#define H5D_CRT_FILL_TIME_DEF H5D_FILL_TIME_IFSET
+#define H5D_CRT_FILL_TIME_DEF H5D_FILL_TIME_IFSET
/* Definitions for external file list */
#define H5D_CRT_EXT_FILE_LIST_NAME "efl"
#define H5D_CRT_EXT_FILE_LIST_SIZE sizeof(H5O_efl_t)
@@ -73,7 +73,7 @@
/* Definitions for data filter pipeline */
#define H5D_CRT_DATA_PIPELINE_NAME "pline"
#define H5D_CRT_DATA_PIPELINE_SIZE sizeof(H5O_pline_t)
-#define H5D_CRT_DATA_PIPELINE_DEF {0, 0, NULL}
+#define H5D_CRT_DATA_PIPELINE_DEF {0, 0, NULL}
#define H5D_CRT_DATA_PIPELINE_CMP H5D_crt_data_pipeline_cmp
/* ======== Data transfer properties ======== */
@@ -217,11 +217,11 @@ H5_DLL herr_t H5D_close(H5D_t *dataset);
H5_DLL htri_t H5D_isa(H5G_entry_t *ent, hid_t dxpl_id);
H5_DLL H5G_entry_t *H5D_entof(H5D_t *dataset);
H5_DLL H5T_t *H5D_typeof(const H5D_t *dset);
-H5_DLL herr_t H5D_crt_copy(hid_t new_plist_t, hid_t old_plist_t,
+H5_DLL herr_t H5D_crt_copy(hid_t new_plist_t, hid_t old_plist_t,
void *copy_data);
H5_DLL herr_t H5D_crt_close(hid_t dxpl_id, void *close_data);
H5_DLL herr_t H5D_xfer_create(hid_t dxpl_id, void *create_data);
-H5_DLL herr_t H5D_xfer_copy(hid_t new_plist_id, hid_t old_plist_id,
+H5_DLL herr_t H5D_xfer_copy(hid_t new_plist_id, hid_t old_plist_id,
void *copy_data);
H5_DLL herr_t H5D_xfer_close(hid_t dxpl_id, void *close_data);
H5_DLL herr_t H5D_flush(const H5F_t *f, hid_t dxpl_id, unsigned flags);
diff --git a/src/H5Dpublic.h b/src/H5Dpublic.h
index 09556c2..3595bf2 100644
--- a/src/H5Dpublic.h
+++ b/src/H5Dpublic.h
@@ -39,7 +39,7 @@ typedef enum H5D_alloc_time_t {
H5D_ALLOC_TIME_EARLY =1,
H5D_ALLOC_TIME_LATE =2,
H5D_ALLOC_TIME_INCR =3
-} H5D_alloc_time_t;
+} H5D_alloc_time_t;
/* Values for the status of space allocation */
typedef enum H5D_space_status_t {
@@ -78,7 +78,7 @@ H5_DLL hid_t H5Dcreate (hid_t file_id, const char *name, hid_t type_id,
H5_DLL hid_t H5Dopen (hid_t file_id, const char *name);
H5_DLL herr_t H5Dclose (hid_t dset_id);
H5_DLL hid_t H5Dget_space (hid_t dset_id);
-H5_DLL herr_t H5Dget_space_status(hid_t dset_id,
+H5_DLL herr_t H5Dget_space_status(hid_t dset_id,
H5D_space_status_t *allocation);
H5_DLL hid_t H5Dget_type (hid_t dset_id);
H5_DLL hid_t H5Dget_create_plist (hid_t dset_id);
diff --git a/src/H5Dselect.c b/src/H5Dselect.c
index 125d22f..596937f 100644
--- a/src/H5Dselect.c
+++ b/src/H5Dselect.c
@@ -314,7 +314,7 @@ done:
* Purpose: Gathers dataset elements from application memory BUF and
* copies them into the gather buffer TGATH_BUF.
* Each element is ELMT_SIZE bytes and arranged in application
- * memory according to SPACE.
+ * memory according to SPACE.
* The caller is requesting that at most NELMTS be gathered.
*
* Return: Success: Number of elements copied.
@@ -447,7 +447,7 @@ H5D_select_read(H5D_io_info_t *io_info,
assert(io_info->store);
assert(buf);
assert(TRUE==H5P_isa_class(io_info->dxpl_id,H5P_DATASET_XFER));
-
+
/* Initialize file iterator */
if (H5S_select_iter_init(&file_iter, file_space, elmt_size)<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator");
@@ -591,7 +591,7 @@ H5D_select_write(H5D_io_info_t *io_info,
assert(io_info->store);
assert(TRUE==H5P_isa_class(io_info->dxpl_id,H5P_DATASET_XFER));
assert(buf);
-
+
/* Allocate the vector I/O arrays */
if(io_info->dxpl_cache->vec_size!=H5D_XFER_HYPER_VECTOR_SIZE_DEF) {
if((mem_len = H5FL_SEQ_MALLOC(size_t,io_info->dxpl_cache->vec_size))==NULL)
@@ -619,7 +619,7 @@ H5D_select_write(H5D_io_info_t *io_info,
if (H5S_select_iter_init(&mem_iter, mem_space, elmt_size)<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTINIT, FAIL, "unable to initialize selection iterator");
mem_iter_init=1; /* Memory selection iteration info has been initialized */
-
+
/* Initialize sequence counts */
curr_mem_seq=curr_file_seq=0;
mem_nseq=file_nseq=0;
diff --git a/src/H5E.c b/src/H5E.c
index 36f09a1..450b7dd 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -336,7 +336,7 @@ H5E_get_stack(void)
*
* Automatic stack traversal is always in the H5E_WALK_DOWNWARD
* direction.
- *
+ *
* See Also: H5Ewalk()
*
* Return: Non-negative on success/Negative on failure
@@ -360,7 +360,7 @@ H5Eset_auto(H5E_auto_t func, void *client_data)
/* Get the thread-specific error stack */
if((estack = H5E_get_my_stack())==NULL) /*lint !e506 !e774 Make lint 'constant value Boolean' in non-threaded case */
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack")
-
+
/* Set the automatic error reporting info */
estack->auto_func = func;
estack->auto_data = client_data;
@@ -398,7 +398,7 @@ H5Eget_auto(H5E_auto_t *func, void **client_data)
/* Get the thread-specific error stack */
if((estack = H5E_get_my_stack())==NULL) /*lint !e506 !e774 Make lint 'constant value Boolean' in non-threaded case */
HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "can't get current error stack")
-
+
/* Set the automatic error reporting info */
if (func) *func = estack->auto_func;
if (client_data) *client_data = estack->auto_data;
@@ -463,11 +463,11 @@ H5Eprint(FILE *stream)
{
H5E_t *estack = H5E_get_my_stack ();
herr_t ret_value = FAIL;
-
+
/* Don't clear the error stack! :-) */
FUNC_ENTER_API_NOCLEAR(H5Eprint, FAIL)
/*NO TRACE*/
-
+
if (!stream) stream = stderr;
fprintf (stream, "HDF5-DIAG: Error detected in %s ", H5_lib_vers_info_g);
/* try show the process or thread id in multiple processes cases*/
@@ -489,7 +489,7 @@ H5Eprint(FILE *stream)
HDfputc ('\n', stream);
ret_value = H5E_walk (H5E_WALK_DOWNWARD, H5E_walk_cb, (void*)stream);
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -613,7 +613,7 @@ H5Eget_major (H5E_major_t n)
{
unsigned i;
const char *ret_value="Invalid major error number";
-
+
/*
* WARNING: Do not call the FUNC_ENTER() or FUNC_LEAVE() macros since
* they might interact badly with the error stack. We are
@@ -654,7 +654,7 @@ H5Eget_minor (H5E_minor_t n)
{
unsigned i;
const char *ret_value="Invalid minor error number";
-
+
/*
* WARNING: Do not call the FUNC_ENTER() or FUNC_LEAVE() macros since
* they might interact badly with the error stack. We are
@@ -700,7 +700,7 @@ H5E_push(H5E_major_t maj_num, H5E_minor_t min_num, const char *function_name,
const char *file_name, unsigned line, const char *desc)
{
H5E_t *estack = H5E_get_my_stack ();
-
+
/*
* WARNING: We cannot call HERROR() from within this function or else we
* could enter infinite recursion. Furthermore, we also cannot
@@ -731,7 +731,7 @@ H5E_push(H5E_major_t maj_num, H5E_minor_t min_num, const char *function_name,
estack->slot[estack->nused].desc = desc;
estack->nused++;
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED)
}
@@ -763,7 +763,7 @@ H5Epush(const char *file, const char *func, unsigned line, H5E_major_t maj,
H5E_minor_t min, const char *str)
{
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Epush, FAIL)
H5TRACE6("e","ssIuEjEns",file,func,line,maj,min,str);
@@ -855,7 +855,7 @@ H5E_walk (H5E_direction_t direction, H5E_walk_t func, void *client_data)
status = (func)(estack->nused-(i+1), estack->slot+i, client_data);
}
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -863,23 +863,23 @@ done:
/*-------------------------------------------------------------------------
* Function: H5E_dump_api_stack
- *
+ *
* Purpose: Private function to dump the error stack during an error in
* an API function if a callback function is defined for the
- * current error stack.
- *
+ * current error stack.
+ *
* Return: Non-negative on success/Negative on failure
- *
+ *
* Programmer: Quincey Koziol
* Thursday, January 20, 2005
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
- */
-herr_t
+ */
+herr_t
H5E_dump_api_stack(int is_api)
-{
+{
herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(H5E_dump_api_stack, FAIL)
diff --git a/src/H5F.c b/src/H5F.c
index e320fea..91ca9ca 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -59,7 +59,7 @@ typedef struct H5F_olist_t {
} file_info;
unsigned list_index; /* Current index in open ID array */
int max_index; /* Maximum # of IDs to put into array */
-} H5F_olist_t;
+} H5F_olist_t;
/* PRIVATE PROTOTYPES */
#ifdef NOT_YET
@@ -70,7 +70,7 @@ static int H5F_get_objects_cb(void *obj_ptr, hid_t obj_id, void *key);
static herr_t H5F_get_vfd_handle(const H5F_t *file, hid_t fapl, void** file_handle);
static H5F_t *H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id);
static herr_t H5F_dest(H5F_t *f, hid_t dxpl_id);
-static H5F_t *H5F_open(const char *name, unsigned flags, hid_t fcpl_id,
+static H5F_t *H5F_open(const char *name, unsigned flags, hid_t fcpl_id,
hid_t fapl_id, hid_t dxpl_id);
static herr_t H5F_flush(H5F_t *f, hid_t dxpl_id, H5F_scope_t scope, unsigned flags);
static herr_t H5F_close(H5F_t *f);
@@ -144,7 +144,7 @@ done:
* Change File creation property list to generic property list mechanism.
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5F_init_interface(void)
{
size_t nprops; /* Number of properties */
@@ -152,7 +152,7 @@ H5F_init_interface(void)
/* File creation property class variables. In sequence, they are
* - File create property list class to modify
- * - Default value for size of file user block
+ * - Default value for size of file user block
* - Default value for 1/2 rank for symbol table leaf nodes
* - Default value for 1/2 rank for btree internal nodes
* - Default value for byte number in an address
@@ -160,7 +160,7 @@ H5F_init_interface(void)
* - Default value for version number of superblock
* - Default value for free-space version number
* - Default value for object directory version number
- * - Default value for share-header format version
+ * - Default value for share-header format version
*/
H5P_genclass_t *crt_pclass;
hsize_t userblock_size = H5F_CRT_USER_BLOCK_DEF;
@@ -172,7 +172,7 @@ H5F_init_interface(void)
unsigned freespace_ver = H5F_CRT_FREESPACE_VERS_DEF;
unsigned objectdir_ver = H5F_CRT_OBJ_DIR_VERS_DEF;
unsigned sharedheader_ver = H5F_CRT_SHARE_HEAD_VERS_DEF;
- /* File access property class variables. In sequence, they are
+ /* File access property class variables. In sequence, they are
* - File access property class to modify
* - Size of meta data cache(elements)
* - Size of raw data chunk cache(elements)
@@ -184,7 +184,7 @@ H5F_init_interface(void)
* - Maximum sieve buffer size
* - Garbage-collect reference
* - File driver ID
- * - File driver info
+ * - File driver info
*/
H5P_genclass_t *acs_pclass;
int mdc_nelmts = H5F_ACS_META_CACHE_SIZE_DEF;
@@ -203,13 +203,13 @@ H5F_init_interface(void)
hsize_t family_offset = H5F_ACS_FAMILY_OFFSET_DEF;
H5FD_mem_t mem_type = H5F_ACS_MULTI_TYPE_DEF;
- /* File mount property class variable.
+ /* File mount property class variable.
* - Mount property class to modify
- * - whether absolute symlinks is local to file
+ * - whether absolute symlinks is local to file
*/
H5P_genclass_t *mnt_pclass;
hbool_t local = H5F_MNT_SYM_LOCAL_DEF;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_init_interface)
/*
@@ -222,8 +222,8 @@ H5F_init_interface(void)
*/
if (H5I_init_group(H5I_FILE, (size_t)H5I_FILEID_HASHSIZE, 0, (H5I_free_t)H5F_close)<0)
HGOTO_ERROR (H5E_FILE, H5E_CANTINIT, FAIL, "unable to initialize interface")
-
- /* ========== File Creation Property Class Initialization ============*/
+
+ /* ========== File Creation Property Class Initialization ============*/
assert(H5P_CLS_FILE_CREATE_g!=-1);
/* Get the pointer to file creation class */
@@ -237,39 +237,39 @@ H5F_init_interface(void)
/* Assume that if there are properties in the class, they are the default ones */
if(nprops==0) {
/* Register the user block size */
- if(H5P_register(crt_pclass,H5F_CRT_USER_BLOCK_NAME,H5F_CRT_USER_BLOCK_SIZE, &userblock_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_USER_BLOCK_NAME,H5F_CRT_USER_BLOCK_SIZE, &userblock_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the 1/2 rank for symbol table leaf nodes */
- if(H5P_register(crt_pclass,H5F_CRT_SYM_LEAF_NAME,H5F_CRT_SYM_LEAF_SIZE, &sym_leaf_k,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_SYM_LEAF_NAME,H5F_CRT_SYM_LEAF_SIZE, &sym_leaf_k,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the 1/2 rank for btree internal nodes */
- if(H5P_register(crt_pclass,H5F_CRT_BTREE_RANK_NAME,H5F_CRT_BTREE_RANK_SIZE, btree_k,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_BTREE_RANK_NAME,H5F_CRT_BTREE_RANK_SIZE, btree_k,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the byte number for an address */
- if(H5P_register(crt_pclass,H5F_CRT_ADDR_BYTE_NUM_NAME, H5F_CRT_ADDR_BYTE_NUM_SIZE, &sizeof_addr,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_ADDR_BYTE_NUM_NAME, H5F_CRT_ADDR_BYTE_NUM_SIZE, &sizeof_addr,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the byte number for object size */
- if(H5P_register(crt_pclass,H5F_CRT_OBJ_BYTE_NUM_NAME, H5F_CRT_OBJ_BYTE_NUM_SIZE,&sizeof_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_OBJ_BYTE_NUM_NAME, H5F_CRT_OBJ_BYTE_NUM_SIZE,&sizeof_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the superblock version number */
- if(H5P_register(crt_pclass,H5F_CRT_SUPER_VERS_NAME,H5F_CRT_SUPER_VERS_SIZE, &superblock_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_SUPER_VERS_NAME,H5F_CRT_SUPER_VERS_SIZE, &superblock_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the free-space version number */
- if(H5P_register(crt_pclass,H5F_CRT_FREESPACE_VERS_NAME, H5F_CRT_FREESPACE_VERS_SIZE,&freespace_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_FREESPACE_VERS_NAME, H5F_CRT_FREESPACE_VERS_SIZE,&freespace_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the object directory version number */
- if(H5P_register(crt_pclass,H5F_CRT_OBJ_DIR_VERS_NAME, H5F_CRT_OBJ_DIR_VERS_SIZE,&objectdir_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_OBJ_DIR_VERS_NAME, H5F_CRT_OBJ_DIR_VERS_SIZE,&objectdir_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the shared-header version number */
- if(H5P_register(crt_pclass,H5F_CRT_SHARE_HEAD_VERS_NAME, H5F_CRT_SHARE_HEAD_VERS_SIZE, &sharedheader_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(crt_pclass,H5F_CRT_SHARE_HEAD_VERS_NAME, H5F_CRT_SHARE_HEAD_VERS_SIZE, &sharedheader_ver,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
} /* end if */
@@ -294,51 +294,51 @@ H5F_init_interface(void)
/* Assume that if there are properties in the class, they are the default ones */
if(nprops==0) {
/* Register the size of meta data cache(elements) */
- if(H5P_register(acs_pclass,H5F_ACS_META_CACHE_SIZE_NAME,H5F_ACS_META_CACHE_SIZE_SIZE, &mdc_nelmts,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_META_CACHE_SIZE_NAME,H5F_ACS_META_CACHE_SIZE_SIZE, &mdc_nelmts,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the size of raw data chunk cache (elements) */
- if(H5P_register(acs_pclass,H5F_ACS_DATA_CACHE_ELMT_SIZE_NAME,H5F_ACS_DATA_CACHE_ELMT_SIZE_SIZE, &rdcc_nelmts,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_DATA_CACHE_ELMT_SIZE_NAME,H5F_ACS_DATA_CACHE_ELMT_SIZE_SIZE, &rdcc_nelmts,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the size of raw data chunk cache(bytes) */
- if(H5P_register(acs_pclass,H5F_ACS_DATA_CACHE_BYTE_SIZE_NAME,H5F_ACS_DATA_CACHE_BYTE_SIZE_SIZE, &rdcc_nbytes,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_DATA_CACHE_BYTE_SIZE_NAME,H5F_ACS_DATA_CACHE_BYTE_SIZE_SIZE, &rdcc_nbytes,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the preemption for reading chunks */
- if(H5P_register(acs_pclass,H5F_ACS_PREEMPT_READ_CHUNKS_NAME,H5F_ACS_PREEMPT_READ_CHUNKS_SIZE, &rdcc_w0,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_PREEMPT_READ_CHUNKS_NAME,H5F_ACS_PREEMPT_READ_CHUNKS_SIZE, &rdcc_w0,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the threshold for alignment */
- if(H5P_register(acs_pclass,H5F_ACS_ALIGN_THRHD_NAME,H5F_ACS_ALIGN_THRHD_SIZE, &threshold,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_ALIGN_THRHD_NAME,H5F_ACS_ALIGN_THRHD_SIZE, &threshold,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the alignment */
- if(H5P_register(acs_pclass,H5F_ACS_ALIGN_NAME,H5F_ACS_ALIGN_SIZE, &alignment,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_ALIGN_NAME,H5F_ACS_ALIGN_SIZE, &alignment,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the minimum metadata allocation block size */
- if(H5P_register(acs_pclass,H5F_ACS_META_BLOCK_SIZE_NAME,H5F_ACS_META_BLOCK_SIZE_SIZE, &meta_block_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_META_BLOCK_SIZE_NAME,H5F_ACS_META_BLOCK_SIZE_SIZE, &meta_block_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the maximum sieve buffer size */
- if(H5P_register(acs_pclass,H5F_ACS_SIEVE_BUF_SIZE_NAME,H5F_ACS_SIEVE_BUF_SIZE_SIZE, &sieve_buf_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_SIEVE_BUF_SIZE_NAME,H5F_ACS_SIEVE_BUF_SIZE_SIZE, &sieve_buf_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the minimum "small data" allocation block size */
- if(H5P_register(acs_pclass,H5F_ACS_SDATA_BLOCK_SIZE_NAME,H5F_ACS_SDATA_BLOCK_SIZE_SIZE, &sdata_block_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_SDATA_BLOCK_SIZE_NAME,H5F_ACS_SDATA_BLOCK_SIZE_SIZE, &sdata_block_size,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the garbage collection reference */
- if(H5P_register(acs_pclass,H5F_ACS_GARBG_COLCT_REF_NAME,H5F_ACS_GARBG_COLCT_REF_SIZE, &gc_ref,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_GARBG_COLCT_REF_NAME,H5F_ACS_GARBG_COLCT_REF_SIZE, &gc_ref,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the file driver ID */
- if(H5P_register(acs_pclass,H5F_ACS_FILE_DRV_ID_NAME,H5F_ACS_FILE_DRV_ID_SIZE, &driver_id,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_FILE_DRV_ID_NAME,H5F_ACS_FILE_DRV_ID_SIZE, &driver_id,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the file driver info */
- if(H5P_register(acs_pclass,H5F_ACS_FILE_DRV_INFO_NAME,H5F_ACS_FILE_DRV_INFO_SIZE, &driver_info,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(acs_pclass,H5F_ACS_FILE_DRV_INFO_NAME,H5F_ACS_FILE_DRV_INFO_SIZE, &driver_info,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
/* Register the file close degree */
@@ -375,7 +375,7 @@ H5F_init_interface(void)
/* Assume that if there are properties in the class, they are the default ones */
if(nprops==0) {
/* Register property of whether symlinks is local to file */
- if(H5P_register(mnt_pclass,H5F_MNT_SYM_LOCAL_NAME,H5F_MNT_SYM_LOCAL_SIZE, &local,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
+ if(H5P_register(mnt_pclass,H5F_MNT_SYM_LOCAL_NAME,H5F_MNT_SYM_LOCAL_SIZE, &local,NULL,NULL,NULL,NULL,NULL,NULL,NULL)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINSERT, FAIL, "can't insert property into class")
} /* end if */
@@ -436,15 +436,15 @@ H5F_term_interface(void)
/*----------------------------------------------------------------------------
* Function: H5F_acs_create
- *
- * Purpose: Callback routine which is called whenever a file access
+ *
+ * Purpose: Callback routine which is called whenever a file access
* property list is closed. This routine performs any generic
* initialization needed on the properties the library put into
* the list.
- *
+ *
* Return: Success: Non-negative
* Failure: Negative
- *
+ *
* Programmer: Raymond Lu
* Tuesday, Oct 23, 2001
*
@@ -453,7 +453,7 @@ H5F_term_interface(void)
*----------------------------------------------------------------------------
*/
/* ARGSUSED */
-herr_t
+herr_t
H5F_acs_create(hid_t fapl_id, void UNUSED *copy_data)
{
hid_t driver_id;
@@ -472,7 +472,7 @@ H5F_acs_create(hid_t fapl_id, void UNUSED *copy_data)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get drver ID")
if(H5P_get(plist, H5F_ACS_FILE_DRV_INFO_NAME, &driver_info) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get drver info")
-
+
if(driver_id > 0) {
/* Set the driver for the property list */
if(H5FD_fapl_open(plist, driver_id, driver_info)<0)
@@ -487,7 +487,7 @@ done:
/*--------------------------------------------------------------------------
* Function: H5F_acs_copy
*
- * Purpose: Callback routine which is called whenever a file access
+ * Purpose: Callback routine which is called whenever a file access
* property list is copied. This routine performs any generic
* copy needed on the properties.
*
@@ -496,12 +496,12 @@ done:
* Programmer: Raymond Lu
* Tuesday, Oct 23, 2001
*
- * Modifications:
+ * Modifications:
*
*--------------------------------------------------------------------------
- */
+ */
/* ARGSUSED */
-herr_t
+herr_t
H5F_acs_copy(hid_t new_fapl_id, hid_t old_fapl_id, void UNUSED *copy_data)
{
hid_t driver_id;
@@ -522,7 +522,7 @@ H5F_acs_copy(hid_t new_fapl_id, hid_t old_fapl_id, void UNUSED *copy_data)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get drver ID")
if(H5P_get(old_plist, H5F_ACS_FILE_DRV_INFO_NAME, &driver_info) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get drver info")
-
+
if(driver_id > 0) {
/* Set the driver for the property list */
if(H5FD_fapl_open(new_plist, driver_id, driver_info)<0)
@@ -536,24 +536,24 @@ done:
/*--------------------------------------------------------------------------
* Function: H5F_acs_close
- *
- * Purpose: Callback routine which is called whenever a file access
- * property list is closed. This routine performs any generic
+ *
+ * Purpose: Callback routine which is called whenever a file access
+ * property list is closed. This routine performs any generic
* cleanup needed on the properties.
*
* Return: Success: Non-negative
- *
+ *
* Failure: Negative
*
* Programmer: Raymond Lu
* Tuesday, Oct 23, 2001
- *
+ *
* Modifications:
*
*---------------------------------------------------------------------------
- */
+ */
/* ARGSUSED */
-herr_t
+herr_t
H5F_acs_close(hid_t fapl_id, void UNUSED *close_data)
{
hid_t driver_id;
@@ -664,7 +664,7 @@ done:
DESCRIPTION
Encode non-standard (i.e. not 2, 4 or 8-byte) lengths in file meta-data.
--------------------------------------------------------------------------*/
-void
+void
H5F_encode_length_unusual(const H5F_t *f, uint8_t **p, uint8_t *l)
{
int i = (int)H5F_SIZEOF_SIZE(f)-1;
@@ -723,11 +723,11 @@ H5Fget_create_plist(hid_t file_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file")
if(NULL == (plist = H5I_object(file->shared->fcpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list")
-
+
/* Create the property list object to return */
if((ret_value=H5P_copy_plist(plist)) < 0)
HGOTO_ERROR(H5E_INTERNAL, H5E_CANTINIT, FAIL, "unable to copy file creation properties")
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -754,14 +754,14 @@ done:
*
* Modifications:
* Raymond Lu, Oct 23, 2001
- * Changed file access property list to the new generic
+ * Changed file access property list to the new generic
* property list.
*
* Bill Wendling, Apr 21, 2003
* Fixed bug where the driver ID and info in the property
* list were being overwritten but the original ID and info
* weren't being close.
- *
+ *
*-------------------------------------------------------------------------
*/
hid_t
@@ -771,8 +771,8 @@ H5Fget_access_plist(hid_t file_id)
H5P_genplist_t *new_plist; /* New property list */
H5P_genplist_t *old_plist; /* Old property list */
hid_t ret_value = SUCCEED;
- void *driver_info=NULL;
-
+ void *driver_info=NULL;
+
FUNC_ENTER_API(H5Fget_access_plist, FAIL)
H5TRACE1("i","i",file_id);
@@ -835,7 +835,7 @@ H5Fget_access_plist(hid_t file_id)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set file close degree")
} else if(f->shared->fc_degree != H5F_CLOSE_DEFAULT && H5P_set(new_plist, H5F_CLOSE_DEGREE_NAME, &(f->shared->fc_degree)) < 0) {
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set file close degree")
- }
+ }
done:
FUNC_LEAVE_API(ret_value)
@@ -845,11 +845,11 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Fget_obj_count
*
- * Purpose: Public function returning the number of opened object IDs
- * (files, datasets, groups and datatypes) in the same file.
+ * Purpose: Public function returning the number of opened object IDs
+ * (files, datasets, groups and datatypes) in the same file.
*
* Return: Non-negative on success; negative on failure.
- *
+ *
* Programmer: Raymond Lu
* Wednesday, Dec 5, 2001
*
@@ -948,20 +948,20 @@ done:
*
* Purpose: Private function to return a list of opened object IDs.
*
- * Return: Non-negative on success; negative on failure.
- *
- * Programmer: Raymond Lu
- * Wednesday, Dec 5, 2001
- *
- * Modification:
- *
+ * Return: Non-negative on success; negative on failure.
+ *
+ * Programmer: Raymond Lu
+ * Wednesday, Dec 5, 2001
+ *
+ * Modification:
+ *
*-------------------------------------------------------------------------
*/
unsigned
H5F_get_obj_ids(const H5F_t *f, unsigned types, int max_objs, hid_t *oid_list)
{
unsigned ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5F_get_obj_ids)
ret_value = H5F_get_objects(f, types, max_objs, oid_list);
@@ -973,10 +973,10 @@ H5F_get_obj_ids(const H5F_t *f, unsigned types, int max_objs, hid_t *oid_list)
/*---------------------------------------------------------------------------
* Function: H5F_get_objects
*
- * Purpose: This function is called by H5F_get_obj_count or
- * H5F_get_obj_ids to get number of object IDs and/or a
+ * Purpose: This function is called by H5F_get_obj_count or
+ * H5F_get_obj_ids to get number of object IDs and/or a
* list of opened object IDs (in return value).
- * Return: Non-negative on success; negative on failure.
+ * Return: Non-negative on success; negative on failure.
*
* Programmer: Raymond Lu
* Wednesday, Dec 5, 2001
@@ -1017,28 +1017,28 @@ H5F_get_objects(const H5F_t *f, unsigned types, int max_index, hid_t *obj_id_lis
(void)H5I_search(H5I_FILE, H5F_get_objects_cb, &olist);
} /* end if */
- /* Search through dataset IDs to count number of datasets, and put their
+ /* Search through dataset IDs to count number of datasets, and put their
* IDs on the object list */
if( (max_index < 0 || (int)olist.list_index < max_index) && (types & H5F_OBJ_DATASET) ) {
olist.obj_type = H5I_DATASET;
(void)H5I_search(H5I_DATASET, H5F_get_objects_cb, &olist);
}
- /* Search through group IDs to count number of groups, and put their
+ /* Search through group IDs to count number of groups, and put their
* IDs on the object list */
if( (max_index < 0 || (int)olist.list_index < max_index) && (types & H5F_OBJ_GROUP) ) {
olist.obj_type = H5I_GROUP;
(void)H5I_search(H5I_GROUP, H5F_get_objects_cb, &olist);
}
- /* Search through datatype IDs to count number of named datatypes, and put their
+ /* Search through datatype IDs to count number of named datatypes, and put their
* IDs on the object list */
if( (max_index < 0 || (int)olist.list_index < max_index) && (types & H5F_OBJ_DATATYPE) ) {
olist.obj_type = H5I_DATATYPE;
(void)H5I_search(H5I_DATATYPE, H5F_get_objects_cb, &olist);
}
- /* Search through attribute IDs to count number of attributes, and put their
+ /* Search through attribute IDs to count number of attributes, and put their
* IDs on the object list */
if( (max_index < 0 || (int)olist.list_index < max_index) && (types & H5F_OBJ_ATTR) ) {
olist.obj_type = H5I_ATTR;
@@ -1053,9 +1053,9 @@ H5F_get_objects(const H5F_t *f, unsigned types, int max_index, hid_t *obj_id_lis
/*-------------------------------------------------------------------------
- * Function: H5F_get_objects_cb
+ * Function: H5F_get_objects_cb
*
- * Purpose: H5F_get_objects' callback function. It verifies if an
+ * Purpose: H5F_get_objects' callback function. It verifies if an
* object is in the file, and either count it or put its ID
* on the list.
*
@@ -1071,13 +1071,13 @@ H5F_get_objects_cb(void *obj_ptr, hid_t obj_id, void *key)
{
H5F_olist_t *olist = (H5F_olist_t *)key; /* Alias for search info */
int ret_value = FALSE; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_get_objects_cb)
assert(obj_ptr);
assert(olist);
- /* Count file IDs */
+ /* Count file IDs */
if(olist->obj_type == H5I_FILE) {
if((olist->file_info.local &&
(!olist->file_info.ptr.file || (olist->file_info.ptr.file && (H5F_t*)obj_ptr == olist->file_info.ptr.file) ))
@@ -1121,12 +1121,12 @@ H5F_get_objects_cb(void *obj_ptr, hid_t obj_id, void *key)
}
if((olist->file_info.local &&
- ( (!olist->file_info.ptr.file && olist->obj_type==H5I_DATATYPE && H5T_is_immutable((H5T_t*)obj_ptr)==FALSE)
- || (!olist->file_info.ptr.file && olist->obj_type!=H5I_DATATYPE)
+ ( (!olist->file_info.ptr.file && olist->obj_type==H5I_DATATYPE && H5T_is_immutable((H5T_t*)obj_ptr)==FALSE)
+ || (!olist->file_info.ptr.file && olist->obj_type!=H5I_DATATYPE)
|| (ent && ent->file == olist->file_info.ptr.file) ))
|| (!olist->file_info.local &&
- ((!olist->file_info.ptr.shared && olist->obj_type==H5I_DATATYPE && H5T_is_immutable((H5T_t*)obj_ptr)==FALSE)
- || (!olist->file_info.ptr.shared && olist->obj_type!=H5I_DATATYPE)
+ ((!olist->file_info.ptr.shared && olist->obj_type==H5I_DATATYPE && H5T_is_immutable((H5T_t*)obj_ptr)==FALSE)
+ || (!olist->file_info.ptr.shared && olist->obj_type!=H5I_DATATYPE)
|| (ent && ent->file && ent->file->shared == olist->file_info.ptr.shared) ))) {
/* Add the object's ID to the ID list, if appropriate */
if(olist->obj_id_list) {
@@ -1155,10 +1155,10 @@ done:
* Purpose: Returns a pointer to the file handle of the low-level file
* driver.
*
- * Return: Success: non-negative value.
+ * Return: Success: non-negative value.
+ *
+ * Failture: negative.
*
- * Failture: negative.
- *
* Programmer: Raymond Lu
* Sep. 16, 2002
*
@@ -1171,7 +1171,7 @@ H5Fget_vfd_handle(hid_t file_id, hid_t fapl, void **file_handle)
{
H5F_t *file=NULL;
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Fget_vfd_handle, FAIL)
H5TRACE3("e","iix",file_id,fapl,file_handle);
@@ -1205,7 +1205,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5F_get_vfd_handle(const H5F_t *file, hid_t fapl, void**file_handle)
+H5F_get_vfd_handle(const H5F_t *file, hid_t fapl, void**file_handle)
{
herr_t ret_value;
@@ -1361,7 +1361,7 @@ done:
* Modifications:
*
* Raymond Lu, Oct 14, 2001
- * Changed the file creation and access property list to the
+ * Changed the file creation and access property list to the
* new generic property list.
*
*-------------------------------------------------------------------------
@@ -1371,7 +1371,7 @@ H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id)
{
H5F_t *f=NULL, *ret_value;
H5P_genplist_t *plist; /* Property list */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_new)
if (NULL==(f=H5FL_CALLOC(H5F_t)))
@@ -1388,7 +1388,7 @@ H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id)
f->shared->base_addr = HADDR_UNDEF;
f->shared->freespace_addr = HADDR_UNDEF;
f->shared->driver_addr = HADDR_UNDEF;
-
+
/*
* Copy the file creation and file access property lists into the
* new file handle. We do this early because some values might need
@@ -1433,7 +1433,7 @@ H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get data cache cache size")
if(H5P_get(plist, H5F_ACS_PREEMPT_READ_CHUNKS_NAME, &(f->shared->rdcc_w0)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get preempt read chunk")
-
+
if(H5P_get(plist, H5F_ACS_ALIGN_THRHD_NAME, &(f->shared->threshold))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, NULL, "can't get alignment threshold")
if(H5P_get(plist, H5F_ACS_ALIGN_NAME, &(f->shared->alignment)) < 0)
@@ -1461,7 +1461,7 @@ H5F_new(H5F_file_t *shared, hid_t fcpl_id, hid_t fapl_id)
if(H5F_sfile_add(f->shared) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, NULL, "unable to append to list of open files")
} /* end else */
-
+
f->shared->nrefs++;
/* Set return value */
@@ -1473,7 +1473,7 @@ done:
H5FL_FREE(H5F_file_t,f->shared);
H5FL_FREE(H5F_t,f);
}
-
+
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -1516,7 +1516,7 @@ static herr_t
H5F_dest(H5F_t *f, hid_t dxpl_id)
{
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_dest)
/* Sanity check */
@@ -1570,7 +1570,7 @@ H5F_dest(H5F_t *f, hid_t dxpl_id)
/* Destroy shared file struct */
f->shared = H5FL_FREE(H5F_file_t,f->shared);
-
+
} else if (f->shared->nrefs>0) {
/*
* There are other references to the shared part of the file.
@@ -1660,7 +1660,7 @@ H5F_dest(H5F_t *f, hid_t dxpl_id)
* arguments would be the same.
*
* Raymond Lu, 2001-10-14
- * Changed the file creation and access property lists to the
+ * Changed the file creation and access property lists to the
* new generic property list.
*
* Bill Wendling, 2003-03-18
@@ -1828,7 +1828,7 @@ H5F_open(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t d
/*
* Decide the file close degree. If it's the first time to open the
- * file, set the degree to access property list value; if it's the
+ * file, set the degree to access property list value; if it's the
* second time or later, verify the access property list value matches
* the degree in shared file structure.
*/
@@ -1891,10 +1891,10 @@ done:
* File struct creation and destruction is through H5F_new() and
* H5F_dest(). Writing the root symbol table entry is done with
* H5G_encode().
- *
+ *
* Robb Matzke, 1997-08-29
* Moved creation of the boot block to H5F_flush().
- *
+ *
* Robb Matzke, 1997-09-23
* Most of the work is now done by H5F_open() since H5Fcreate()
* and H5Fopen() originally contained almost identical code.
@@ -1908,9 +1908,9 @@ done:
* Robb Matzke, 1999-08-02
* The file creation and file access property lists are passed
* to the H5F_open() as object IDs.
- *
+ *
* Raymond Lu, 2001-10-14
- * Changed the file creation and access property list to the
+ * Changed the file creation and access property list to the
* new generic property list.
*
*-------------------------------------------------------------------------
@@ -2000,7 +2000,7 @@ done:
* File struct creation and destruction is through H5F_new() and
* H5F_dest(). Reading the root symbol table entry is done with
* H5G_decode().
- *
+ *
* Robb Matzke, 1997-09-23
* Most of the work is now done by H5F_open() since H5Fcreate()
* and H5Fopen() originally contained almost identical code.
@@ -2088,7 +2088,7 @@ H5Fflush(hid_t object_id, H5F_scope_t scope)
H5A_t *attr = NULL;
H5G_entry_t *ent = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Fflush, FAIL)
H5TRACE2("e","iFs",object_id,scope);
@@ -2176,10 +2176,10 @@ done:
* Robb Matzke, 1999-08-16
* The driver information block is encoded and either allocated
* or written to disk.
- *
+ *
* Raymond Lu, 2001-10-14
* Changed to new generic property list.
- *
+ *
* Quincey Koziol, 2002-05-20
* Added 'closing' parameter
*
@@ -2190,7 +2190,7 @@ done:
* Quincey Koziol, 2002-06-06
* Return the remainders of the metadata & "small data" blocks to
* the free list of blocks for the file.
- *
+ *
* Bill Wendling, 2003-03-18
* Modified the flags being passed in to be one flag instead
* of several.
@@ -2412,16 +2412,16 @@ H5F_try_close(H5F_t *f)
* H5F_CLOSE_SEMI: if there are still objects open, return fail;
* otherwise, close file.
* H5F_CLOSE_STRONG: if there are still objects open, close them
- * first, then close file.
- */
+ * first, then close file.
+ */
switch(f->shared->fc_degree) {
case H5F_CLOSE_WEAK:
/*
- * If file or object IDS are still open then delay deletion of
- * resources until they have all been closed. Flush all
+ * If file or object IDS are still open then delay deletion of
+ * resources until they have all been closed. Flush all
* caches and update the object header anyway so that failing to
* close all objects isn't a major problem.
- */
+ */
if ((nopen_files + nopen_objs) > 0)
HGOTO_DONE(SUCCEED)
break;
@@ -2465,7 +2465,7 @@ H5F_try_close(H5F_t *f)
/* Get the list of IDs of open dataset, group, named datatype & attribute objects */
while((obj_count = H5F_get_obj_ids(f, H5F_OBJ_LOCAL|H5F_OBJ_DATASET|H5F_OBJ_GROUP|H5F_OBJ_DATATYPE|H5F_OBJ_ATTR, (int)(sizeof(objs)/sizeof(objs[0])), objs)) != 0) {
-
+
/* Try to close all the open objects in this file */
for(u = 0; u < obj_count; u++)
if(H5I_dec_ref(objs[u]) < 0)
@@ -2584,7 +2584,7 @@ H5Freopen(hid_t file_id)
H5F_t *old_file=NULL;
H5F_t *new_file=NULL;
hid_t ret_value;
-
+
FUNC_ENTER_API(H5Freopen, FAIL)
H5TRACE1("i","i",file_id);
@@ -2989,7 +2989,7 @@ hid_t
H5F_get_id(H5F_t *file)
{
hid_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_get_id)
assert(file);
@@ -3003,7 +3003,7 @@ H5F_get_id(H5F_t *file)
if (H5I_inc_ref(file->file_id)<0)
HGOTO_ERROR (H5E_ATOM, H5E_CANTSET, FAIL, "incrementing file ID failed")
}
-
+
ret_value = file->file_id;
done:
@@ -3027,7 +3027,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-haddr_t
+haddr_t
H5F_get_base_addr(const H5F_t *f)
{
/* Use FUNC_ENTER_NOAPI_NOINIT_NOFUNC here to avoid performance issues */
@@ -3054,7 +3054,7 @@ H5F_get_base_addr(const H5F_t *f)
*
*-------------------------------------------------------------------------
*/
-haddr_t
+haddr_t
H5F_get_eoa(const H5F_t *f)
{
haddr_t ret_value;
@@ -3098,7 +3098,7 @@ H5F_mpi_get_rank(const H5F_t *f)
FUNC_ENTER_NOAPI(H5F_mpi_get_rank, FAIL)
assert(f && f->shared);
-
+
/* Dispatch to driver */
if ((ret_value=H5FD_mpi_get_rank(f->shared->lf))<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "driver get_rank request failed")
@@ -3132,7 +3132,7 @@ H5F_mpi_get_comm(const H5F_t *f)
FUNC_ENTER_NOAPI(H5F_mpi_get_comm, MPI_COMM_NULL)
assert(f && f->shared);
-
+
/* Dispatch to driver */
if ((ret_value=H5FD_mpi_get_comm(f->shared->lf))==MPI_COMM_NULL)
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, MPI_COMM_NULL, "driver get_comm request failed")
@@ -3217,7 +3217,7 @@ H5F_sieve_buf_size(const H5F_t *f)
* address for the file.
*
* Errors:
- * IO READERROR Low-level read failed.
+ * IO READERROR Low-level read failed.
*
* Return: Non-negative on success/Negative on failure
*
@@ -3272,8 +3272,8 @@ done:
* address.
*
* Errors:
- * IO WRITEERROR Low-level write failed.
- * IO WRITEERROR No write intent.
+ * IO WRITEERROR Low-level write failed.
+ * IO WRITEERROR No write intent.
*
* Return: Non-negative on success/Negative on failure
*
@@ -3445,7 +3445,7 @@ H5F_addr_pack(H5F_t UNUSED *f, haddr_t *addr_p/*out*/,
#if H5_SIZEOF_LONG<H5_SIZEOF_UINT64_T
*addr_p |= ((uint64_t)objno[1]) << (8*sizeof(long));
#endif
-
+
FUNC_LEAVE_NOAPI(SUCCEED)
}
@@ -3493,7 +3493,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Fget_filesize
*
- * Purpose: Retrieves the file size of the HDF5 file. This function
+ * Purpose: Retrieves the file size of the HDF5 file. This function
* is called after an existing file is opened in order
* to learn the true size of the underlying file.
*
@@ -3543,8 +3543,8 @@ done:
* just returning the number of characters required to store the name.
* If an error occurs then the buffer pointed to by `name' (NULL or non-NULL)
* is unchanged and the function returns a negative value.
- *
- * Return: Success: The length of the file name
+ *
+ * Return: Success: The length of the file name
* Failure: Negative
*
* Programmer: Raymond Lu
diff --git a/src/H5FD.c b/src/H5FD.c
index 088ee75..b9c4382 100644
--- a/src/H5FD.c
+++ b/src/H5FD.c
@@ -399,9 +399,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -462,7 +462,7 @@ hsize_t
H5FD_sb_size(H5FD_t *file)
{
hsize_t ret_value=0;
-
+
FUNC_ENTER_NOAPI(H5FD_sb_size, 0)
assert(file && file->cls);
@@ -507,7 +507,7 @@ H5FD_sb_encode(H5FD_t *file, char *name/*out*/, uint8_t *buf)
if (file->cls->sb_encode &&
(file->cls->sb_encode)(file, name/*out*/, buf/*out*/)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver sb_encode request failed")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -569,7 +569,7 @@ H5FD_pl_copy(void *(*copy_func)(const void *), size_t pl_size, const void *old_p
{
void *new_pl = NULL; /* Copy of property list */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5FD_pl_copy)
/* Copy old pl, if one exists */
@@ -663,7 +663,7 @@ void *
H5FD_fapl_get(H5FD_t *file)
{
void *ret_value=NULL;
-
+
FUNC_ENTER_NOAPI(H5FD_fapl_get, NULL)
assert(file);
@@ -697,7 +697,7 @@ H5FD_fapl_open(H5P_genplist_t *plist, hid_t driver_id, const void *driver_info)
{
void *copied_driver_info; /* Temporary VFL driver info */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_fapl_open, FAIL)
/* Increment the reference count on driver and copy driver info */
@@ -739,7 +739,7 @@ H5FD_fapl_copy(hid_t driver_id, const void *old_fapl, void **copied_fapl)
{
H5FD_class_t *driver=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_fapl_copy, FAIL)
/* Check args */
@@ -782,7 +782,7 @@ H5FD_fapl_close(hid_t driver_id, void *fapl)
if(driver_id>0) {
if (NULL==(driver=H5I_object(driver_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a driver ID")
-
+
/* Close the driver for the property list */
if(H5FD_pl_close(driver_id,driver->fapl_free,fapl)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver fapl_free request failed")
@@ -814,7 +814,7 @@ H5FD_dxpl_open(H5P_genplist_t *plist, hid_t driver_id, const void *driver_info)
{
void *copied_driver_info; /* Temporary VFL driver info */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_dxpl_open, FAIL)
/* Increment the reference count on the driver and copy the driver info */
@@ -822,7 +822,7 @@ H5FD_dxpl_open(H5P_genplist_t *plist, hid_t driver_id, const void *driver_info)
HGOTO_ERROR (H5E_DATASET, H5E_CANTINC, FAIL, "can't increment VFL driver ID")
if(H5FD_dxpl_copy(driver_id, driver_info, &copied_driver_info)<0)
HGOTO_ERROR (H5E_DATASET, H5E_CANTCOPY, FAIL, "can't copy VFL driver")
-
+
/* Set the driver information for the new property list */
if(H5P_set(plist, H5D_XFER_VFL_ID_NAME, &driver_id)<0)
HGOTO_ERROR (H5E_PLIST, H5E_CANTSET, FAIL, "can't set VFL driver ID")
@@ -856,7 +856,7 @@ H5FD_dxpl_copy(hid_t driver_id, const void *old_dxpl, void **copied_dxpl)
{
H5FD_class_t *driver=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_dxpl_copy, FAIL)
/* Check args */
@@ -899,7 +899,7 @@ H5FD_dxpl_close(hid_t driver_id, void *dxpl)
if(driver_id>0) {
if (NULL==(driver=H5I_object(driver_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a driver ID")
-
+
/* Close the driver for the property list */
if(H5FD_pl_close(driver_id,driver->dxpl_free,dxpl)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver fapl_free request failed")
@@ -1001,9 +1001,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1014,17 +1014,17 @@ H5FD_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
H5FD_class_t *driver;
H5FD_t *file=NULL;
hid_t driver_id = -1;
- hsize_t meta_block_size=0;
- hsize_t sdata_block_size=0;
+ hsize_t meta_block_size=0;
+ hsize_t sdata_block_size=0;
H5P_genplist_t *plist; /* Property list pointer */
H5FD_t *ret_value;
-
+
FUNC_ENTER_NOAPI(H5FD_open, NULL)
/* Get file access property list */
if(NULL == (plist = H5I_object(fapl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list")
-
+
if (0==maxaddr)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "zero format address range")
@@ -1036,7 +1036,7 @@ H5FD_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
HGOTO_ERROR(H5E_VFL, H5E_BADVALUE, NULL, "invalid driver ID in file access property list")
if (NULL==driver->open)
HGOTO_ERROR(H5E_VFL, H5E_UNSUPPORTED, NULL, "file driver has no `open' method")
-
+
/* Dispatch to file driver */
if (HADDR_UNDEF==maxaddr)
maxaddr = driver->maxaddr;
@@ -1155,7 +1155,7 @@ H5FD_close(H5FD_t *file)
{
const H5FD_class_t *driver;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_close, FAIL)
/* check args */
@@ -1281,10 +1281,10 @@ int
H5FDcmp(const H5FD_t *f1, const H5FD_t *f2)
{
int ret_value;
-
+
FUNC_ENTER_API(H5FDcmp, -1) /*return value is arbitrary*/
H5TRACE2("Is","xx",f1,f2);
-
+
ret_value = H5FD_cmp(f1, f2);
done:
@@ -1365,10 +1365,10 @@ H5FDquery(const H5FD_t *f, unsigned long *flags/*out*/)
FUNC_ENTER_API(H5FDquery, FAIL)
H5TRACE2("Is","xx",f,flags);
-
+
assert(f);
assert(flags);
-
+
ret_value = H5FD_query(f, flags);
done:
@@ -1401,7 +1401,7 @@ H5FD_query(const H5FD_t *f, unsigned long *flags/*out*/)
assert(f);
assert(flags);
-
+
/* Check for query driver and call it */
if (f->cls->query)
ret_value = (f->cls->query)(f, flags);
@@ -1458,7 +1458,7 @@ haddr_t
H5FDalloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size)
{
haddr_t ret_value = HADDR_UNDEF;
-
+
FUNC_ENTER_API(H5FDalloc, HADDR_UNDEF)
H5TRACE4("a","xMtih",file,type,dxpl_id,size);
@@ -1532,7 +1532,7 @@ H5FD_alloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size)
if ((ret_value = H5FD_alloc_from_free_list(file, type,
mapped_type, size)) != HADDR_UNDEF)
HGOTO_DONE(ret_value)
-
+
#ifdef H5F_DEBUG
if (H5DEBUG(F))
HDfprintf(H5DEBUG(F), "%s: Could not allocate from freelists\n", FUNC);
@@ -1749,7 +1749,7 @@ H5FD_alloc_from_free_list(H5FD_t *file, H5FD_mem_t type,
H5F_addr_overlap(ret_value, size, file->accum_loc, file->accum_size)) {
ret_value = HADDR_UNDEF;
} else {
- /* Attempt to allocate memory for temporary node */
+ /* Attempt to allocate memory for temporary node */
if((tmp = H5FL_MALLOC(H5FD_free_t))==NULL)
HGOTO_ERROR(H5E_VFL, H5E_NOSPACE, HADDR_UNDEF, "free block allocation failed")
@@ -2031,7 +2031,7 @@ H5FD_real_alloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size)
assert(file->cls);
assert(type >= H5FD_MEM_DEFAULT && type < H5FD_MEM_NTYPES);
assert(size > 0);
-
+
/*
* Dispatch to driver `alloc' callback or extend the end-of-address
* marker
@@ -2163,7 +2163,7 @@ H5FDfree(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t siz
FUNC_ENTER_API(H5FDfree, FAIL)
H5TRACE5("e","xMtiah",file,type,dxpl_id,addr,size);
-
+
/* Check args */
if (!file || !file->cls)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid file pointer")
@@ -2209,7 +2209,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t si
{
H5FD_mem_t mapped_type;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_free, FAIL)
/* Check args */
@@ -2398,7 +2398,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t si
/* Check if we increased the size of the largest block on the list */
file->maxsize = MAX(file->maxsize, last->size);
- /* Check if this free block is at the end of file allocated space.
+ /* Check if this free block is at the end of file allocated space.
* Truncate it if this is true. */
if(file->cls->get_eoa) {
haddr_t eoa;
@@ -2414,7 +2414,7 @@ H5FD_free(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsize_t si
file->maxsize=0; /*unknown*/
H5FL_FREE(H5FD_free_t, last);
}
- }
+ }
} else if (file->cls->free) {
if ((file->cls->free)(file, type, dxpl_id, addr, size)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver free request failed")
@@ -2497,12 +2497,12 @@ H5FD_realloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t old_addr, hsi
uint8_t _buf[8192];
uint8_t *buf=_buf;
haddr_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_realloc, HADDR_UNDEF)
if (new_size==old_size) {
/*nothing to do*/
-
+
} else if (0==old_size) {
/* allocate memory */
assert(!H5F_addr_defined(old_addr));
@@ -2514,7 +2514,7 @@ H5FD_realloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t old_addr, hsi
if(H5FD_free(file, type, dxpl_id, old_addr, old_size)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTFREE, HADDR_UNDEF, "file deallocation request failed")
new_addr = HADDR_UNDEF;
-
+
} else if (new_size<old_size) {
/* free the end of the block */
if(H5FD_free(file, type, dxpl_id, old_addr+old_size, old_size-new_size)<0)
@@ -2541,7 +2541,7 @@ H5FD_realloc(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t old_addr, hsi
H5MM_xfree(buf);
HGOTO_ERROR(H5E_FILE, H5E_READERROR, HADDR_UNDEF, "unable to move file block")
}
-
+
if (buf!=_buf)
H5MM_xfree(buf);
if(H5FD_free(file, type, dxpl_id, old_addr, old_size)<0)
@@ -2582,7 +2582,7 @@ H5FD_can_extend(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size, hsize
{
haddr_t eoa; /* End of address space in the file */
htri_t ret_value=FALSE; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_can_extend, FAIL)
/* Retrieve the end of the address space */
@@ -2651,7 +2651,7 @@ H5FD_extend(H5FD_t *file, H5FD_mem_t type, haddr_t addr, hsize_t size, hsize_t e
hbool_t update_eoma=FALSE; /* Whether we need to update the eoma */
hbool_t update_eosda=FALSE; /* Whether we need to update the eosda */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_extend, FAIL)
/* Retrieve the end of the address space */
@@ -2772,10 +2772,10 @@ haddr_t
H5FD_get_eoa(H5FD_t *file)
{
haddr_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5FD_get_eoa, HADDR_UNDEF)
assert(file && file->cls);
-
+
/* Dispatch to driver */
if (HADDR_UNDEF==(ret_value=(file->cls->get_eoa)(file)))
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, HADDR_UNDEF, "driver get_eoa request failed")
@@ -2860,7 +2860,7 @@ H5FD_set_eoa(H5FD_t *file, haddr_t addr)
assert(file && file->cls);
assert(H5F_addr_defined(addr) && addr<=file->maxaddr);
-
+
/* Dispatch to driver */
if ((file->cls->set_eoa)(file, addr)<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, FAIL, "driver set_eoa request failed")
@@ -2900,7 +2900,7 @@ haddr_t
H5FDget_eof(H5FD_t *file)
{
haddr_t ret_value;
-
+
FUNC_ENTER_API(H5FDget_eof, HADDR_UNDEF)
H5TRACE1("a","x",file);
@@ -2941,7 +2941,7 @@ H5FD_get_eof(H5FD_t *file)
FUNC_ENTER_NOAPI(H5FD_get_eof, HADDR_UNDEF)
assert(file && file->cls);
-
+
/* Dispatch to driver */
if (file->cls->get_eof) {
if (HADDR_UNDEF==(ret_value=(file->cls->get_eof)(file)))
@@ -3269,7 +3269,7 @@ H5FD_write(H5FD_t *file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, size_t si
assert(H5I_GENPROP_LST==H5I_get_type(dxpl_id));
assert(TRUE==H5P_isa_class(dxpl_id,H5P_DATASET_XFER));
assert(buf);
-
+
#ifndef H5_HAVE_PARALLEL
/* Do not return early for Parallel mode since the I/O could be a */
/* collective transfer. */
@@ -3619,7 +3619,7 @@ done:
/*--------------------------------------------------------------------------
* Function: H5FDget_vfd_handle
*
- * Purpose: Returns a pointer to the file handle of low-level virtual
+ * Purpose: Returns a pointer to the file handle of low-level virtual
* file driver.
*
* Return: Non-negative if succeed; negative otherwise.
@@ -3636,7 +3636,7 @@ herr_t H5FDget_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
herr_t ret_value;
FUNC_ENTER_API(H5FDget_vfd_handle, FAIL)
-
+
/* Check arguments */
assert(file);
assert(file_handle);
@@ -3653,7 +3653,7 @@ done:
* Purpose: Retrieve the file handle for file driver.
*
* Return: Non-negative if succeed; negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sep. 16, 2002
*
@@ -3664,7 +3664,7 @@ done:
herr_t H5FD_get_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
{
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_get_vfd_handle, FAIL)
assert(file_handle);
@@ -3673,7 +3673,7 @@ herr_t H5FD_get_vfd_handle(H5FD_t *file, hid_t fapl, void** file_handle)
done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+}
/*-------------------------------------------------------------------------
diff --git a/src/H5FDcore.c b/src/H5FDcore.c
index 11d5cd3..91406e3 100644
--- a/src/H5FDcore.c
+++ b/src/H5FDcore.c
@@ -65,7 +65,7 @@ typedef struct H5FD_core_fapl_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -137,7 +137,7 @@ NAME
H5FD_core_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_core_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -221,7 +221,7 @@ H5FD_core_term(void)
* Purpose: Modify the file access property list to use the H5FD_CORE
* driver defined in this source file. The INCREMENT specifies
* how much to grow the memory each time we need more.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -277,7 +277,7 @@ done:
* Modifications:
* Robb Matzke, 1999-10-19
* Added the BACKING_STORE argument.
- *
+ *
* Raymond Lu
* 2001-10-25
* Changed file access list to the new generic property list.
@@ -301,12 +301,12 @@ H5Pget_fapl_core(hid_t fapl_id, size_t *increment/*out*/,
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "incorrect VFL driver")
if (NULL==(fa=H5P_get_driver_info(plist)))
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "bad VFL driver info")
-
+
if (increment)
*increment = fa->increment;
if (backing_store)
*backing_store = fa->backing_store;
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -381,7 +381,7 @@ H5FD_core_open(const char *name, unsigned UNUSED flags, hid_t fapl_id,
H5FD_t *ret_value;
FUNC_ENTER_NOAPI(H5FD_core_open, NULL)
-
+
/* Check arguments */
if (!(H5F_ACC_CREAT & flags))
HGOTO_ERROR(H5E_ARGS, H5E_UNSUPPORTED, NULL, "must create core files, not open them")
@@ -499,7 +499,7 @@ H5FD_core_cmp(const H5FD_t *_f1, const H5FD_t *_f2)
HGOTO_DONE(1)
HGOTO_DONE(0)
}
-
+
if (NULL==f1->name)
HGOTO_DONE(-1)
if (NULL==f2->name)
@@ -536,7 +536,7 @@ H5FD_core_get_eoa(H5FD_t *_file)
haddr_t ret_value; /* Return value */
H5FD_core_t *file = (H5FD_core_t*)_file;
-
+
FUNC_ENTER_NOAPI(H5FD_core_get_eoa, HADDR_UNDEF)
/* Set return value */
@@ -622,25 +622,25 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_core_get_handle
- *
+ *
* Purpose: Returns the file handle of CORE file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
- * Modifications:
- *
+ *
+ * Modifications:
+ *
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
static herr_t
H5FD_core_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_core_t *file = (H5FD_core_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_core_get_handle, FAIL)
if(!file_handle)
@@ -648,9 +648,9 @@ H5FD_core_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
*file_handle = &(file->mem);
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+}
/*-------------------------------------------------------------------------
@@ -679,7 +679,7 @@ H5FD_core_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
{
H5FD_core_t *file = (H5FD_core_t*)_file;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_core_read, FAIL)
assert(file && file->pub.cls);
@@ -746,7 +746,7 @@ H5FD_core_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, had
{
H5FD_core_t *file = (H5FD_core_t*)_file;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_core_write, FAIL)
assert(file && file->pub.cls);
@@ -814,7 +814,7 @@ H5FD_core_flush(H5FD_t *_file, hid_t UNUSED dxpl_id, unsigned UNUSED closing)
{
H5FD_core_t *file = (H5FD_core_t*)_file;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_core_flush, FAIL)
/* Write to backing store */
diff --git a/src/H5FDfamily.c b/src/H5FDfamily.c
index 83fe5a2..90f7697 100644
--- a/src/H5FDfamily.c
+++ b/src/H5FDfamily.c
@@ -30,7 +30,7 @@
* (actually, this happens when the file family is flushed, and
* can be quite time consuming on file systems that don't
* implement holes, like nfs).
- *
+ *
*/
/* Interface initialization */
@@ -138,7 +138,7 @@ NAME
H5FD_family_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_family_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -234,9 +234,9 @@ H5FD_family_term(void)
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -247,10 +247,10 @@ H5Pset_fapl_family(hid_t fapl_id, hsize_t memb_size, hid_t memb_fapl_id)
herr_t ret_value;
H5FD_family_fapl_t fa;
H5P_genplist_t *plist; /* Property list pointer */
-
+
FUNC_ENTER_API(H5Pset_fapl_family, FAIL)
H5TRACE3("e","ihi",fapl_id,memb_size,memb_fapl_id);
-
+
/* Check arguments */
if(TRUE != H5P_isa_class(fapl_id, H5P_FILE_ACCESS))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
@@ -291,9 +291,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -305,7 +305,7 @@ H5Pget_fapl_family(hid_t fapl_id, hsize_t *memb_size/*out*/,
H5FD_family_fapl_t *fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_fapl_family, FAIL)
H5TRACE3("e","ixx",fapl_id,memb_size,memb_fapl_id);
@@ -567,9 +567,9 @@ done:
* Raymond Lu
* Thursday, November 18, 2004
* When file is re-opened, member size passed in from access property
- * is checked to see if it's reasonable. If there is only 1 member
- * file, member size can't be smaller than current member size.
- * If there are at least 2 member files, member size can only be equal
+ * is checked to see if it's reasonable. If there is only 1 member
+ * file, member size can't be smaller than current member size.
+ * If there are at least 2 member files, member size can only be equal
* the 1st member size.
*
*-------------------------------------------------------------------------
@@ -621,7 +621,7 @@ H5FD_family_open(const char *name, unsigned flags, hid_t fapl_id,
}
file->name = H5MM_strdup(name);
file->flags = flags;
-
+
/* Check that names are unique */
sprintf(memb_name, name, 0);
sprintf(temp, name, 1);
@@ -642,7 +642,7 @@ H5FD_family_open(const char *name, unsigned flags, hid_t fapl_id,
file->amembs = n;
file->memb = x;
}
-
+
/*
* Attempt to open file. If the first file cannot be opened then fail;
* otherwise an open failure means that we've reached the last member.
@@ -661,23 +661,23 @@ H5FD_family_open(const char *name, unsigned flags, hid_t fapl_id,
file->nmembs++;
}
- /*
- * Get file size of the first 2 member files if exist. Check if user sets
- * reasonable member size.
+ /*
+ * Get file size of the first 2 member files if exist. Check if user sets
+ * reasonable member size.
*/
if(HADDR_UNDEF==(eof1 = H5FD_get_eof(file->memb[0])))
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, NULL, "file get eof1 request failed")
if(file->memb[1] && (HADDR_UNDEF==(eof2 = H5FD_get_eof(file->memb[1]))))
HGOTO_ERROR(H5E_VFL, H5E_CANTINIT, NULL, "file get eof2 request failed")
-
- if(eof1 && (eof2==HADDR_UNDEF || !eof2)) {
- /* If there is only 1 member file, new member size can't be smaller than
- * current member size.
+
+ if(eof1 && (eof2==HADDR_UNDEF || !eof2)) {
+ /* If there is only 1 member file, new member size can't be smaller than
+ * current member size.
*/
if(file->memb_size<eof1)
file->memb_size = eof1;
- } else if(eof1 && eof2) {
- /* If there are at least 2 member files, new member size can only be equal
+ } else if(eof1 && eof2) {
+ /* If there are at least 2 member files, new member size can only be equal
* to the 1st member size
*/
file->memb_size = eof1;
@@ -793,7 +793,7 @@ H5FD_family_cmp(const H5FD_t *_f1, const H5FD_t *_f2)
assert(f1->nmembs>=1 && f1->memb[0]);
assert(f2->nmembs>=1 && f2->memb[0]);
-
+
ret_value= H5FDcmp(f1->memb[0], f2->memb[0]);
done:
@@ -830,7 +830,7 @@ H5FD_family_query(const H5FD_t UNUSED * _f, unsigned long *flags /* out */)
if(flags) {
*flags=0;
*flags|=H5FD_FEAT_AGGREGATE_METADATA; /* OK to aggregate metadata allocations */
- /**flags|=H5FD_FEAT_ACCUMULATE_METADATA;*/ /* OK to accumulate metadata for faster writes.
+ /**flags|=H5FD_FEAT_ACCUMULATE_METADATA;*/ /* OK to accumulate metadata for faster writes.
* - Turn it off temporarily because there's a bug
* when trying to flush metadata during closing. */
*flags|=H5FD_FEAT_DATA_SIEVE; /* OK to perform data sieving for faster raw data reads & writes */
@@ -928,7 +928,7 @@ H5FD_family_set_eoa(H5FD_t *_file, haddr_t eoa)
if (NULL==file->memb[u])
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to open member file")
}
-
+
/* Set the EOA marker for the member */
H5_CHECK_OVERFLOW(file->memb_size,hsize_t,haddr_t);
if (addr>(haddr_t)file->memb_size) {
@@ -1007,27 +1007,27 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_family_get_handle
- *
+ *
* Purpose: Returns the file handle of FAMILY file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
- */
-static herr_t
+ */
+static herr_t
H5FD_family_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
-{
+{
H5FD_family_t *file = (H5FD_family_t *)_file;
H5P_genplist_t *plist;
hsize_t offset;
int memb;
herr_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5FD_family_get_handle, FAIL)
/* Get the plist structure and family offset */
@@ -1103,7 +1103,7 @@ H5FD_family_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, si
sub = addr % file->memb_size;
/* This check is for mainly for IA32 architecture whose size_t's size
- * is 4 bytes, to prevent overflow when user application is trying to
+ * is 4 bytes, to prevent overflow when user application is trying to
* write files bigger than 4GB. */
tempreq = file->memb_size-sub;
if(tempreq > SIZET_MAX)
@@ -1180,7 +1180,7 @@ H5FD_family_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, s
sub = addr % file->memb_size;
/* This check is for mainly for IA32 architecture whose size_t's size
- * is 4 bytes, to prevent overflow when user application is trying to
+ * is 4 bytes, to prevent overflow when user application is trying to
* write files bigger than 4GB. */
tempreq = file->memb_size-sub;
if(tempreq > SIZET_MAX)
diff --git a/src/H5FDgass.c b/src/H5FDgass.c
index e0e2a42..4414291 100644
--- a/src/H5FDgass.c
+++ b/src/H5FDgass.c
@@ -63,8 +63,8 @@ typedef struct H5FD_gass_t {
haddr_t eof; /*end of file; current file size*/
haddr_t pos; /*current file I/O position */
int op; /*last operation */
-
-
+
+
} H5FD_gass_t;
/*
@@ -101,7 +101,7 @@ typedef struct H5FD_gass_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -180,7 +180,7 @@ NAME
H5FD_gass_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_gass_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -266,7 +266,7 @@ H5FD_gass_term(void)
*
* Purpose: Store the user supplied GASS INFO in
* the file access property list FAPL_ID which can then be used
- * to create and/or open the file.
+ * to create and/or open the file.
*
* GASS info object to be used for file open using GASS.
* Any modification to info after
@@ -295,10 +295,10 @@ H5Pset_fapl_gass(hid_t fapl_id, GASS_Info info)
H5FD_gass_fapl_t fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Pset_fapl_gass, FAIL)
/*NO TRACE*/
-
+
/* Check arguments */
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list")
@@ -324,8 +324,8 @@ done:
* driver then this function returns the GASS info object
* through the INFO pointer.
*
- * Return: Success: Non-negative with the info object returned
- * through the INFO arguments if non-null.
+ * Return: Success: Non-negative with the info object returned
+ * through the INFO arguments if non-null.
* The information is copied and it is therefore
* valid only until the file access property
* list is modified or closed.
@@ -348,7 +348,7 @@ H5Pget_fapl_gass(hid_t fapl_id, GASS_Info *info/*out*/)
H5FD_gass_fapl_t *fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_fapl_gass, FAIL)
H5TRACE2("e","ix",fapl_id,info);
@@ -402,7 +402,7 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
H5P_genplist_t *plist; /* Property list pointer */
h5_stat_t sb;
H5FD_t *ret_value;
-
+
FUNC_ENTER_NOAPI(H5FD_gass_open, NULL)
/* fprintf(stdout, "Entering H5FD_gass_open name=%s flags=0x%x\n", name, flags); */
@@ -416,7 +416,7 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, NULL, "bogus maxaddr")
strcpy (filename, name);
-
+
/* Obtain a pointer to gass-specific file access properties */
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list")
@@ -429,18 +429,18 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
fa = H5P_get_driver_info(plist);
assert(fa);
}
-
+
/* When I come down here, the possible flag values and the correct
responses are given here :-
- 1. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_EXCL : The file is
- a new one. Go ahead and open it in O_RDWR.
+ 1. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_EXCL : The file is
+ a new one. Go ahead and open it in O_RDWR.
2. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_TRUNC : Use
O_RDWR | O_TRUNC with gass_open.
3. H5F_ACC_RDWR | H5F_ACC_TRUNC : File already exists. Truncate it.
-
+
4. H5F_ACC_RDWR : Use O_RDWR with gass_open
5. H5F_ACC_RDWR is not set : Use O_RDONLY with gass_open
@@ -449,7 +449,7 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
is that gass_open does not support many of them (e.g., O_CREAT)
*/
-
+
if ((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) && (flags & H5F_ACC_EXCL)) {
if ((fd = globus_gass_open (filename, O_RDWR|O_TRUNC)) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTOPENFILE, NULL, "open failed")
@@ -457,24 +457,24 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
else if ((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) && (flags & H5F_ACC_TRUNC)) {
if ((fd = globus_gass_open (filename, O_RDWR|O_TRUNC)) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTOPENFILE, NULL, "open failed")
-
+
}
else if ((flags & H5F_ACC_RDWR) && (flags & H5F_ACC_TRUNC)) {
if ((fd = globus_gass_open (filename, O_RDWR|O_TRUNC)) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTOPENFILE, NULL, "open failed")
-
+
}
else if (flags & H5F_ACC_RDWR) {
if ((fd = globus_gass_open (filename, O_RDWR)) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTOPENFILE, NULL, "open failed")
-
+
}
else { /* This is case where H5F_ACC_RDWR is not set */
if ((fd = globus_gass_open (filename, O_RDONLY)) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTOPENFILE, NULL, "open failed")
-
+
}
-
+
if (HDfstat(fd, &sb)<0) {
close(fd);
HGOTO_ERROR(H5E_IO, H5E_BADFILE, NULL, "fstat failed")
@@ -491,7 +491,7 @@ H5FD_gass_open(const char *name, unsigned flags, hid_t fapl_id,
/* Set return value */
ret_value=(H5FD_t*)file;
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -523,7 +523,7 @@ H5FD_gass_close (H5FD_t *_file)
if (file == NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "invalid file handle")
-
+
if (globus_gass_close (file->fd) < 0)
HGOTO_ERROR(H5E_IO, H5E_CANTCLOSEFILE, FAIL, "can't close GASS file")
@@ -673,24 +673,24 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_gass_get_handle
- *
+ *
* Purpose: Returns the file handle of GASS file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
- * Modifications:
- *
+ *
+ * Modifications:
+ *
*-------------------------------------------------------------------------
*/
static herr_t
H5FD_gass_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_gass_t *file = (H5FD_gass_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_gass_get_handle, FAIL)
if(!file_handle)
@@ -698,10 +698,10 @@ H5FD_gass_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
*file_handle = &(file->fd);
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value)
-}
-
+}
+
/*-------------------------------------------------------------------------
* Function: H5FD_gass_read
@@ -755,7 +755,7 @@ H5FD_gass_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id/*unused*/, h
* and the end of the file.
*/
while (size>0) {
- do
+ do
nbytes = read(file->fd, buf, size);
while (-1==nbytes && EINTR==errno);
diff --git a/src/H5FDgass.h b/src/H5FDgass.h
index 1d599a0..1950048 100644
--- a/src/H5FDgass.h
+++ b/src/H5FDgass.h
@@ -26,11 +26,11 @@
#include <string.h>
-#ifdef H5_HAVE_GASS
+#ifdef H5_HAVE_GASS
#define H5FD_GASS (H5FD_gass_init())
#else
#define H5FD_GASS (-1)
-#endif
+#endif
#ifdef H5_HAVE_GASS
/* Define the GASS info object. (Will be added to later as more GASS
diff --git a/src/H5FDlog.c b/src/H5FDlog.c
index 91914ee..03796f3 100644
--- a/src/H5FDlog.c
+++ b/src/H5FDlog.c
@@ -150,7 +150,7 @@ typedef struct H5FD_log_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -242,7 +242,7 @@ NAME
H5FD_log_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_log_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -327,7 +327,7 @@ H5FD_log_term(void)
* Purpose: Modify the file access property list to use the H5FD_LOG
* driver defined in this source file. There are no driver
* specific properties.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -338,7 +338,7 @@ H5FD_log_term(void)
*
* Raymond Lu, 2001-10-25
* Changed the file access list to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -350,7 +350,7 @@ H5Pset_fapl_log(hid_t fapl_id, const char *logfile, int verbosity)
FUNC_ENTER_API(H5Pset_fapl_log, FAIL)
H5TRACE3("e","isIs",fapl_id,logfile,verbosity);
-
+
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
@@ -374,7 +374,7 @@ done:
* Purpose: Modify the file access property list to use the H5FD_LOG
* driver defined in this source file. There are no driver
* specific properties.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -385,7 +385,7 @@ done:
*
* Raymond Lu, 2001-10-25
* Changed the file access list to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -397,10 +397,10 @@ H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned flags, size_t buf_s
FUNC_ENTER_API(H5Pset_fapl_log, FAIL)
H5TRACE4("e","isIuz",fapl_id,logfile,flags,buf_size);
-
+
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
-
+
fa.logfile=(char*)logfile;
fa.flags=flags;
fa.buf_size=buf_size;
@@ -469,7 +469,7 @@ H5FD_log_fapl_copy(const void *_old_fa)
const H5FD_log_fapl_t *old_fa = (const H5FD_log_fapl_t*)_old_fa;
H5FD_log_fapl_t *new_fa = H5MM_malloc(sizeof(H5FD_log_fapl_t));
void *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_log_fapl_copy, NULL)
assert(new_fa);
@@ -1025,36 +1025,36 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_log_get_handle
- *
+ *
* Purpose: Returns the file handle of LOG file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
- * Modifications:
- *
+ *
+ * Modifications:
+ *
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
static herr_t
H5FD_log_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_log_t *file = (H5FD_log_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_log_get_handle, FAIL)
if(!file_handle)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "file handle not valid")
*file_handle = &(file->fd);
-
-done:
+
+done:
FUNC_LEAVE_NOAPI(ret_value)
-}
-
+}
+
/*-------------------------------------------------------------------------
* Function: H5FD_log_read
@@ -1083,7 +1083,7 @@ H5FD_log_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr
H5FD_log_t *file = (H5FD_log_t*)_file;
ssize_t nbytes;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_log_read, FAIL)
assert(file && file->pub.cls);
@@ -1160,7 +1160,7 @@ H5FD_log_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr
addr += (haddr_t)nbytes;
buf = (char*)buf + nbytes;
}
-
+
/* Update current position */
file->pos = addr;
file->op = OP_READ;
@@ -1202,7 +1202,7 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t type, hid_t UNUSED dxpl_id, haddr_t add
struct timeval timeval_diff;
#endif /* H5_HAVE_GETTIMEOFDAY */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_log_write, FAIL)
assert(file && file->pub.cls);
@@ -1214,13 +1214,13 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t type, hid_t UNUSED dxpl_id, haddr_t add
assert(type==H5FD_MEM_DEFAULT || type==(H5FD_mem_t)file->flavor[(addr+size)-1] || (H5FD_mem_t)file->flavor[(addr+size)-1]==H5FD_MEM_DEFAULT);
/* Check for overflow conditions */
- if (HADDR_UNDEF==addr)
+ if (HADDR_UNDEF==addr)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "addr undefined")
if (REGION_OVERFLOW(addr, size))
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
if (addr+size>file->eoa)
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
-
+
/* Log the I/O information about the write */
if(file->fa.flags&H5FD_LOG_FILE_WRITE) {
size_t tmp_size=size;
@@ -1261,7 +1261,7 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t type, hid_t UNUSED dxpl_id, haddr_t add
} /* end if */
HDfprintf(file->logfp," (%f s)\n",(double)timeval_diff.tv_sec+((double)timeval_diff.tv_usec/(double)1000000.0));
} /* end if */
- else
+ else
HDfprintf(file->logfp,"\n");
#else /* H5_HAVE_GETTIMEOFDAY */
HDfprintf(file->logfp,"Seek: From %10a To %10a\n",file->pos,addr);
@@ -1301,7 +1301,7 @@ H5FD_log_write(H5FD_t *_file, H5FD_mem_t type, hid_t UNUSED dxpl_id, haddr_t add
if(file->fa.flags&H5FD_LOG_TIME_WRITE)
HDgettimeofday(&timeval_stop,NULL);
#endif /* H5_HAVE_GETTIMEOFDAY */
-
+
/* Log information about the write */
if(file->fa.flags&H5FD_LOG_LOC_WRITE) {
/* Output the flavor information, if desired */
diff --git a/src/H5FDmpi.c b/src/H5FDmpi.c
index 671eccb..2c1e526 100644
--- a/src/H5FDmpi.c
+++ b/src/H5FDmpi.c
@@ -62,7 +62,7 @@ H5FD_mpi_get_rank(const H5FD_t *file)
assert(file && cls);
assert(cls->get_rank); /* All MPI drivers must implement this */
-
+
/* Dispatch to driver */
if ((ret_value=(cls->get_rank)(file))<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "driver get_rank request failed")
@@ -98,7 +98,7 @@ H5FD_mpi_get_size(const H5FD_t *file)
assert(file && cls);
assert(cls->get_size); /* All MPI drivers must implement this */
-
+
/* Dispatch to driver */
if ((ret_value=(cls->get_size)(file))<0)
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "driver get_size request failed")
@@ -134,7 +134,7 @@ H5FD_mpi_get_comm(const H5FD_t *file)
assert(file && cls);
assert(cls->get_comm); /* All MPI drivers must implement this */
-
+
/* Dispatch to driver */
if ((ret_value=(cls->get_comm)(file))==MPI_COMM_NULL)
HGOTO_ERROR(H5E_VFL, H5E_CANTGET, MPI_COMM_NULL, "driver get_comm request failed")
@@ -151,7 +151,7 @@ done:
*
* Return: Success: The haddr_t equivalent of the MPI_OFF
* argument.
- *
+ *
* Failure: HADDR_UNDEF
*
* Programmer: Unknown
@@ -164,7 +164,7 @@ done:
*
* Robb Matzke, 1999-08-06
* Modified to work with the virtual file layer.
- *-------------------------------------------------------------------------
+ *-------------------------------------------------------------------------
*/
haddr_t
H5FD_mpi_MPIOff_to_haddr(MPI_Offset mpi_off)
@@ -255,7 +255,7 @@ H5FD_mpi_comm_info_dup(MPI_Comm comm, MPI_Info info, MPI_Comm *comm_new, MPI_Inf
MPI_Comm comm_dup=MPI_COMM_NULL;
MPI_Info info_dup=MPI_INFO_NULL;
int mpi_code;
-
+
FUNC_ENTER_NOAPI(H5FD_mpi_comm_info_dup, FAIL)
/* Check arguments */
@@ -297,7 +297,7 @@ done:
*
* Purpose: Free the communicator and Info object.
* If comm or info is in fact MPI_COMM_NULL or MPI_INFO_NULL
- * respectively, no action occurs to it.
+ * respectively, no action occurs to it.
*
* Return: Success: Non-negative. The values the pointers refer
* to will be set to the corresponding NULL
@@ -381,7 +381,7 @@ H5FD_mpio_wait_for_left_neighbor(H5FD_t *_file)
file->mpi_rank-1, MPI_ANY_TAG, file->comm, &rcvstat )))
HMPI_GOTO_ERROR(FAIL, "MPI_Recv failed", mpi_code)
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index f46bf9e..c8da1a6 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -155,7 +155,7 @@ NAME
H5FD_mpio_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_mpio_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -217,7 +217,7 @@ H5FD_mpio_init(void)
H5FD_mpio_Debug_inited++;
}
#endif /* H5FDmpio_DEBUG */
-
+
/* Set return value */
ret_value=H5FD_MPIO_g;
@@ -300,7 +300,7 @@ H5FD_mpio_term(void)
* Modified to work with the virtual file layer.
*
* Raymond Lu, 2001-10-23
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
* Albert Cheng, 2003-04-17
@@ -317,7 +317,7 @@ H5Pset_fapl_mpio(hid_t fapl_id, MPI_Comm comm, MPI_Info info)
H5FD_mpio_fapl_t fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Pset_fapl_mpio, FAIL)
H5TRACE3("e","iMcMi",fapl_id,comm,info);
@@ -372,7 +372,7 @@ done:
* read/write calls.
*
* Raymond Lu, 2001-10-23
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
* Albert Cheng, 2003-04-17
@@ -388,7 +388,7 @@ H5Pget_fapl_mpio(hid_t fapl_id, MPI_Comm *comm/*out*/, MPI_Info *info/*out*/)
MPI_Comm comm_tmp=MPI_COMM_NULL;
int mpi_code; /* mpi return code */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_fapl_mpio, FAIL)
H5TRACE3("e","ixx",fapl_id,comm,info);
@@ -407,7 +407,7 @@ H5Pget_fapl_mpio(hid_t fapl_id, MPI_Comm *comm/*out*/, MPI_Info *info/*out*/)
if (MPI_SUCCESS != (mpi_code=MPI_Comm_dup(fa->comm, &comm_tmp)))
HMPI_GOTO_ERROR(FAIL, "MPI_Comm_dup failed", mpi_code)
}
-
+
if (info){
if (MPI_INFO_NULL != fa->info){
if (MPI_SUCCESS != (mpi_code=MPI_Info_dup(fa->info, info)))
@@ -444,7 +444,7 @@ done:
*
* H5FD_MPIO_COLLECTIVE:
* Use collective I/O access.
- *
+ *
* Return: Success: Non-negative
*
* Failure: Negative
@@ -465,7 +465,7 @@ H5Pset_dxpl_mpio(hid_t dxpl_id, H5FD_mpio_xfer_t xfer_mode)
FUNC_ENTER_API(H5Pset_dxpl_mpio, FAIL)
H5TRACE2("e","iDt",dxpl_id,xfer_mode);
-
+
if(dxpl_id==H5P_DEFAULT)
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "can't set values in default property list")
@@ -601,7 +601,7 @@ H5FD_mpio_fapl_copy(const void *_old_fa)
void *ret_value = NULL;
const H5FD_mpio_fapl_t *old_fa = (const H5FD_mpio_fapl_t*)_old_fa;
H5FD_mpio_fapl_t *new_fa = NULL;
-
+
FUNC_ENTER_NOAPI(H5FD_mpio_fapl_copy, NULL)
#ifdef H5FDmpio_DEBUG
if (H5FD_mpio_Debug[(int)'t'])
@@ -692,7 +692,7 @@ fprintf(stderr, "leaving H5FD_mpio_fapl_free\n");
*
* Failure: NULL
*
- * Programmer:
+ * Programmer:
* January 30, 1998
*
* Modifications:
@@ -710,7 +710,7 @@ fprintf(stderr, "leaving H5FD_mpio_fapl_free\n");
* Added barrier after MPI_File_set_size to prevent race
* condition -- subsequent writes were being truncated, causing
* holes in file.
- *
+ *
* Robb Matzke, 1999-08-06
* Modified to work with the virtual file layer.
*
@@ -1087,26 +1087,26 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_mpio_get_handle
- *
+ *
* Purpose: Returns the file handle of MPIO file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5FD_mpio_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_mpio_t *file = (H5FD_mpio_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_mpio_get_handle, FAIL)
-
+
if(!file_handle)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "file handle not valid")
@@ -1115,7 +1115,7 @@ H5FD_mpio_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
done:
FUNC_LEAVE_NOAPI(ret_value)
}
-
+
/*-------------------------------------------------------------------------
* Function: H5FD_mpio_read
@@ -1159,7 +1159,7 @@ done:
*
* Robb Matzke, 1999-07-28
* The ADDR argument is passed by value.
- *
+ *
* Robb Matzke, 1999-08-06
* Modified to work with the virtual file layer.
*
@@ -1240,7 +1240,7 @@ H5FD_mpio_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t dxpl_id, haddr_t add
if(NULL == (plist = H5I_object(dxpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
xfer_mode=(H5FD_mpio_xfer_t)H5P_peek_unsigned(plist, H5D_XFER_IO_XFER_MODE_NAME);
-
+
/*
* Set up for a fancy xfer using complex types, or single byte block. We
* wouldn't need to rely on the use_view field if MPI semantics allowed
@@ -1412,7 +1412,7 @@ done:
*
* Kim Yates, Pat Weidhaas, 2000-09-26
* Move block of coding where only p0 writes after the
- * MPI_File_set_view call.
+ * MPI_File_set_view call.
*
* Quincey Koziol, 2002-05-10
* Instead of always writing metadata from process 0, spread the
@@ -1498,7 +1498,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
/* Obtain the data transfer properties */
if(NULL == (plist = H5I_object(dxpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
-
+
if(type==H5FD_MEM_DRAW) {
H5FD_mpio_xfer_t xfer_mode; /* I/O tranfer mode */
@@ -1614,7 +1614,7 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
/* Forget the EOF value (see H5FD_mpio_get_eof()) --rpm 1999-08-06 */
file->eof = HADDR_UNDEF;
-
+
done:
/* if only one process writes, need to broadcast the ret_value to other processes */
if (type!=H5FD_MEM_DRAW) {
@@ -1655,7 +1655,7 @@ done:
* allocated byte.
*
* Quincey Koziol, 2002-06-??
- * Changed file extension method to use MPI_File_set_size instead
+ * Changed file extension method to use MPI_File_set_size instead
* read->write method.
*
*-------------------------------------------------------------------------
diff --git a/src/H5FDmpiposix.c b/src/H5FDmpiposix.c
index 294b13e..6ab8912 100644
--- a/src/H5FDmpiposix.c
+++ b/src/H5FDmpiposix.c
@@ -150,7 +150,7 @@ typedef struct H5FD_mpiposix_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -243,7 +243,7 @@ NAME
H5FD_mpiposix_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_mpiposix_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -358,7 +358,7 @@ H5Pset_fapl_mpiposix(hid_t fapl_id, MPI_Comm comm)
H5FD_mpiposix_fapl_t fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Pset_fapl_mpiposix, FAIL)
H5TRACE2("e","iMc",fapl_id,comm);
@@ -389,7 +389,7 @@ done:
* of the application to free the returned communicator.
*
* Return: Success: Non-negative with the communicator and
- * information returned through the COMM
+ * information returned through the COMM
* argument if non-null. Since it is a duplicate
* of the stored object, future modifications to
* the access property list do not affect it and
@@ -417,7 +417,7 @@ H5Pget_fapl_mpiposix(hid_t fapl_id, MPI_Comm *comm/*out*/)
H5P_genplist_t *plist; /* Property list pointer */
int mpi_code; /* mpi return code */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_fapl_mpiposix, FAIL)
H5TRACE2("e","ix",fapl_id,comm);
@@ -479,7 +479,7 @@ H5Pset_fapl_mpiposix(hid_t fapl_id, MPI_Comm comm, hbool_t use_gpfs)
H5FD_mpiposix_fapl_t fa;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Pset_fapl_mpiposix, FAIL)
H5TRACE3("e","iMcb",fapl_id,comm,use_gpfs);
@@ -510,7 +510,7 @@ done:
* of the application to free the returned communicator.
*
* Return: Success: Non-negative with the communicator and
- * information returned through the COMM
+ * information returned through the COMM
* argument if non-null. Since it is a duplicate
* of the stored object, future modifications to
* the access property list do not affect it and
@@ -538,7 +538,7 @@ H5Pget_fapl_mpiposix(hid_t fapl_id, MPI_Comm *comm/*out*/, hbool_t *use_gpfs/*ou
H5P_genplist_t *plist; /* Property list pointer */
int mpi_code; /* mpi return code */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_fapl_mpiposix, FAIL)
H5TRACE3("e","ixx",fapl_id,comm,use_gpfs);
@@ -604,7 +604,7 @@ H5FD_mpiposix_fapl_get(H5FD_t *_file)
/* Duplicate the communicator. */
if (MPI_SUCCESS != (mpi_code=MPI_Comm_dup(file->comm, &fa->comm)))
HMPI_GOTO_ERROR(NULL, "MPI_Comm_dup failed", mpi_code)
-
+
fa->use_gpfs = file->use_gpfs;
/* Set return value */
@@ -638,7 +638,7 @@ H5FD_mpiposix_fapl_copy(const void *_old_fa)
const H5FD_mpiposix_fapl_t *old_fa = (const H5FD_mpiposix_fapl_t*)_old_fa;
H5FD_mpiposix_fapl_t *new_fa = NULL;
int mpi_code; /* MPI return code */
-
+
FUNC_ENTER_NOAPI(H5FD_mpiposix_fapl_copy, NULL)
if (NULL==(new_fa=H5MM_malloc(sizeof(H5FD_mpiposix_fapl_t))))
@@ -740,7 +740,7 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id,
#ifdef WIN32
HFILE filehandle;
struct _BY_HANDLE_FILE_INFORMATION fileinfo;
- int results;
+ int results;
#endif
H5FD_t *ret_value=NULL; /* Return value */
MPI_Comm comm_dup=MPI_COMM_NULL;
@@ -853,7 +853,7 @@ H5FD_mpiposix_open(const char *name, unsigned flags, hid_t fapl_id,
hint.fr.structType = GPFS_FREE_RANGE;
hint.fr.start = 0;
hint.fr.length = 0;
-
+
if (gpfs_fcntl(fd, &hint)<0)
HGOTO_ERROR(H5E_FILE, H5E_FCNTL, NULL, "failed to send hints to GPFS")
}
@@ -1167,26 +1167,26 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_mpiposix_get_handle
- *
+ *
* Purpose: Returns the file handle of MPI-POSIX file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5FD_mpiposix_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_mpiposix_t *file = (H5FD_mpiposix_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_mpiposix_get_handle, FAIL)
-
+
if(!file_handle)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "file handle not valid")
@@ -1276,7 +1276,7 @@ H5FD_mpiposix_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id,
addr += (haddr_t)nbytes;
buf = (char*)buf + nbytes;
}
-
+
/* Update current position */
file->pos = addr;
file->op = OP_READ;
@@ -1336,13 +1336,13 @@ H5FD_mpiposix_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
assert(buf);
/* Check for overflow conditions */
- if (HADDR_UNDEF==addr)
+ if (HADDR_UNDEF==addr)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "addr undefined")
if (REGION_OVERFLOW(addr, size))
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
if (addr+size>file->eoa)
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
-
+
/* Obtain the data transfer properties */
if(NULL == (plist = H5I_object(dxpl_id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
@@ -1407,7 +1407,7 @@ H5FD_mpiposix_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
}
#endif /* H5_HAVE_GPFS */
}
-
+
/* Seek to the correct location */
if ((addr!=file->pos || OP_WRITE!=file->op) &&
file_seek(file->fd, (file_offset_t)addr, SEEK_SET)<0)
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index 0289096..b6c94d9 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -77,10 +77,10 @@
#define ALL_MEMBERS(LOOPVAR) { \
H5FD_mem_t LOOPVAR; \
for (LOOPVAR=H5FD_MEM_DEFAULT; LOOPVAR<H5FD_MEM_NTYPES; LOOPVAR=(H5FD_mem_t)(LOOPVAR+1)) {
-
+
#define END_MEMBERS }}
-
+
/* The driver identification number, initialized at runtime */
static hid_t H5FD_MULTI_g = 0;
@@ -381,7 +381,7 @@ H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id,
* `o' (H5FD_MEM_OHDR).
*
* memb_addr: The value HADDR_UNDEF for each element.
- *
+ *
*
* Example: To set up a multi file access property list which partitions
* data into meta and raw files each being 1/2 of the address
@@ -410,7 +410,7 @@ H5Pset_fapl_split(hid_t fapl, const char *meta_ext, hid_t meta_plist_id,
* hid_t fapl = H5Pcreate(H5P_FILE_ACCESS);
* H5Pset_fapl_multi(fapl, memb_map, memb_fapl,
* memb_name, memb_addr, TRUE);
- *
+ *
*
* Return: Success: Non-negative
*
@@ -440,15 +440,15 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
haddr_t _memb_addr[H5FD_MEM_NTYPES];
static const char *letters = "Xsbrglo";
static const char *func="H5FDset_fapl_multi"; /* Function Name for error reporting */
-
+
/*NO TRACE*/
-
+
/* Clear the error stack */
H5Eclear();
/* Check arguments and supply default values */
if(H5I_GENPROP_LST != H5Iget_type(fapl_id) ||
- TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
+ TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
H5Epush_ret(func, H5E_PLIST, H5E_BADVALUE, "not an access list", -1)
if (!memb_map) {
for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1))
@@ -473,7 +473,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
_memb_addr[mt] = (mt?mt-1:0) * HADDR_MAX/H5FD_MEM_NTYPES;
memb_addr = _memb_addr;
}
-
+
for (mt=H5FD_MEM_DEFAULT; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1)) {
/* Map usage type */
mmt = memb_map[mt];
@@ -492,7 +492,7 @@ H5Pset_fapl_multi(hid_t fapl_id, const H5FD_mem_t *memb_map,
if (!memb_name[mmt] || !memb_name[mmt][0])
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "file resource type not set", -1)
}
-
+
/*
* Initialize driver specific information. No need to copy it into the FA
* struct since all members will be copied by H5Pset_driver().
@@ -541,14 +541,14 @@ H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map/*out*/,
H5FD_multi_fapl_t *fa;
H5FD_mem_t mt;
static const char *func="H5FDget_fapl_multi"; /* Function Name for error reporting */
-
+
/*NO TRACE*/
/* Clear the error stack */
H5Eclear();
if(H5I_GENPROP_LST != H5Iget_type(fapl_id) ||
- TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
+ TRUE != H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
H5Epush_ret(func, H5E_PLIST, H5E_BADTYPE, "not an access list", -1)
if (H5FD_MULTI!=H5Pget_driver(fapl_id))
H5Epush_ret(func, H5E_PLIST, H5E_BADVALUE, "incorrect VFL driver", -1)
@@ -578,7 +578,7 @@ H5Pget_fapl_multi(hid_t fapl_id, H5FD_mem_t *memb_map/*out*/,
memcpy(memb_addr, fa->memb_addr, H5FD_MEM_NTYPES*sizeof(haddr_t));
if (relax)
*relax = fa->relax;
-
+
return 0;
}
@@ -717,7 +717,7 @@ H5FD_multi_sb_size(H5FD_t *_file)
UNIQUE_MEMBERS(file->fa.memb_map, mt) {
nseen++;
} END_MEMBERS;
-
+
/* Addresses and EOA markers */
nbytes += nseen * 2 * 8;
@@ -866,7 +866,7 @@ H5FD_multi_sb_decode(H5FD_t *_file, const char *name, const unsigned char *buf)
memb_eoa[mt] = HADDR_UNDEF;
memb_name[mt] = NULL;
} END_MEMBERS;
-
+
/*
* Read the map and count the unique members.
*/
@@ -924,7 +924,7 @@ H5FD_multi_sb_decode(H5FD_t *_file, const char *name, const unsigned char *buf)
ALL_MEMBERS(mt) {
file->fa.memb_map[mt] = map[mt];
} END_MEMBERS;
-
+
/* Close files which are unused now */
memset(in_use, 0, sizeof in_use);
UNIQUE_MEMBERS(map, mt) {
@@ -1026,7 +1026,7 @@ H5FD_multi_fapl_copy(const void *_old_fa)
H5FD_mem_t mt;
int nerrors = 0;
static const char *func="H5FD_multi_fapl_copy"; /* Function Name for error reporting */
-
+
assert(new_fa);
/* Clear the error stack */
@@ -1120,7 +1120,7 @@ H5FD_multi_dxpl_copy(const void *_old_dx)
H5FD_mem_t mt;
int nerrors = 0;
static const char *func="H5FD_multi_dxpl_copy"; /* Function Name for error reporting */
-
+
assert(new_dx);
/* Clear the error stack */
@@ -1206,7 +1206,7 @@ H5FD_multi_open(const char *name, unsigned flags, hid_t fapl_id,
H5FD_multi_fapl_t *fa;
H5FD_mem_t m;
static const char *func="H5FD_multi_open"; /* Function Name for error reporting */
-
+
/* Clear the error stack */
H5Eclear();
@@ -1499,7 +1499,7 @@ H5FD_multi_set_eoa(H5FD_t *_file, haddr_t eoa)
if (status<0)
H5Epush_ret(func, H5E_FILE, H5E_BADVALUE, "member H5FDset_eoa failed", -1)
}
-
+
/* Save new eoa for return later */
file->eoa = eoa;
return 0;
@@ -1543,7 +1543,7 @@ H5FD_multi_get_eof(H5FD_t *_file)
if (HADDR_UNDEF==tmp)
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "member file has unknown eof", HADDR_UNDEF)
if (tmp>0) tmp += file->fa.memb_addr[mt];
-
+
} else if (file->fa.relax) {
/*
* The member is not open yet (maybe it doesn't exist). Make the
@@ -1551,27 +1551,27 @@ H5FD_multi_get_eof(H5FD_t *_file)
*/
tmp = file->memb_next[mt];
assert(HADDR_UNDEF!=tmp);
-
+
} else {
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "bad eof", HADDR_UNDEF)
}
if (tmp>eof) eof = tmp;
} END_MEMBERS;
-
+
return MAX(file->eoa, eof);
}
/*-------------------------------------------------------------------------
* Function: H5FD_multi_get_handle
- *
+ *
* Purpose: Returns the file handle of MULTI file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
- * Programmer: Raymond Lu
- * Sept. 16, 2002
+ *
+ * Programmer: Raymond Lu
+ * Sept. 16, 2002
*
* Modifications:
*
@@ -1579,7 +1579,7 @@ H5FD_multi_get_eof(H5FD_t *_file)
*/
static herr_t
H5FD_multi_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
-{
+{
H5FD_multi_t *file = (H5FD_multi_t *)_file;
H5FD_mem_t type, mmt;
static const char *func="H5FD_multi_get_handle"; /* Function Name for error reporting */
@@ -1591,7 +1591,7 @@ H5FD_multi_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "data type is out of range", -1)
mmt = file->fa.memb_map[type];
if(H5FD_MEM_DEFAULT==mmt) mmt = type;
-
+
return (H5FDget_vfd_handle(file->memb[mmt], fapl, file_handle));
}
@@ -1622,7 +1622,7 @@ H5FD_multi_alloc(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, hsize_t size)
mmt = file->fa.memb_map[type];
if (H5FD_MEM_DEFAULT==mmt) mmt = type;
-
+
if (HADDR_UNDEF==(addr=H5FDalloc(file->memb[mmt], type, dxpl_id, size)))
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "member file can't alloc", HADDR_UNDEF)
addr += file->fa.memb_addr[mmt];
@@ -1658,7 +1658,7 @@ H5FD_multi_free(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, hsi
mmt = file->fa.memb_map[type];
if (H5FD_MEM_DEFAULT==mmt) mmt = type;
-
+
assert(addr>=file->fa.memb_addr[mmt]);
assert(addr+size<=file->memb_next[mmt]);
return H5FDfree(file->memb[mmt], type, dxpl_id, addr-file->fa.memb_addr[mmt], size);
@@ -1700,7 +1700,7 @@ H5FD_multi_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
if (H5P_FILE_ACCESS_DEFAULT!=dxpl_id && H5FD_MULTI==H5Pget_driver(dxpl_id)) {
dx = H5Pget_driver_info(dxpl_id);
}
-
+
/* Find the file to which this address belongs */
for (mt=H5FD_MEM_SUPER; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1)) {
mmt = file->fa.memb_map[mt];
@@ -1755,7 +1755,7 @@ H5FD_multi_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, si
if (H5P_FILE_ACCESS_DEFAULT!=dxpl_id && H5FD_MULTI==H5Pget_driver(dxpl_id)) {
dx = H5Pget_driver_info(dxpl_id);
}
-
+
/* Find the file to which this address belongs */
for (mt=H5FD_MEM_SUPER; mt<H5FD_MEM_NTYPES; mt=(H5FD_mem_t)(mt+1)) {
mmt = file->fa.memb_map[mt];
@@ -1802,7 +1802,7 @@ H5FD_multi_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
#if 0
H5FD_mem_t mmt;
-
+
/* Debugging stuff... */
fprintf(stderr, "multifile access information:\n");
@@ -1819,7 +1819,7 @@ H5FD_multi_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
fprintf(stderr, " File Starting Allocated Next Member\n");
fprintf(stderr, " Number Address Size Address Name\n");
fprintf(stderr, " ------ -------------------- -------------------- -------------------- ------------------------------\n");
-
+
for (mt=1; mt<H5FD_MEM_NTYPES; mt++) {
if (HADDR_UNDEF!=file->memb_addr[mt]) {
haddr_t eoa = H5FDget_eoa(file->memb[mt]);
@@ -1845,7 +1845,7 @@ H5FD_multi_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing)
}
if (nerrors)
H5Epush_ret(func, H5E_INTERNAL, H5E_BADVALUE, "error flushing member files", -1)
-
+
return 0;
}
@@ -1876,7 +1876,7 @@ compute_next(H5FD_multi_t *file)
ALL_MEMBERS(mt) {
file->memb_next[mt] = HADDR_UNDEF;
} END_MEMBERS;
-
+
UNIQUE_MEMBERS(file->fa.memb_map, mt1) {
UNIQUE_MEMBERS(file->fa.memb_map, mt2) {
if (file->fa.memb_addr[mt1]<file->fa.memb_addr[mt2] &&
@@ -1889,7 +1889,7 @@ compute_next(H5FD_multi_t *file)
file->memb_next[mt1] = HADDR_MAX; /*last member*/
}
} END_MEMBERS;
-
+
return 0;
}
@@ -1916,7 +1916,7 @@ open_members(H5FD_multi_t *file)
char tmp[1024];
int nerrors=0;
static const char *func="(H5FD_multi)open_members"; /* Function Name for error reporting */
-
+
/* Clear the error stack */
H5Eclear();
diff --git a/src/H5FDpublic.h b/src/H5FDpublic.h
index ba762db..938a4b7 100644
--- a/src/H5FDpublic.h
+++ b/src/H5FDpublic.h
@@ -102,7 +102,7 @@ typedef enum H5FD_mem_t {
* the library will attempt to cache metadata as it is written to the file
* and build up a larger block of metadata to eventually pass to the VFL
* 'write' routine.
- *
+ *
* Distinguish between updating the metadata accumulator on writes and
* reads. This is particularly (perhaps only, even) important for MPI-I/O
* where we guarantee that writes are collective, but reads may not be.
@@ -126,7 +126,7 @@ typedef enum H5FD_mem_t {
* and then sub-allocate "small" raw data requests from that larger block.
*/
#define H5FD_FEAT_AGGREGATE_SMALLDATA 0x00000010
-
+
/* Forward declaration */
typedef struct H5FD_t H5FD_t;
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index cadc459..e74a593 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -119,7 +119,7 @@ typedef struct H5FD_sec2_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -196,7 +196,7 @@ NAME
H5FD_sec2_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_sec2_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -280,7 +280,7 @@ H5FD_sec2_term(void)
* Purpose: Modify the file access property list to use the H5FD_SEC2
* driver defined in this source file. There are no driver
* specific properties.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -298,7 +298,7 @@ H5Pset_fapl_sec2(hid_t fapl_id)
FUNC_ENTER_API(H5Pset_fapl_sec2, FAIL)
H5TRACE1("e","i",fapl_id);
-
+
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list")
@@ -632,27 +632,27 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_sec2_get_handle
- *
+ *
* Purpose: Returns the file handle of sec2 file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
-static herr_t
+static herr_t
H5FD_sec2_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_sec2_t *file = (H5FD_sec2_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_sec2_get_handle, FAIL)
-
+
if(!file_handle)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "file handle not valid")
*file_handle = &(file->fd);
@@ -689,7 +689,7 @@ H5FD_sec2_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
H5FD_sec2_t *file = (H5FD_sec2_t*)_file;
ssize_t nbytes;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_sec2_read, FAIL)
assert(file && file->pub.cls);
@@ -731,7 +731,7 @@ H5FD_sec2_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
addr += (haddr_t)nbytes;
buf = (char*)buf + nbytes;
}
-
+
/* Update current position */
file->pos = addr;
file->op = OP_READ;
@@ -773,20 +773,20 @@ H5FD_sec2_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, had
H5FD_sec2_t *file = (H5FD_sec2_t*)_file;
ssize_t nbytes;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5FD_sec2_write, FAIL)
assert(file && file->pub.cls);
assert(buf);
/* Check for overflow conditions */
- if (HADDR_UNDEF==addr)
+ if (HADDR_UNDEF==addr)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "addr undefined")
if (REGION_OVERFLOW(addr, size))
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
if (addr+size>file->eoa)
HGOTO_ERROR(H5E_ARGS, H5E_OVERFLOW, FAIL, "addr overflow")
-
+
/* Seek to the correct location */
if ((addr!=file->pos || OP_WRITE!=file->op) &&
file_seek(file->fd, (file_offset_t)addr, SEEK_SET)<0)
@@ -810,7 +810,7 @@ H5FD_sec2_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, had
addr += (haddr_t)nbytes;
buf = (const char*)buf + nbytes;
}
-
+
/* Update current position and eof */
file->pos = addr;
file->op = OP_WRITE;
diff --git a/src/H5FDsrb.c b/src/H5FDsrb.c
index 15faa15..8c16884 100644
--- a/src/H5FDsrb.c
+++ b/src/H5FDsrb.c
@@ -71,7 +71,7 @@ static hid_t H5FD_SRB_g = 0;
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -107,7 +107,7 @@ static herr_t H5FD_srb_write(H5FD_t *_file, H5FD_mem_t type, hid_t fapl_id, had
size_t size, const void *buf);
static herr_t H5FD_srb_flush(H5FD_t *_file, hid_t dxpl_id, unsigned closing);
-/* The description of a file belonging to this driver. */
+/* The description of a file belonging to this driver. */
typedef struct H5FD_srb_t {
H5FD_t pub; /*public stuff, must be first */
int fd; /*file descriptor */
@@ -115,7 +115,7 @@ typedef struct H5FD_srb_t {
SRB_Info info; /*file information */
haddr_t eoa; /*end of allocated region */
haddr_t eof; /*end of file; current file size*/
- haddr_t pos; /*current file I/O position */
+ haddr_t pos; /*current file I/O position */
} H5FD_srb_t;
/* SRB-specific file access properties */
@@ -163,7 +163,7 @@ NAME
H5FD_srb_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_srb_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -196,7 +196,7 @@ H5FD_srb_init_interface(void)
*
*-------------------------------------------------------------------------
*/
-hid_t
+hid_t
H5FD_srb_init(void)
{
hid_t ret_value=H5FD_SRB_g; /* Return value */
@@ -243,10 +243,10 @@ H5FD_srb_term(void)
/*-------------------------------------------------------------------------
* Function: H5Pset_fapl_srb
*
- * Purpose: Store srb connection(client to server) handler SRB_CONN
- * after connected and user supplied INFO in the file access
+ * Purpose: Store srb connection(client to server) handler SRB_CONN
+ * after connected and user supplied INFO in the file access
* property list FAPL_ID, which can be used to create or open
- * file.
+ * file.
*
* Return: Success: Non-negative
*
@@ -259,14 +259,14 @@ H5FD_srb_term(void)
*
* Raymond Lu, 2001-10-25
* Use the new generic property list for argument checking.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
H5Pset_fapl_srb(hid_t fapl_id, SRB_Info info)
{
H5FD_srb_fapl_t fa;
- int srb_status;
+ int srb_status;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value;
@@ -288,7 +288,7 @@ H5Pset_fapl_srb(hid_t fapl_id, SRB_Info info)
fa.info = info;
ret_value = H5P_set_driver(plist, H5FD_SRB, &fa);
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -298,8 +298,8 @@ done:
* Function: H5Pget_fapl_srb
*
* Purpose: If the file access property list is set to the H5FD_SRB
- * driver then this function returns the srb file INFO.
- *
+ * driver then this function returns the srb file INFO.
+ *
* Return: Success: File INFO is returned.
* Failure: Negative
*
@@ -311,7 +311,7 @@ done:
* Raymond Lu, 2001-10-25
* Use the new generic property list for checking property list
* ID.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -382,7 +382,7 @@ H5FD_srb_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
if(NULL == (plist = H5P_object_verify(fapl_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access property list")
if(H5P_FILE_ACCESS_DEFAULT==fapl_id || H5FD_SRB!=H5P_get_driver(plist)) {
- HDmemset((void*)&_fa, 0, sizeof(H5FD_srb_fapl_t));
+ HDmemset((void*)&_fa, 0, sizeof(H5FD_srb_fapl_t));
fa = &_fa;
}
else {
@@ -393,39 +393,39 @@ H5FD_srb_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
/* When I come down here, the possible flag values and the correct
* responses are given here :-
*
- * 1. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_EXCL : The file is
- * a new one. Go ahead and open it with srbObjCreate.
+ * 1. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_EXCL : The file is
+ * a new one. Go ahead and open it with srbObjCreate.
* 2. H5F_ACC_CREAT | H5F_ACC_RDWR | H5F_ACC_TRUNC : how do I handle this?
- * srbObjCreate doesn't support truncate while srbObjOpen doesn't
+ * srbObjCreate doesn't support truncate while srbObjOpen doesn't
* support create. Try to call both srbFileCreate and srbFileOpen!
* 3. H5F_ACC_RDWR | H5F_ACC_TRUNC : Use O_RDWR | O_TRUNC with srbObjOpen.
* 4. H5F_ACC_RDWR : Use O_RDWR with srbObjOpen.
- * 5. Flag is not set : Use O_RDONLY with srbObjOpen.
+ * 5. Flag is not set : Use O_RDONLY with srbObjOpen.
*
- * (In srbObjOpen, O_CREATE is not supported. For file creation, use
+ * (In srbObjOpen, O_CREATE is not supported. For file creation, use
* srbObjCreate.)
- */
+ */
- if((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) &&
+ if((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) &&
(flags & H5F_ACC_EXCL))
- srb_fid = srbFileCreate(fa->srb_conn, fa->info.storSysType,
- fa->info.srbHost, name, fa->info.mode, fa->info.size);
- else if((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) &&
+ srb_fid = srbFileCreate(fa->srb_conn, fa->info.storSysType,
+ fa->info.srbHost, name, fa->info.mode, fa->info.size);
+ else if((flags & H5F_ACC_CREAT) && (flags & H5F_ACC_RDWR) &&
(flags & H5F_ACC_TRUNC)) {
- if( (srb_fid = srbFileCreate(fa->srb_conn, fa->info.storSysType,
+ if( (srb_fid = srbFileCreate(fa->srb_conn, fa->info.storSysType,
fa->info.srbHost, name, fa->info.mode, fa->info.size)) < 0 ) {
- srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
+ srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
fa->info.srbHost, name, O_RDWR|O_TRUNC, fa->info.mode);
- }
+ }
}
else if((flags & H5F_ACC_RDWR) && (flags & H5F_ACC_TRUNC))
- srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
+ srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
fa->info.srbHost, name, O_RDWR|O_TRUNC, fa->info.mode);
else if(flags & H5F_ACC_RDWR)
- srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
+ srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
fa->info.srbHost, name, O_RDWR, fa->info.mode);
else
- srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
+ srb_fid = srbFileOpen(fa->srb_conn, fa->info.storSysType,
fa->info.srbHost, name, O_RDONLY, fa->info.mode);
@@ -433,7 +433,7 @@ H5FD_srb_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
#ifdef OLD_WAY
fprintf(stderr, "cannot open file %s\n", name);
fprintf(stderr,"%s",clErrorMessage(fa->srb_conn));
- clFinish(fa->srb_conn);
+ clFinish(fa->srb_conn);
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, NULL, "cannot open file")
#else /* OLD_WAY */
HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, NULL, clErrorMessage(fa->srb_conn))
@@ -444,7 +444,7 @@ H5FD_srb_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
&srb_stat)!=0) {
#ifdef OLD_WAY
srbFileClose(fa->srb_conn, srb_fid);
- clFinish(fa->srb_conn);
+ clFinish(fa->srb_conn);
HGOTO_ERROR(H5E_IO, H5E_BADFILE, NULL, "SRB file stat failed")
#else /* OLD_WAY */
HGOTO_ERROR(H5E_IO, H5E_BADFILE, NULL, "SRB file stat failed")
@@ -466,7 +466,7 @@ H5FD_srb_open(const char *name, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
done:
if(ret_value==NULL) {
if(fa!=NULL)
- clFinish(fa->srb_conn);
+ clFinish(fa->srb_conn);
if(srb_fid>=0)
srbFileClose(fa->srb_conn, srb_fid);
} /* end if */
@@ -567,7 +567,7 @@ H5FD_srb_get_eoa(H5FD_t *_file)
FUNC_ENTER_NOAPI(H5FD_srb_get_eoa, HADDR_UNDEF)
/* Set return value */
- ret_value=file->eoa;
+ ret_value=file->eoa;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -632,7 +632,7 @@ H5FD_srb_get_eof(H5FD_t *_file)
FUNC_ENTER_NOAPI(H5FD_srb_get_eof, HADDR_UNDEF)
/* Set return value */
- ret_value=file->eof;
+ ret_value=file->eof;
done:
FUNC_LEAVE_NOAPI(ret_value)
@@ -641,24 +641,24 @@ done:
/*-------------------------------------------------------------------------
* Function: H5FD_srb_get_handle
- *
+ *
* Purpose: Returns the file handle of SRB file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5FD_srb_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
-{
+{
H5FD_srb_t *file = (H5FD_srb_t *)_file;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5FD_srb_get_eof, FAIL)
if(!file_handle)
@@ -686,7 +686,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5FD_srb_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr_t addr,
+H5FD_srb_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr_t addr,
size_t size, void *buf)
{
H5FD_srb_t *file = (H5FD_srb_t*)_file;
@@ -727,7 +727,7 @@ H5FD_srb_read(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr
/* Update current position */
file->pos = addr;
-
+
done:
if(ret_value<0) {
/* Reset file position */
@@ -735,7 +735,7 @@ done:
/* Close connection, etc. */
srbFileClose(file->srb_conn, file->fd);
- clFinish(file->srb_conn);
+ clFinish(file->srb_conn);
} /* end if */
FUNC_LEAVE_NOAPI(ret_value)
@@ -758,7 +758,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5FD_srb_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr_t addr,
+H5FD_srb_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, haddr_t addr,
size_t size, const void *buf)
{
H5FD_srb_t *file = (H5FD_srb_t*)_file;
@@ -782,8 +782,8 @@ H5FD_srb_write(H5FD_t *_file, H5FD_mem_t UNUSED type, hid_t UNUSED dxpl_id, hadd
while(size>0) {
if( (nbytes=srbFileWrite(file->srb_conn, (int)file->fd, (char*)buf, size)) < 0 )
HGOTO_ERROR(H5E_IO, H5E_WRITEERROR, FAIL, "srb file write failed")
-
- size -= nbytes;
+
+ size -= nbytes;
addr += (haddr_t)nbytes;
buf = (const char*)buf + nbytes;
}
@@ -800,7 +800,7 @@ done:
/* Close connection, etc. */
srbFileClose(file->srb_conn, file->fd);
- clFinish(file->srb_conn);
+ clFinish(file->srb_conn);
} /* end if */
FUNC_LEAVE_NOAPI(ret_value)
@@ -834,7 +834,7 @@ H5FD_srb_flush(H5FD_t *_file, hid_t dxpl_id, unsigned UNUSED closing)
done:
if(ret_value<0) {
srbFileClose(file->srb_conn, file->fd);
- clFinish(file->srb_conn);
+ clFinish(file->srb_conn);
} /* end if */
FUNC_LEAVE_NOAPI(ret_value)
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index c144476..00966c8 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -114,7 +114,7 @@ typedef struct H5FD_stdio_t {
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -253,7 +253,7 @@ H5FD_stdio_term(void)
* Purpose: Modify the file access property list to use the H5FD_STDIO
* driver defined in this source file. There are no driver
* specific properties.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -276,7 +276,7 @@ H5Pset_fapl_stdio(hid_t fapl_id)
if(0 == H5Pisa_class(fapl_id, H5P_FILE_ACCESS))
H5Epush_ret(func, H5E_PLIST, H5E_BADTYPE, "not a file access property list", -1)
-
+
return H5Pset_driver(fapl_id, H5FD_STDIO, NULL);
}
@@ -290,10 +290,10 @@ H5Pset_fapl_stdio(hid_t fapl_id)
*
* Errors:
* IO CANTOPENFILE File doesn't exist and CREAT wasn't
- * specified.
- * IO CANTOPENFILE Fopen failed.
+ * specified.
+ * IO CANTOPENFILE Fopen failed.
* IO FILEEXISTS File exists but CREAT and EXCL were
- * specified.
+ * specified.
*
* Return: Success: A pointer to a new file data structure. The
* public fields will be initialized by the
@@ -401,7 +401,7 @@ H5FD_stdio_open( const char *name, unsigned flags, hid_t fapl_id,
* Purpose: Closes a file.
*
* Errors:
- * IO CLOSEERROR Fclose failed.
+ * IO CLOSEERROR Fclose failed.
*
* Return: Non-negative on success/Negative on failure
*
@@ -621,34 +621,34 @@ H5FD_stdio_get_eof(H5FD_t *_file)
/*-------------------------------------------------------------------------
* Function: H5FD_stdio_get_handle
- *
+ *
* Purpose: Returns the file handle of stdio file driver.
- *
+ *
* Returns: Non-negative if succeed or negative if fails.
- *
+ *
* Programmer: Raymond Lu
* Sept. 16, 2002
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5FD_stdio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
-{
+{
H5FD_stdio_t *file = (H5FD_stdio_t *)_file;
static const char *func="H5FD_stdio_get_handle"; /* Function Name for error reporting */
/* Shut compiler up */
fapl=fapl;
-
+
/* Clear the error stack */
H5Eclear();
*file_handle = &(file->fp);
if(*file_handle==NULL)
H5Epush_ret(func, H5E_IO, H5E_WRITEERROR, "get handle failed", -1)
- return(0);
+ return(0);
}
@@ -660,8 +660,8 @@ H5FD_stdio_get_handle(H5FD_t *_file, hid_t fapl, void** file_handle)
* physical end of file returns zeros instead of failing.
*
* Errors:
- * IO READERROR Fread failed.
- * IO SEEKERROR Fseek failed.
+ * IO READERROR Fread failed.
+ * IO SEEKERROR Fseek failed.
*
* Return: Non-negative on success/Negative on failure
*
@@ -692,7 +692,7 @@ H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
H5Eclear();
/* Check for overflow */
- if (HADDR_UNDEF==addr)
+ if (HADDR_UNDEF==addr)
H5Epush_ret (func, H5E_IO, H5E_OVERFLOW, "file address overflowed", -1)
if (REGION_OVERFLOW(addr, size))
H5Epush_ret (func, H5E_IO, H5E_OVERFLOW, "file address overflowed", -1)
@@ -728,7 +728,7 @@ H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
memset((unsigned char *)buf + size - nbytes, 0, nbytes);
size -= nbytes;
}
-
+
/*
* Read the data. Since we're reading single-byte values, a partial read
* will advance the file position by N. If N is zero or an error
@@ -742,7 +742,7 @@ H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
} else if (n < size) {
memset((unsigned char *)buf + n, 0, (size - n));
}
-
+
/*
* Update the file position data.
*/
@@ -759,8 +759,8 @@ H5FD_stdio_read(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr, siz
* file address ADDR.
*
* Errors:
- * IO SEEKERROR Fseek failed.
- * IO WRITEERROR Fwrite failed.
+ * IO SEEKERROR Fseek failed.
+ * IO WRITEERROR Fwrite failed.
*
* Return: Non-negative on success/Negative on failure
*
@@ -796,7 +796,7 @@ H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
H5Epush_ret (func, H5E_IO, H5E_OVERFLOW, "file address overflowed", -1)
if (addr+size>file->eoa)
H5Epush_ret (func, H5E_IO, H5E_OVERFLOW, "file address overflowed", -1)
-
+
/*
* Seek to the correct file position.
*/
@@ -809,7 +809,7 @@ H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
}
file->pos = addr;
}
-
+
/*
* Write the buffer. On successful return, the file position will be
* advanced by the number of bytes read. Otherwise nobody knows where it
@@ -820,7 +820,7 @@ H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
file->pos = HADDR_UNDEF;
H5Epush_ret(func, H5E_IO, H5E_WRITEERROR, "fwrite failed", -1)
}
-
+
/*
* Update seek optimizing data.
*/
@@ -841,8 +841,8 @@ H5FD_stdio_write(H5FD_t *_file, H5FD_mem_t type, hid_t dxpl_id, haddr_t addr,
* Purpose: Makes sure that all data is on disk.
*
* Errors:
- * IO SEEKERROR fseek failed.
- * IO WRITEERROR fflush or fwrite failed.
+ * IO SEEKERROR fseek failed.
+ * IO WRITEERROR fflush or fwrite failed.
*
* Return: Non-negative on success/Negative on failure
*
diff --git a/src/H5FDstream.c b/src/H5FDstream.c
index 455b3ff..560d472 100644
--- a/src/H5FDstream.c
+++ b/src/H5FDstream.c
@@ -1,7 +1,7 @@
/*
* Copyright © 2000 The author.
* The author prefers this code not be used for military purposes.
- *
+ *
*
* Author: Thomas Radke <tradke@aei-potsdam.mpg.de>
* Tuesday, September 12, 2000
@@ -126,7 +126,7 @@ static const H5FD_stream_fapl_t default_fapl =
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.
- *
+ *
* ADDR_OVERFLOW: Checks whether a file address of type `haddr_t'
* is too large to be represented by the second argument
* of the file seek function.
@@ -207,7 +207,7 @@ NAME
H5FD_stream_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FD_stream_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -300,7 +300,7 @@ H5FD_stream_term(void)
* If a valid socket argument is given this will be used
* by the driver instead of parsing the 'hostname:port' filename
* and opening a socket internally.
- *
+ *
* Return: Success: Non-negative
* Failure: Negative
*
@@ -426,7 +426,7 @@ H5FD_stream_open_socket (const char *filename, int o_flags,
H5FD_STREAM_SOCKET_TYPE sock=H5FD_STREAM_INVALID_SOCKET;
char *hostname=NULL;
unsigned short int first_port;
- const char *separator, *tmp;
+ const char *separator, *tmp;
int on = 1;
H5FD_STREAM_SOCKET_TYPE ret_value=H5FD_STREAM_INVALID_SOCKET;
@@ -446,7 +446,7 @@ H5FD_stream_open_socket (const char *filename, int o_flags,
HGOTO_ERROR(H5E_ARGS,H5E_BADVALUE,H5FD_STREAM_INVALID_SOCKET,"invalid port number")
}
}
-
+
hostname = (char *) H5MM_malloc ((size_t)(separator - filename + 1));
/* Return if out of memory */
@@ -986,7 +986,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5FD_stream_get_handle(H5FD_t *_file, hid_t UNUSED fapl, void** file_handle)
{
H5FD_stream_t *file = (H5FD_stream_t *)_file;
diff --git a/src/H5FDstream.h b/src/H5FDstream.h
index f8aa5a3..0c4b387 100644
--- a/src/H5FDstream.h
+++ b/src/H5FDstream.h
@@ -20,7 +20,7 @@
# define H5FD_STREAM (H5FD_stream_init())
#else
# define H5FD_STREAM (-1)
-#endif /*H5_HAVE_STREAM */
+#endif /*H5_HAVE_STREAM */
#ifdef H5_HAVE_STREAM
diff --git a/src/H5FL.c b/src/H5FL.c
index ff9392a..904e761 100644
--- a/src/H5FL.c
+++ b/src/H5FL.c
@@ -114,7 +114,7 @@ NAME
H5FL_init_interface -- Initialize interface-specific information
USAGE
herr_t H5FL_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -147,7 +147,7 @@ H5FL_init_interface(void)
* Tuesday, August 1, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static void *
@@ -186,7 +186,7 @@ done:
* Friday, March 24, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -232,7 +232,7 @@ done:
* Friday, March 24, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -298,7 +298,7 @@ done:
* Friday, March 24, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -358,7 +358,7 @@ done:
* Monday, December 23, 2002
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -395,7 +395,7 @@ done:
* Tuesday, July 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -404,7 +404,7 @@ H5FL_reg_gc_list(H5FL_reg_head_t *head)
H5FL_reg_node_t *free_list; /* Pointer to nodes in free list being garbage collected */
void *tmp; /* Temporary node pointer */
size_t total_mem; /* Total memory used on list */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_reg_gc_list)
/* Calculate the total memory used on this list */
@@ -454,7 +454,7 @@ H5FL_reg_gc_list(H5FL_reg_head_t *head)
* Modifications:
* Broke into two parts, one for looping over all the free lists and
* another for freeing each list - QAK 7/25/00
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -462,7 +462,7 @@ H5FL_reg_gc(void)
{
H5FL_reg_gc_node_t *gc_node; /* Pointer into the list of things to garbage collect */
herr_t ret_value=SUCCEED; /* return value*/
-
+
FUNC_ENTER_NOAPI_NOINIT(H5FL_reg_gc)
/* Walk through all the free lists, free()'ing the nodes */
@@ -614,7 +614,7 @@ H5FL_blk_find_list(H5FL_blk_node_t **head, size_t size)
temp=temp->next;
} /* end while */
} /* end if */
-
+
FUNC_LEAVE_NOAPI(temp)
} /* end H5FL_blk_find_list() */
@@ -647,7 +647,7 @@ H5FL_blk_create_list(H5FL_blk_node_t **head, size_t size)
/* Allocate room for the new free list node */
if(NULL==(temp=H5FL_MALLOC(H5FL_blk_node_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for chunk info")
-
+
/* Set the correct values for the new free list */
temp->size=size;
temp->list=NULL;
@@ -684,7 +684,7 @@ done:
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -810,7 +810,7 @@ H5FL_blk_malloc(H5FL_blk_head_t *head, size_t size)
} /* end if */
/* No free list available, or there are no nodes on the list, allocate a new node to give to the user */
- else {
+ else {
/* Allocate new node, with room for the page info header and the actual page data */
if(NULL==(temp=H5FL_malloc(sizeof(H5FL_blk_list_t)+size)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for chunk")
@@ -1014,7 +1014,7 @@ done:
* Thursday, March 23, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1023,7 +1023,7 @@ H5FL_blk_gc_list(H5FL_blk_head_t *head)
H5FL_blk_list_t *list; /* The free list of native nodes of a particular size */
void *next; /* Temp. ptr to the free list list node */
void *temp; /* Temp. ptr to the free list page node */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_blk_gc_list)
/* Loop through all the nodes in the block free list queue */
@@ -1078,7 +1078,7 @@ H5FL_blk_gc_list(H5FL_blk_head_t *head)
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1086,7 +1086,7 @@ H5FL_blk_gc(void)
{
H5FL_blk_gc_node_t *gc_node; /* Pointer into the list of things to garbage collect */
herr_t ret_value=SUCCEED; /* return value*/
-
+
FUNC_ENTER_NOAPI_NOINIT(H5FL_blk_gc)
/* Walk through all the free lists, free()'ing the nodes */
@@ -1134,7 +1134,7 @@ H5FL_blk_term(void)
H5FL_blk_gc_node_t *tmp; /* Temporary pointer to a garbage collection node */
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_blk_term)
-
+
/* Free the nodes on the garbage collection list, keeping nodes with allocations outstanding */
left=NULL;
while(H5FL_blk_gc_head.first!=NULL) {
@@ -1164,7 +1164,7 @@ printf("H5FL_blk_term: head->name=%s, head->allocated=%d\n", H5FL_blk_gc_head.fi
/* Point to the list of nodes left with allocations open, if any */
H5FL_blk_gc_head.first=left;
-
+
FUNC_LEAVE_NOAPI(H5FL_blk_gc_head.first!=NULL ? 1 : 0)
} /* end H5FL_blk_term() */
@@ -1182,7 +1182,7 @@ printf("H5FL_blk_term: head->name=%s, head->allocated=%d\n", H5FL_blk_gc_head.fi
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1212,7 +1212,7 @@ H5FL_arr_init(H5FL_arr_head_t *head)
/* Initialize the size of each array */
for(u = 0; u<(size_t)head->maxelem; u++)
head->list_arr[u].size = head->base_size + (head->elem_size * u);
-
+
/* Indicate that the free list is initialized */
head->init=1;
@@ -1233,7 +1233,7 @@ done:
* Friday, March 24, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1309,7 +1309,7 @@ done:
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1384,7 +1384,7 @@ done:
* Monday, December 23, 2002
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1422,7 +1422,7 @@ done:
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1483,7 +1483,7 @@ done:
* Tuesday, July 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1493,7 +1493,7 @@ H5FL_arr_gc_list(H5FL_arr_head_t *head)
void *tmp; /* Temporary node pointer */
unsigned u; /* Counter for array of free lists */
size_t total_mem; /* Total memory used on list */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_arr_gc_list)
/* Walk through the array of free lists */
@@ -1545,7 +1545,7 @@ H5FL_arr_gc_list(H5FL_arr_head_t *head)
* Saturday, March 25, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1553,7 +1553,7 @@ H5FL_arr_gc(void)
{
H5FL_gc_arr_node_t *gc_arr_node; /* Pointer into the list of things to garbage collect */
herr_t ret_value=SUCCEED; /* return value*/
-
+
FUNC_ENTER_NOAPI_NOINIT(H5FL_arr_gc)
/* Walk through all the free lists, free()'ing the nodes */
@@ -1599,7 +1599,7 @@ H5FL_arr_term(void)
{
H5FL_gc_arr_node_t *left; /* pointer to garbage collection lists with work left */
H5FL_gc_arr_node_t *tmp; /* Temporary pointer to a garbage collection node */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_arr_term)
/* Free the nodes on the garbage collection list, keeping nodes with allocations outstanding */
@@ -1633,7 +1633,7 @@ printf("H5FL_arr_term: head->name=%s, head->allocated=%d\n", H5FL_arr_gc_head.fi
/* Point to the list of nodes left with allocations open, if any */
H5FL_arr_gc_head.first=left;
-
+
FUNC_LEAVE_NOAPI(H5FL_arr_gc_head.first!=NULL ? 1 : 0)
} /* end H5FL_arr_term() */
@@ -1650,7 +1650,7 @@ printf("H5FL_arr_term: head->name=%s, head->allocated=%d\n", H5FL_arr_gc_head.fi
* Saturday, April 3, 2004
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1684,7 +1684,7 @@ H5FL_seq_free(H5FL_seq_head_t *head, void *obj)
* Saturday, April 3, 2004
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1718,7 +1718,7 @@ done:
* Saturday, April 3, 2004
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1752,7 +1752,7 @@ done:
* Saturday, April 3, 2004
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -1786,7 +1786,7 @@ done:
* Friday, March 24, 2000
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -1842,7 +1842,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-herr_t
+herr_t
H5FL_set_free_list_limits(int reg_global_lim, int reg_list_lim, int arr_global_lim,
int arr_list_lim, int blk_global_lim, int blk_list_lim)
{
@@ -1892,7 +1892,7 @@ int
H5FL_term_interface(void)
{
int ret_value=0;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5FL_term_interface)
/* Garbage collect any nodes on the free lists */
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h
index d04325c..0f22c8a 100644
--- a/src/H5FLprivate.h
+++ b/src/H5FLprivate.h
@@ -133,7 +133,7 @@ typedef struct H5FL_blk_head_t {
} H5FL_blk_head_t;
/*
- * Macros for defining & using priority queues
+ * Macros for defining & using priority queues
*/
#define H5FL_BLK_NAME(t) H5_##t##_blk_free_list
#ifndef H5_NO_BLK_FREE_LISTS
diff --git a/src/H5FS.c b/src/H5FS.c
index 58817b8..63928dd 100644
--- a/src/H5FS.c
+++ b/src/H5FS.c
@@ -16,7 +16,7 @@
* Purpose: Provides internal function tracing in the form of a stack.
* The FUNC_ENTER() macro adds the function name to the function
* stack whenever a function is entered.
- * As the functions return with FUNC_LEAVE,
+ * As the functions return with FUNC_LEAVE,
* entries are removed from the stack.
*
* A function stack has a fixed maximum size. If this size is
@@ -112,10 +112,10 @@ H5FS_print(FILE *stream)
H5FS_t *fstack = H5FS_get_my_stack (); /* Get the correct function stack */
const int indent = 2; /* Indention level */
int i; /* Local index ariable */
-
+
/* Don't push this function on the function stack... :-) */
FUNC_ENTER_NOAPI_NOFUNC_NOFS(H5FS_print);
-
+
/* Sanity check */
assert(fstack);
@@ -136,7 +136,7 @@ H5FS_print(FILE *stream)
for (i=fstack->nused-1; i>=0; --i)
HDfprintf(stream, "%*s#%03d: Routine: %s\n", indent, "", i, fstack->slot[i]);
-
+
FUNC_LEAVE_NOAPI_NOFS(SUCCEED);
} /* end H5FS_print() */
@@ -160,7 +160,7 @@ herr_t
H5FS_push(const char *func_name)
{
H5FS_t *fstack = H5FS_get_my_stack ();
-
+
/* Don't push this function on the function stack... :-) */
FUNC_ENTER_NOAPI_NOFUNC_NOFS(H5FS_push);
@@ -174,7 +174,7 @@ H5FS_push(const char *func_name)
if (fstack->nused<H5FS_NSLOTS)
fstack->slot[fstack->nused] = func_name;
fstack->nused++;
-
+
FUNC_LEAVE_NOAPI_NOFS(SUCCEED);
} /* end H5FS_push() */
@@ -197,7 +197,7 @@ herr_t
H5FS_pop(void)
{
H5FS_t *fstack = H5FS_get_my_stack ();
-
+
/* Don't push this function on the function stack... :-) */
FUNC_ENTER_NOAPI_NOFUNC_NOFS(H5FS_pop);
@@ -207,7 +207,7 @@ H5FS_pop(void)
/* Pop the function. */
fstack->nused--;
-
+
FUNC_LEAVE_NOAPI_NOFS(SUCCEED);
} /* end H5FS_pop() */
diff --git a/src/H5Fdbg.c b/src/H5Fdbg.c
index ee42963..4048ba0 100644
--- a/src/H5Fdbg.c
+++ b/src/H5Fdbg.c
@@ -46,7 +46,7 @@
* Modifications:
* Robb Matzke, 1999-07-28
* The ADDR argument is passed by value.
- *
+ *
* Raymond Lu, 2001-10-14
* Changed to the new generic property list.
*
diff --git a/src/H5Fmount.c b/src/H5Fmount.c
index 18feb9c..0bff83b 100644
--- a/src/H5Fmount.c
+++ b/src/H5Fmount.c
@@ -35,7 +35,7 @@ NAME
H5F_init_mount_interface -- Initialize interface-specific information
USAGE
herr_t H5F_init_mount_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -71,7 +71,7 @@ H5F_close_mounts(H5F_t *f)
{
unsigned u; /* Local index */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_close_mounts, FAIL)
HDassert(f);
@@ -132,7 +132,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
H5G_entry_t mp_open_ent; /* entry of moint point to be opened */
H5RS_str_t *name_r; /* Ref-counted version of name */
herr_t ret_value = SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_mount)
assert(loc);
@@ -161,7 +161,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
if(parent->shared->fc_degree != child->shared->fc_degree)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mounted file has different file close degree than parent")
-
+
/*
* Use a binary search to locate the position that the child should be
* inserted into the parent mount table. At the end of this paragraph
@@ -184,7 +184,7 @@ H5F_mount(H5G_entry_t *loc, const char *name, H5F_t *child,
md++;
if (!cmp)
HGOTO_ERROR(H5E_FILE, H5E_MOUNT, FAIL, "mount point is already in use")
-
+
/* Make room in the table */
if (parent->mtab.nmounts>=parent->mtab.nalloc) {
unsigned n = MAX(16, 2*parent->mtab.nalloc);
@@ -249,7 +249,7 @@ done:
*
* Pedro Vicente, <pvn@ncsa.uiuc.edu> 22 Aug 2002
* Added `id to name' support.
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -265,7 +265,7 @@ H5F_unmount(H5G_entry_t *loc, const char *name, hid_t dxpl_id)
H5G_entry_t mnt_open_ent; /* entry used to open mount point*/
int child_idx; /* Index of child in parent's mtab */
herr_t ret_value = SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_unmount)
assert(loc);
@@ -391,7 +391,7 @@ H5F_mountpoint(H5G_entry_t *find/*in,out*/)
int cmp;
H5G_entry_t *ent = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_mountpoint, FAIL)
assert(find);
@@ -432,7 +432,7 @@ H5F_mountpoint(H5G_entry_t *find/*in,out*/)
parent = ent->file;
}
} while (!cmp);
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -457,7 +457,7 @@ htri_t
H5F_has_mount(const H5F_t *file)
{
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_has_mount, FAIL)
assert(file);
@@ -466,7 +466,7 @@ H5F_has_mount(const H5F_t *file)
ret_value=TRUE;
else
ret_value=FALSE;
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_has_mount() */
@@ -491,7 +491,7 @@ htri_t
H5F_is_mount(const H5F_t *file)
{
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_is_mount, FAIL)
assert(file);
@@ -500,7 +500,7 @@ H5F_is_mount(const H5F_t *file)
ret_value=TRUE;
else
ret_value=FALSE;
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5F_is_mount() */
@@ -527,7 +527,7 @@ H5Fmount(hid_t loc_id, const char *name, hid_t child_id, hid_t plist_id)
H5G_entry_t *loc = NULL;
H5F_t *child = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Fmount, FAIL)
H5TRACE4("e","isii",loc_id,name,child_id,plist_id);
@@ -579,7 +579,7 @@ H5Funmount(hid_t loc_id, const char *name)
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Funmount, FAIL)
H5TRACE2("e","is",loc_id,name);
@@ -629,7 +629,7 @@ H5F_mount_count_ids_recurse(H5F_t *f, unsigned *nopen_files, unsigned *nopen_obj
if(f->file_id > 0)
*nopen_files += 1;
- /* Increment number of open objects in file
+ /* Increment number of open objects in file
* (Reduced by number of mounted files, we'll add back in the mount point's
* groups later, if they are open)
*/
@@ -666,7 +666,7 @@ herr_t
H5F_mount_count_ids(H5F_t *f, unsigned *nopen_files, unsigned *nopen_objs)
{
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5F_mount_count_ids, FAIL)
/* Sanity check */
diff --git a/src/H5Fpkg.h b/src/H5Fpkg.h
index 23d0cc2..dd58228 100644
--- a/src/H5Fpkg.h
+++ b/src/H5Fpkg.h
@@ -118,7 +118,7 @@ typedef struct H5F_mount_t {
struct H5G_t *group; /* Mount point group held open */
struct H5F_t *file; /* File mounted at that point */
} H5F_mount_t;
-
+
/*
* The mount table describes what files are attached to (mounted on) the file
* to which this table belongs.
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h
index 16edaa0..c819275 100644
--- a/src/H5Fprivate.h
+++ b/src/H5Fprivate.h
@@ -279,7 +279,7 @@ typedef struct H5F_t H5F_t;
#else
# define H5F_OVERFLOW_HSIZET2OFFT(X) 0
#endif
-
+
/* ========= File Creation properties ============ */
/* Definitions for the size of the file user block in bytes */
#define H5F_CRT_USER_BLOCK_NAME "block_size"
@@ -314,7 +314,7 @@ typedef struct H5F_t H5F_t;
#define H5F_CRT_OBJ_DIR_VERS_SIZE sizeof(unsigned)
#define H5F_CRT_OBJ_DIR_VERS_DEF HDF5_OBJECTDIR_VERSION
/* Definitions for shared-header format version */
-#define H5F_CRT_SHARE_HEAD_VERS_NAME "share_head_version"
+#define H5F_CRT_SHARE_HEAD_VERS_NAME "share_head_version"
#define H5F_CRT_SHARE_HEAD_VERS_SIZE sizeof(unsigned)
#define H5F_CRT_SHARE_HEAD_VERS_DEF HDF5_SHAREDHEADER_VERSION
@@ -337,7 +337,7 @@ typedef struct H5F_t H5F_t;
/* Definition for preemption read chunks first */
#define H5F_ACS_PREEMPT_READ_CHUNKS_NAME "rdcc_w0"
#define H5F_ACS_PREEMPT_READ_CHUNKS_SIZE sizeof(double)
-#define H5F_ACS_PREEMPT_READ_CHUNKS_DEF 0.75
+#define H5F_ACS_PREEMPT_READ_CHUNKS_DEF 0.75
/* Definition for threshold for alignment */
#define H5F_ACS_ALIGN_THRHD_NAME "threshold"
@@ -355,7 +355,7 @@ typedef struct H5F_t H5F_t;
#define H5F_ACS_META_BLOCK_SIZE_SIZE sizeof(hsize_t)
#define H5F_ACS_META_BLOCK_SIZE_DEF 2048
-/* Definition for maximum sieve buffer size (when data sieving
+/* Definition for maximum sieve buffer size (when data sieving
is allowed by file driver */
#define H5F_ACS_SIEVE_BUF_SIZE_NAME "sieve_buf_size"
#define H5F_ACS_SIEVE_BUF_SIZE_SIZE sizeof(size_t)
@@ -400,8 +400,8 @@ typedef struct H5F_t H5F_t;
/* ======================== File Mount properties ====================*/
/* Definition for whether absolute symlinks local to file. */
#define H5F_MNT_SYM_LOCAL_NAME "local"
-#define H5F_MNT_SYM_LOCAL_SIZE sizeof(hbool_t)
-#define H5F_MNT_SYM_LOCAL_DEF FALSE
+#define H5F_MNT_SYM_LOCAL_SIZE sizeof(hbool_t)
+#define H5F_MNT_SYM_LOCAL_DEF FALSE
#ifdef H5_HAVE_PARALLEL
/* Which process writes metadata */
@@ -462,7 +462,7 @@ H5_DLL herr_t H5F_addr_pack(H5F_t *f, haddr_t *addr_p /*out*/,
/* Callback functions for file access class */
H5_DLL herr_t H5F_acs_create(hid_t fapl_id, void *close_data);
H5_DLL herr_t H5F_acs_close(hid_t fapl_id, void *close_data);
-H5_DLL herr_t H5F_acs_copy(hid_t new_fapl_id, hid_t old_fapl_id,
+H5_DLL herr_t H5F_acs_copy(hid_t new_fapl_id, hid_t old_fapl_id,
void *close_data);
/* Shared file list related routines */
diff --git a/src/H5Fpublic.h b/src/H5Fpublic.h
index 0b4204d..b3f6faa 100644
--- a/src/H5Fpublic.h
+++ b/src/H5Fpublic.h
@@ -82,7 +82,7 @@ typedef enum H5F_scope_t {
/* How does file close behave?
* H5F_CLOSE_DEFAULT - Use the degree pre-defined by underlining VFL
- * H5F_CLOSE_WEAK - file closes only after all opened objects are closed
+ * H5F_CLOSE_WEAK - file closes only after all opened objects are closed
* H5F_CLOSE_SEMI - if no opened objects, file is close; otherwise, file
close fails
* H5F_CLOSE_STRONG - if there are opened objects, close them first, then
diff --git a/src/H5Fsfile.c b/src/H5Fsfile.c
index 70eb420..e269776 100644
--- a/src/H5Fsfile.c
+++ b/src/H5Fsfile.c
@@ -105,7 +105,7 @@ H5F_sfile_add(H5F_file_t *shared)
{
H5F_sfile_node_t *new_shared; /* New shared file node */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_sfile_add)
/* Sanity check */
@@ -147,7 +147,7 @@ H5F_sfile_search(H5FD_t *lf)
{
H5F_sfile_node_t *curr; /* Current shared file node */
H5F_file_t *ret_value = NULL; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5F_sfile_search)
/* Sanity check */
@@ -189,7 +189,7 @@ H5F_sfile_remove(H5F_file_t *shared)
H5F_sfile_node_t *curr; /* Current shared file node */
H5F_sfile_node_t *last; /* Last shared file node */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5F_sfile_remove)
/* Sanity check */
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index b4a57ef..1854aac 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -34,7 +34,7 @@ NAME
H5F_init_super_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_super_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -120,21 +120,21 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_entry_t *root_ent)
/* Superblock version */
super_vers = *p++;
- if (super_vers > HDF5_SUPERBLOCK_VERSION_MAX)
+ if (super_vers > HDF5_SUPERBLOCK_VERSION_MAX)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "bad superblock version number")
if (H5P_set(c_plist, H5F_CRT_SUPER_VERS_NAME, &super_vers) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set superblock version")
/* Freespace version */
freespace_vers = *p++;
- if (HDF5_FREESPACE_VERSION != freespace_vers)
+ if (HDF5_FREESPACE_VERSION != freespace_vers)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "bad free space version number")
if (H5P_set(c_plist, H5F_CRT_FREESPACE_VERS_NAME, &freespace_vers) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to free space version")
/* Root group version number */
obj_dir_vers = *p++;
- if (HDF5_OBJECTDIR_VERSION != obj_dir_vers)
+ if (HDF5_OBJECTDIR_VERSION != obj_dir_vers)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "bad object directory version number")
if (H5P_set(c_plist, H5F_CRT_OBJ_DIR_VERS_NAME, &obj_dir_vers) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set object directory version")
@@ -144,7 +144,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_entry_t *root_ent)
/* Shared header version number */
share_head_vers = *p++;
- if (HDF5_SHAREDHEADER_VERSION != share_head_vers)
+ if (HDF5_SHAREDHEADER_VERSION != share_head_vers)
HGOTO_ERROR(H5E_FILE, H5E_BADVALUE, FAIL, "bad shared-header format version number")
if (H5P_set(c_plist, H5F_CRT_SHARE_HEAD_VERS_NAME, &share_head_vers) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set shared-header format version")
@@ -166,7 +166,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_entry_t *root_ent)
if (H5P_set(c_plist, H5F_CRT_OBJ_BYTE_NUM_NAME, &sizeof_size) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set byte number for object size")
shared->sizeof_size = sizeof_size; /* Keep a local copy also */
-
+
/* Skip over reserved byte */
p++;
@@ -292,7 +292,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_entry_t *root_ent)
/* Set the driver info block checksum */
shared->drvr_chksum = chksum;
} /* end if */
-
+
/*
* The user-defined data is the area of the file before the base
* address.
@@ -309,7 +309,7 @@ H5F_read_superblock(H5F_t *f, hid_t dxpl_id, H5G_entry_t *root_ent)
HGOTO_ERROR(H5E_FILE, H5E_CANTOPENFILE, FAIL, "unable to determine file size")
if (eof < stored_eoa)
HGOTO_ERROR(H5E_FILE, H5E_TRUNCATED, FAIL, "truncated file")
-
+
/*
* Tell the file driver how much address space has already been
* allocated so that it knows how to allocate additional memory.
@@ -488,7 +488,7 @@ H5F_write_superblock(H5F_t *f, hid_t dxpl_id)
*p++ = 0; /* reserved */
UINT16ENCODE(p, f->shared->sym_leaf_k);
UINT16ENCODE(p, f->shared->btree_k[H5B_SNODE_ID]);
- UINT32ENCODE(p, f->shared->consist_flags);
+ UINT32ENCODE(p, f->shared->consist_flags);
/*
* Versions of the superblock >0 have the indexed storage B-tree
diff --git a/src/H5G.c b/src/H5G.c
index a4957ce..51d179f 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -24,7 +24,7 @@
*
* The functions that begin with `H5G_node_' operate on the leaf
* nodes of a symbol table B-tree. They should be defined in
- * the H5Gnode.c file.
+ * the H5Gnode.c file.
*
* The remaining functions know how to traverse the group
* directed graph.
@@ -130,7 +130,7 @@ typedef struct H5G_names_t {
H5RS_str_t *dst_name;
H5G_entry_t *dst_loc;
H5G_names_op_t op;
-} H5G_names_t;
+} H5G_names_t;
/* Enum for H5G_namei actions */
typedef enum {
@@ -180,8 +180,8 @@ static htri_t H5G_isa(H5G_entry_t *ent, hid_t dxpl_id);
static htri_t H5G_link_isa(H5G_entry_t *ent, hid_t dxpl_id);
static H5G_t * H5G_open_oid(H5G_entry_t *ent, hid_t dxpl_id);
static H5G_t *H5G_rootof(H5F_t *f);
-static herr_t H5G_link(H5G_entry_t *cur_loc, const char *cur_name,
- H5G_entry_t *new_loc, const char *new_name,
+static herr_t H5G_link(H5G_entry_t *cur_loc, const char *cur_name,
+ H5G_entry_t *new_loc, const char *new_name,
H5G_link_t type, unsigned namei_flags, hid_t dxpl_id);
static herr_t H5G_get_num_objs(H5G_entry_t *grp, hsize_t *num_objs, hid_t dxpl_id);
static ssize_t H5G_get_objname_by_idx(H5G_entry_t *loc, hsize_t idx, char* name, size_t size, hid_t dxpl_id);
@@ -244,7 +244,7 @@ H5Gcreate(hid_t loc_id, const char *name, size_t size_hint)
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a location");
if (!name || !*name)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "no name given");
-
+
/* Create the group */
if (NULL == (grp = H5G_create(loc, name, size_hint, H5AC_dxpl_id)))
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to create group");
@@ -394,7 +394,7 @@ H5Giterate(hid_t loc_id, const char *name, int *idx_p,
H5G_bt_ud2_t udata;
H5G_t *grp = NULL;
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Giterate, FAIL);
H5TRACE5("e","is*Isxx",loc_id,name,idx_p,op,op_data);
@@ -456,15 +456,15 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Gget_num_objs
*
- * Purpose: Returns the number of objects in the group. It iterates
+ * Purpose: Returns the number of objects in the group. It iterates
* all B-tree leaves and sum up total number of group members.
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
- * Failure: Negative
+ * Failure: Negative
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
@@ -475,7 +475,7 @@ H5Gget_num_objs(hid_t loc_id, hsize_t *num_objs)
{
H5G_entry_t *loc = NULL; /* Pointer to symbol table entry */
herr_t ret_value;
-
+
FUNC_ENTER_API(H5Gget_num_objs, FAIL);
H5TRACE2("e","i*h",loc_id,num_objs);
@@ -508,12 +508,12 @@ done:
* If a zero is returned for the name's length, then there is no name
* associated with the ID.
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
- * Failure: Negative
+ * Failure: Negative
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
@@ -546,14 +546,14 @@ done:
* Function: H5Gget_objtype_by_idx
*
* Purpose: Returns the type of objects in the group by giving index.
- *
*
- * Return: Success: H5G_GROUP(1), H5G_DATASET(2), H5G_TYPE(3)
*
- * Failure: H5G_UNKNOWN
+ * Return: Success: H5G_GROUP(1), H5G_DATASET(2), H5G_TYPE(3)
+ *
+ * Failure: H5G_UNKNOWN
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
@@ -589,7 +589,7 @@ H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx)
{
H5G_entry_t *loc = NULL; /* Pointer to symbol table entry */
H5G_obj_t ret_value;
-
+
FUNC_ENTER_API(H5Gget_objtype_by_idx, H5G_UNKNOWN);
H5TRACE2("Go","ih",loc_id,idx);
@@ -615,7 +615,7 @@ done:
* Purpose: Renames an object within an HDF5 file. The original name SRC
* is unlinked from the group graph and the new name DST is
* inserted as an atomic operation. Both names are interpreted
- * relative to SRC_LOC_ID and DST_LOC_ID, which are either a file
+ * relative to SRC_LOC_ID and DST_LOC_ID, which are either a file
* ID or a group ID.
*
* Return: Non-negative on success/Negative on failure
@@ -631,7 +631,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id,
+H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id,
const char *dst_name)
{
H5G_entry_t *src_loc=NULL;
@@ -660,7 +660,7 @@ H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id,
}
else if(src_loc->file != dst_loc->file)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "source and destination should be in the same file.");
-
+
if (H5G_move(src_loc, src_name, dst_loc, dst_name, H5AC_dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to change object name");
@@ -676,8 +676,8 @@ done:
* CUR_NAME.
*
* If TYPE is H5G_LINK_HARD then CUR_NAME must name an existing
- * object. CUR_NAME and NEW_NAME are interpreted relative to
- * CUR_LOC_ID and NEW_LOC_ID, which is either a file ID or a
+ * object. CUR_NAME and NEW_NAME are interpreted relative to
+ * CUR_LOC_ID and NEW_LOC_ID, which is either a file ID or a
* group ID.
*
* If TYPE is H5G_LINK_SOFT then CUR_NAME can be anything and is
@@ -697,7 +697,7 @@ done:
*-------------------------------------------------------------------------
*/
herr_t
-H5Glink2(hid_t cur_loc_id, const char *cur_name, H5G_link_t type,
+H5Glink2(hid_t cur_loc_id, const char *cur_name, H5G_link_t type,
hid_t new_loc_id, const char *new_name)
{
H5G_entry_t *cur_loc = NULL;
@@ -763,7 +763,7 @@ H5Gunlink(hid_t loc_id, const char *name)
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Gunlink, FAIL);
H5TRACE2("e","is",loc_id,name);
@@ -805,7 +805,7 @@ H5Gget_objinfo(hid_t loc_id, const char *name, hbool_t follow_link,
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Gget_objinfo, FAIL);
H5TRACE4("e","isbx",loc_id,name,follow_link,statbuf);
@@ -847,7 +847,7 @@ H5Gget_linkval(hid_t loc_id, const char *name, size_t size, char *buf/*out*/)
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Gget_linkval, FAIL);
H5TRACE4("e","iszx",loc_id,name,size,buf);
@@ -888,7 +888,7 @@ H5Gset_comment(hid_t loc_id, const char *name, const char *comment)
{
H5G_entry_t *loc = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Gset_comment, FAIL);
H5TRACE3("e","iss",loc_id,name,comment);
@@ -933,7 +933,7 @@ H5Gget_comment(hid_t loc_id, const char *name, size_t bufsize, char *buf)
{
H5G_entry_t *loc = NULL;
int ret_value;
-
+
FUNC_ENTER_API(H5Gget_comment, FAIL);
H5TRACE4("Is","iszs",loc_id,name,bufsize,buf);
@@ -956,7 +956,7 @@ done:
*-------------------------------------------------------------------------
* N O A P I F U N C T I O N S B E Y O N D T H I S P O I N T
*-------------------------------------------------------------------------
- *-------------------------------------------------------------------------
+ *-------------------------------------------------------------------------
*/
/*-------------------------------------------------------------------------
@@ -1025,7 +1025,7 @@ H5G_term_interface(void)
int n=0;
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_term_interface);
-
+
if (H5_interface_initialize_g) {
if ((n=H5I_nmembers(H5I_GROUP))) {
H5I_clear_group(H5I_GROUP, FALSE);
@@ -1035,7 +1035,7 @@ H5G_term_interface(void)
H5MM_xfree(H5G_type_g[i].desc);
H5G_ntypes_g = H5G_atypes_g = 0;
H5G_type_g = H5MM_xfree(H5G_type_g);
-
+
/* Destroy the group object id group */
H5I_destroy_group(H5I_GROUP);
@@ -1048,7 +1048,7 @@ H5G_term_interface(void)
n = 1; /*H5I*/
}
}
-
+
FUNC_LEAVE_NOAPI(n);
}
@@ -1079,7 +1079,7 @@ H5G_register_type(int type, htri_t(*isa)(H5G_entry_t*, hid_t), const char *_desc
char *desc = NULL;
size_t i;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_register_type);
assert(type>=0);
@@ -1113,7 +1113,7 @@ H5G_register_type(int type, htri_t(*isa)(H5G_entry_t*, hid_t), const char *_desc
H5G_atypes_g = n;
H5G_type_g = x;
}
-
+
/* Add a new entry */
H5G_type_g[H5G_ntypes_g].type = type;
H5G_type_g[H5G_ntypes_g].isa = isa;
@@ -1192,7 +1192,7 @@ static const char *
H5G_basename(const char *name, size_t *size_p)
{
size_t i;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_basename);
/* Find the end of the base name */
@@ -1235,7 +1235,7 @@ H5G_normalize(const char *name)
size_t s,d; /* Positions within the strings */
unsigned last_slash; /* Flag to indicate last character was a slash */
char *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_normalize);
/* Sanity check */
@@ -1331,7 +1331,7 @@ done:
* component of the name is a mount point then H5F_mountpoint()
* is not called and information about the mount point itself is
* returned.
- *
+ *
* Errors:
*
* Return: Success: Non-negative if name can be fully resolved.
@@ -1387,7 +1387,7 @@ H5G_namei(const H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/
unsigned last_comp = 0; /* Flag to indicate that a component is the last component in the name */
unsigned did_insert = 0; /* Flag to indicate that H5G_stab_insert was called */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_namei);
/* Set up "out" parameters */
@@ -1407,7 +1407,7 @@ H5G_namei(const H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/
null_obj = 0;
if (!nlinks)
nlinks = &_nlinks;
-
+
/* Check args */
if (!name || !*name)
HGOTO_ERROR (H5E_SYM, H5E_NOTFOUND, FAIL, "no name given");
@@ -1421,7 +1421,7 @@ H5G_namei(const H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/
/* Check if we need to get the root group's entry */
if ('/' == *name) {
H5G_t *tmp_grp; /* Temporary pointer to root group of file */
-
+
tmp_grp=H5G_rootof(loc_ent->file);
assert(tmp_grp);
@@ -1432,7 +1432,7 @@ H5G_namei(const H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/
/* Deep copy of the symbol table entry */
if (H5G_ent_copy(obj_ent, loc_ent,H5G_COPY_DEEP)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTOPENOBJ, FAIL, "unable to copy entry");
-
+
HDmemset(grp_ent, 0, sizeof(H5G_entry_t));
grp_ent->header = HADDR_UNDEF;
@@ -1536,11 +1536,11 @@ H5G_namei(const H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/
*/
if (0==(target & H5G_TARGET_MOUNT) || !last_comp)
H5F_mountpoint(obj_ent/*in,out*/);
-
+
/* next component */
name += nchars;
} /* end while */
-
+
/* Update the "rest of name" pointer */
if (rest)
*rest = name; /*final null */
@@ -1597,7 +1597,7 @@ H5G_traverse_slink (H5G_entry_t *grp_ent/*in,out*/,
H5RS_str_t *tmp_user_path_r=NULL, *tmp_canon_path_r=NULL; /* Temporary pointer to object's user path & canonical path */
const H5HL_t *heap;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_traverse_slink);
/* Portably initialize the temporary group entry */
@@ -1617,7 +1617,7 @@ H5G_traverse_slink (H5G_entry_t *grp_ent/*in,out*/,
if (H5HL_unprotect(grp_ent->file, dxpl_id, heap, stab_mesg.heap_addr) < 0)
HGOTO_ERROR (H5E_SYM, H5E_NOTFOUND, FAIL, "unable to read unprotect link value")
-
+
/* Hold the entry's name (& old_name) to restore later */
tmp_user_path_r=obj_ent->user_path_r;
obj_ent->user_path_r=NULL;
@@ -1804,7 +1804,7 @@ H5G_create(H5G_entry_t *loc, const char *name, size_t size_hint, hid_t dxpl_id)
if (H5G_stab_create(file, dxpl_id, size_hint, &(grp->ent)/*out*/) < 0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, NULL, "can't create grp");
stab_init=1; /* Indicate that the symbol table information is valid */
-
+
/* insert child name into parent */
if(H5G_insert(loc,name,&(grp->ent), dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINSERT, NULL, "can't insert group");
@@ -1861,7 +1861,7 @@ static htri_t
H5G_isa(H5G_entry_t *ent, hid_t dxpl_id)
{
htri_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_isa);
assert(ent);
@@ -1896,7 +1896,7 @@ static htri_t
H5G_link_isa(H5G_entry_t *ent, hid_t UNUSED dxpl_id)
{
htri_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_link_isa);
assert(ent);
@@ -2101,7 +2101,7 @@ H5G_close(H5G_t *grp)
if(H5G_free_ent_name(&(grp->ent))<0)
{
H5FL_FREE (H5G_t,grp);
- HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't free group entry name");
+ HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "can't free group entry name");
}
}
@@ -2406,7 +2406,7 @@ H5G_loc (hid_t loc_id)
if (NULL==(ret_value=H5A_entof(attr)))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "unable to get symbol table entry of attribute");
break;
-
+
case H5I_REFERENCE:
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "unable to get symbol table entry of reference");
@@ -2451,7 +2451,7 @@ H5G_link (H5G_entry_t *cur_loc, const char *cur_name, H5G_entry_t *new_loc,
size_t nchars; /*characters in component */
size_t offset; /*offset to sym-link value */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_link);
/* Check args */
@@ -2472,7 +2472,7 @@ H5G_link (H5G_entry_t *cur_loc, const char *cur_name, H5G_entry_t *new_loc,
* Lookup the the new_name so we can get the group which will contain
* the new entry. The entry shouldn't exist yet.
*/
- if (H5G_namei(new_loc, norm_new_name, &rest, &grp_ent, NULL,
+ if (H5G_namei(new_loc, norm_new_name, &rest, &grp_ent, NULL,
H5G_TARGET_NORMAL, NULL, H5G_NAMEI_TRAVERSE, NULL, dxpl_id)>=0)
HGOTO_ERROR (H5E_SYM, H5E_EXISTS, FAIL, "already exists");
H5E_clear (); /*it's okay that we didn't find it*/
@@ -2533,7 +2533,7 @@ done:
/* Free the group's ID to name buffer, if creating a soft link */
if(type == H5G_LINK_SOFT)
H5G_free_ent_name(&grp_ent);
-
+
/* Free the ID to name buffer */
if(cur_obj_init)
H5G_free_ent_name(&cur_obj);
@@ -2570,7 +2570,7 @@ H5G_get_type(H5G_entry_t *ent, hid_t dxpl_id)
htri_t isa;
size_t i;
int ret_value=H5G_UNKNOWN; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5G_get_type, H5G_UNKNOWN);
for (i=H5G_ntypes_g; i>0; --i) {
@@ -2616,7 +2616,7 @@ H5G_get_objinfo (H5G_entry_t *loc, const char *name, hbool_t follow_link,
{
H5G_entry_t grp_ent, obj_ent;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5G_get_objinfo, FAIL);
assert (loc);
@@ -2702,27 +2702,27 @@ done:
/*-------------------------------------------------------------------------
* Function: H5G_get_num_objs
*
- * Purpose: Private function for H5Gget_num_objs. Returns the number
- * of objects in the group. It iterates all B-tree leaves
+ * Purpose: Private function for H5Gget_num_objs. Returns the number
+ * of objects in the group. It iterates all B-tree leaves
* and sum up total number of group members.
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
- * Failure: Negative
+ * Failure: Negative
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5G_get_num_objs(H5G_entry_t *loc, hsize_t *num_objs, hid_t dxpl_id)
{
H5O_stab_t stab_mesg; /*info about B-tree */
herr_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_get_num_objs);
/* Sanity check */
@@ -2740,9 +2740,9 @@ H5G_get_num_objs(H5G_entry_t *loc, hsize_t *num_objs, hid_t dxpl_id)
if ((ret_value = H5B_iterate (loc->file, dxpl_id, H5B_SNODE,
H5G_node_sumup, stab_mesg.btree_addr, num_objs))<0)
HERROR (H5E_SYM, H5E_CANTINIT, "iteration operator failed");
-
+
done:
- FUNC_LEAVE_NOAPI(ret_value);
+ FUNC_LEAVE_NOAPI(ret_value);
}
@@ -2752,24 +2752,24 @@ done:
* Purpose: Private function for H5Gget_objname_by_idx.
* Returns the name of objects in the group by giving index.
*
- * Return: Success: Non-negative
+ * Return: Success: Non-negative
*
- * Failure: Negative
+ * Failure: Negative
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static ssize_t
+static ssize_t
H5G_get_objname_by_idx(H5G_entry_t *loc, hsize_t idx, char* name, size_t size, hid_t dxpl_id)
{
H5O_stab_t stab_mesg; /*info about local heap & B-tree */
H5G_bt_ud3_t udata; /* Iteration information */
ssize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_get_objname_by_idx);
/* Sanity check */
@@ -2789,7 +2789,7 @@ H5G_get_objname_by_idx(H5G_entry_t *loc, hsize_t idx, char* name, size_t size, h
if ((ret_value = H5B_iterate (loc->file, dxpl_id, H5B_SNODE,
H5G_node_name, stab_mesg.btree_addr, &udata))<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "iteration operator failed");
-
+
/* If we don't know the name now, we almost certainly went out of bounds */
if(udata.name==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "index out of bound");
@@ -2818,26 +2818,26 @@ done:
* Purpose: Private function for H5Gget_objtype_by_idx.
* Returns the type of objects in the group by giving index.
*
- * Return: Success: H5G_GROUP(1), H5G_DATASET(2), H5G_TYPE(3)
+ * Return: Success: H5G_GROUP(1), H5G_DATASET(2), H5G_TYPE(3)
*
- * Failure: UNKNOWN
+ * Failure: UNKNOWN
*
* Programmer: Raymond Lu
- * Nov 20, 2002
+ * Nov 20, 2002
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static int
+static int
H5G_get_objtype_by_idx(H5G_entry_t *loc, hsize_t idx, hid_t dxpl_id)
{
H5O_stab_t stab_mesg; /*info about local heap & B-tree */
H5G_bt_ud3_t udata; /* User data for B-tree callback */
int ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_get_objtype_by_idx);
-
+
/* Sanity check */
assert(loc);
@@ -2850,12 +2850,12 @@ H5G_get_objtype_by_idx(H5G_entry_t *loc, hsize_t idx, hid_t dxpl_id)
udata.num_objs = 0;
udata.mesg = &stab_mesg;
udata.type = H5G_UNKNOWN;
-
+
/* Iterate over the group members */
if (H5B_iterate (loc->file, dxpl_id, H5B_SNODE,
H5G_node_type, stab_mesg.btree_addr, &udata)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5G_UNKNOWN, "iteration operator failed");
-
+
/* If we don't know the type now, we almost certainly went out of bounds */
if(udata.type==H5G_UNKNOWN)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5G_UNKNOWN, "index out of bound");
@@ -2898,7 +2898,7 @@ H5G_linkval (H5G_entry_t *loc, const char *name, size_t size, char *buf/*out*/,
H5O_stab_t stab_mesg;
const H5HL_t *heap;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_linkval);
/*
@@ -2920,7 +2920,7 @@ H5G_linkval (H5G_entry_t *loc, const char *name, size_t size, char *buf/*out*/,
if (NULL == (heap = H5HL_protect(grp_ent.file, dxpl_id, stab_mesg.heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "unable to read protect link value")
-
+
s = H5HL_offset_into(grp_ent.file, heap, obj_ent.cache.slink.lval_offset);
/* Copy to output buffer */
@@ -2962,7 +2962,7 @@ H5G_set_comment(H5G_entry_t *loc, const char *name, const char *buf, hid_t dxpl_
H5G_entry_t obj_ent;
H5O_name_t comment;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_set_comment);
/* Get the symbol table entry for the object */
@@ -3017,7 +3017,7 @@ H5G_get_comment(H5G_entry_t *loc, const char *name, size_t bufsize, char *buf, h
H5O_name_t comment;
H5G_entry_t obj_ent;
int ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_get_comment);
/* Get the symbol table entry for the object */
@@ -3044,7 +3044,7 @@ done:
FUNC_LEAVE_NOAPI(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5G_unlink
@@ -3073,7 +3073,7 @@ H5G_unlink(H5G_entry_t *loc, const char *name, hid_t dxpl_id)
H5G_stat_t statbuf; /* Info about object to unlink */
H5RS_str_t *name_r; /* Ref-counted version of name */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_unlink);
/* Sanity check */
@@ -3100,7 +3100,7 @@ H5G_unlink(H5G_entry_t *loc, const char *name, hid_t dxpl_id)
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "no containing group specified");
if (NULL==(base=H5G_basename(norm_name, &len)) || '/'==*base)
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "problems obtaining object base name");
-
+
/* Remove the name from the symbol table */
if (H5G_stab_remove(&grp_ent, base, dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTDELETE, FAIL, "unable to unlink name from symbol table");
@@ -3146,7 +3146,7 @@ done:
*-------------------------------------------------------------------------
*/
static herr_t
-H5G_move(H5G_entry_t *src_loc, const char *src_name, H5G_entry_t *dst_loc,
+H5G_move(H5G_entry_t *src_loc, const char *src_name, H5G_entry_t *dst_loc,
const char *dst_name, hid_t dxpl_id)
{
H5G_stat_t sb;
@@ -3156,7 +3156,7 @@ H5G_move(H5G_entry_t *src_loc, const char *src_name, H5G_entry_t *dst_loc,
H5RS_str_t *src_name_r; /* Ref-counted version of src name */
H5RS_str_t *dst_name_r; /* Ref-counted version of dest name */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_move);
/* Sanity check */
@@ -3183,7 +3183,7 @@ H5G_move(H5G_entry_t *src_loc, const char *src_name, H5G_entry_t *dst_loc,
H5G_TARGET_NORMAL, dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, FAIL, "unable to rename symbolic link");
H5MM_xfree(linkval);
-
+
} else {
/*
* Rename the object.
@@ -3194,7 +3194,7 @@ H5G_move(H5G_entry_t *src_loc, const char *src_name, H5G_entry_t *dst_loc,
}
/* Search the open ID list and replace names for the move operation
- * This has to be done here because H5G_link and H5G_unlink have
+ * This has to be done here because H5G_link and H5G_unlink have
* internal object entries, and do not modify the entries list
*/
if (H5G_namei(src_loc, src_name, NULL, NULL, &obj_ent, H5G_TARGET_NORMAL|H5G_TARGET_SLINK, NULL, H5G_NAMEI_TRAVERSE, NULL, dxpl_id))
@@ -3315,9 +3315,9 @@ H5G_free_grp_name(H5G_t *grp)
{
H5G_entry_t *ent; /* Group object's entry */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5G_free_grp_name, FAIL);
-
+
/* Check args */
assert(grp && grp->shared);
assert(grp->shared->fo_count > 0);
@@ -3345,7 +3345,7 @@ done:
*
* Date: August 22, 2002
*
- * Comments:
+ * Comments:
*
* Modifications:
*
@@ -3355,9 +3355,9 @@ herr_t
H5G_free_ent_name(H5G_entry_t *ent)
{
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5G_free_ent_name, FAIL);
-
+
/* Check args */
assert(ent);
@@ -3369,7 +3369,7 @@ H5G_free_ent_name(H5G_entry_t *ent)
H5RS_decr(ent->canon_path_r);
ent->canon_path_r=NULL;
} /* end if */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -3391,7 +3391,7 @@ done:
*
* Date: June 11, 2002
*
- * Comments:
+ * Comments:
*
* Modifications:
*
@@ -3406,7 +3406,7 @@ H5G_replace_name(int type, H5G_entry_t *loc,
unsigned search_group=0; /* Flag to indicate that groups are to be searched */
unsigned search_dataset=0; /* Flag to indicate that datasets are to be searched */
unsigned search_datatype=0; /* Flag to indicate that datatypes are to be searched */
- herr_t ret_value = SUCCEED;
+ herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI(H5G_replace_name, FAIL);
@@ -3469,7 +3469,7 @@ H5G_replace_name(int type, H5G_entry_t *loc,
if(search_datatype)
H5I_search(H5I_DATATYPE, H5G_replace_ent, &names);
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -3486,7 +3486,7 @@ done:
*
* Date: September 24, 2002
*
- * Comments:
+ * Comments:
*
* Modifications:
*
@@ -3499,9 +3499,9 @@ H5G_common_path(const H5RS_str_t *fullpath_r, const H5RS_str_t *prefix_r)
const char *prefix; /* Pointer to actual prefix string */
size_t nchars1,nchars2; /* Number of characters in components */
htri_t ret_value=FALSE; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5G_common_path);
-
+
/* Get component of each name */
fullpath=H5RS_get_str(fullpath_r);
assert(fullpath);
@@ -3555,7 +3555,7 @@ done:
*
* Date: June 5, 2002
*
- * Comments:
+ * Comments:
*
* Modifications:
*
@@ -3569,11 +3569,11 @@ H5G_replace_ent(void *obj_ptr, hid_t obj_id, void *key)
H5F_t *top_ent_file; /* Top file in entry's mounted file chain */
H5F_t *top_loc_file; /* Top file in location's mounted file chain */
herr_t ret_value = SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_replace_ent);
-
+
assert(obj_ptr);
-
+
/* Get the symbol table entry */
switch(H5I_get_type(obj_id)) {
case H5I_GROUP:
@@ -3588,7 +3588,7 @@ H5G_replace_ent(void *obj_ptr, hid_t obj_id, void *key)
/* Avoid non-named datatypes */
if(!H5T_is_named((H5T_t*)obj_ptr))
HGOTO_DONE(SUCCEED); /* Do not exit search over IDs */
-
+
ent = H5T_entof((H5T_t*)obj_ptr);
break;
@@ -3596,7 +3596,7 @@ H5G_replace_ent(void *obj_ptr, hid_t obj_id, void *key)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "unknown data object");
} /* end switch */
assert(ent);
-
+
switch(names->op) {
/*-------------------------------------------------------------------------
* OP_MOUNT
@@ -3875,11 +3875,11 @@ H5G_replace_ent(void *obj_ptr, hid_t obj_id, void *key)
/* Allocate space for the new user path */
if(NULL==(new_user_path = H5FL_BLK_MALLOC(str_buf,user_dst_len+1)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
-
+
/* Allocate space for the new canonical path */
if(NULL==(new_canon_path = H5FL_BLK_MALLOC(str_buf,canon_dst_len+1)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
-
+
/* Create the new names */
HDstrcpy(new_user_path,user_prefix);
HDstrcat(new_user_path,dst_canon_prefix);
@@ -3923,9 +3923,9 @@ H5G_replace_ent(void *obj_ptr, hid_t obj_id, void *key)
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "invalid call");
} /* end switch */
-
+
done:
- FUNC_LEAVE_NOAPI(ret_value);
+ FUNC_LEAVE_NOAPI(ret_value);
}
diff --git a/src/H5Gent.c b/src/H5Gent.c
index 5800aed..2be75de 100644
--- a/src/H5Gent.c
+++ b/src/H5Gent.c
@@ -117,7 +117,7 @@ done:
* symbol table entries.
*
* Errors:
- * SYM CANTDECODE Can't decode.
+ * SYM CANTDECODE Can't decode.
*
* Return: Success: Non-negative, with *pp pointing to the first byte
* after the last symbol.
@@ -233,7 +233,7 @@ H5G_ent_decode(H5F_t *f, const uint8_t **pp, H5G_entry_t *ent)
* symbol table entries.
*
* Errors:
- * SYM CANTENCODE Can't encode.
+ * SYM CANTENCODE Can't encode.
*
* Return: Success: Non-negative, with *pp pointing to the first byte
* after the last symbol.
@@ -344,7 +344,7 @@ H5G_ent_encode(H5F_t *f, uint8_t **pp, const H5G_entry_t *ent)
/* fill with zero */
while (*pp < p_ret) *(*pp)++ = 0;
*pp = p_ret;
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
@@ -360,7 +360,7 @@ H5G_ent_encode(H5F_t *f, uint8_t **pp, const H5G_entry_t *ent)
*
* Date: August 2002
*
- * Comments:
+ * Comments:
*
* Modifications:
* Quincey Koziol, Sept. 25, 2002:
@@ -448,7 +448,7 @@ H5G_ent_debug(H5F_t UNUSED *f, hid_t dxpl_id, const H5G_entry_t *ent, FILE * str
{
const char *lval = NULL;
int nested_indent, nested_fwidth;
-
+
FUNC_ENTER_NOAPI_NOFUNC(H5G_ent_debug);
/* Calculate the indent & field width values for nested information */
@@ -504,7 +504,7 @@ H5G_ent_debug(H5F_t UNUSED *f, hid_t dxpl_id, const H5G_entry_t *ent, FILE * str
else
HDfprintf(stream, "%*s%-*s\n", nested_indent, "", nested_fwidth, "Warning: Invalid heap address given, name not displayed!");
break;
-
+
default:
HDfprintf(stream, "*** Unknown symbol type %d\n", ent->type);
break;
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 14453ee..f865906 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -300,7 +300,7 @@ H5G_node_debug_key (FILE *stream, H5F_t *f, hid_t dxpl_id, int indent, int fwidt
const H5HL_t *heap = NULL;
const char *s;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5G_node_debug_key);
assert (key);
@@ -462,7 +462,7 @@ done:
*
* Pedro Vicente, <pvn@ncsa.uiuc.edu> 18 Sep 2002
* Added `id to name' support.
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -679,7 +679,7 @@ done:
* 5/13/04
*
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1316,7 +1316,7 @@ H5G_node_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key/*in,out*/,
if (H5O_link(sn->entry+idx, -1, dxpl_id)<0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINIT, H5B_INS_ERROR, "unable to decrement object link count");
}
-
+
/* Remove the name from the local heap */
if (NULL == (heap = H5HL_protect(f, dxpl_id, bt_udata->heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, H5B_INS_ERROR, "unable to protect symbol name");
@@ -1359,7 +1359,7 @@ H5G_node_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key/*in,out*/,
}
sn = NULL;
ret_value = H5B_INS_REMOVE;
-
+
} else if (0==idx) {
/*
* We are about to remove the left-most entry from the symbol table
@@ -1371,7 +1371,7 @@ H5G_node_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key/*in,out*/,
HDmemmove(sn->entry+idx, sn->entry+idx+1,
(sn->nsyms-idx)*sizeof(H5G_entry_t));
ret_value = H5B_INS_NOOP;
-
+
} else if (idx+1==sn->nsyms) {
/*
* We are about to remove the right-most entry from the symbol table
@@ -1383,7 +1383,7 @@ H5G_node_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key/*in,out*/,
rt_key->offset = sn->entry[sn->nsyms-1].name_off;
*rt_key_changed = TRUE;
ret_value = H5B_INS_NOOP;
-
+
} else {
/*
* We are about to remove an entry from the middle of a symbol table
@@ -1426,7 +1426,7 @@ H5G_node_remove(H5F_t *f, hid_t dxpl_id, haddr_t addr, void *_lt_key/*in,out*/,
sn = NULL;
ret_value = H5B_INS_REMOVE;
} /* end else */
-
+
done:
if (sn && H5AC_unprotect(f, dxpl_id, H5AC_SNODE, addr, sn, FALSE)<0)
HDONE_ERROR(H5E_SYM, H5E_PROTECT, H5B_INS_ERROR, "unable to release symbol table node");
@@ -1551,7 +1551,7 @@ done:
* Function: H5G_node_sumup
*
* Purpose: This function gets called during a group iterate operation
- * to return total number of members in the group.
+ * to return total number of members in the group.
*
* Return: Non-negative on success/Negative on failure
*
@@ -1599,10 +1599,10 @@ done:
* Purpose: This function gets called during a group iterate operation
* to return object name by giving idx.
*
- * Return: 0 if object isn't found in this node; 1 if object is found;
+ * Return: 0 if object isn't found in this node; 1 if object is found;
* Negative on failure
*
- * Programmer: Raymond Lu
+ * Programmer: Raymond Lu
* Nov 20, 2002
*
* Modifications:
@@ -1617,7 +1617,7 @@ H5G_node_name(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
const H5HL_t *heap = NULL;
size_t name_off;
hsize_t loc_idx;
- const char *name;
+ const char *name;
H5G_node_t *sn = NULL;
int ret_value = H5B_ITER_CONT;
@@ -1632,11 +1632,11 @@ H5G_node_name(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
if (NULL == (sn = H5AC_protect(f, dxpl_id, H5AC_SNODE, addr, NULL, NULL, H5AC_READ)))
HGOTO_ERROR(H5E_SYM, H5E_CANTLOAD, H5B_ITER_ERROR, "unable to load symbol table node");
-
- /* Find the node, locate the object symbol table entry and retrieve the name */
+
+ /* Find the node, locate the object symbol table entry and retrieve the name */
if(bt_udata->idx >= bt_udata->num_objs && bt_udata->idx < (bt_udata->num_objs+sn->nsyms)) {
- loc_idx = bt_udata->idx - bt_udata->num_objs;
- name_off = sn->entry[loc_idx].name_off;
+ loc_idx = bt_udata->idx - bt_udata->num_objs;
+ name_off = sn->entry[loc_idx].name_off;
if (NULL == (heap = H5HL_protect(f, dxpl_id, bt_udata->mesg->heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, H5B_ITER_ERROR, "unable to protect symbol name");
@@ -1672,7 +1672,7 @@ done:
* Return: 0 if object isn't found in this node; 1 if found;
* Negative on failure
*
- * Programmer: Raymond Lu
+ * Programmer: Raymond Lu
* Nov 20, 2002
*
*
@@ -1694,13 +1694,13 @@ H5G_node_type(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
assert(H5F_addr_defined(addr));
assert(bt_udata);
- /* Find the node, locate the object symbol table entry and retrieve the type */
+ /* Find the node, locate the object symbol table entry and retrieve the type */
if (NULL == (sn = H5AC_protect(f, dxpl_id, H5AC_SNODE, addr, NULL, NULL, H5AC_READ)))
HGOTO_ERROR(H5E_SYM, H5E_CANTLOAD, H5B_ITER_ERROR, "unable to load symbol table node");
if(bt_udata->idx >= bt_udata->num_objs && bt_udata->idx < (bt_udata->num_objs+sn->nsyms)) {
- loc_idx = bt_udata->idx - bt_udata->num_objs;
- bt_udata->type = H5G_get_type(&(sn->entry[loc_idx]), dxpl_id);
+ loc_idx = bt_udata->idx - bt_udata->num_objs;
+ bt_udata->type = H5G_get_type(&(sn->entry[loc_idx]), dxpl_id);
ret_value = H5B_ITER_STOP;
} else {
bt_udata->num_objs += sn->nsyms;
@@ -1709,7 +1709,7 @@ H5G_node_type(H5F_t *f, hid_t dxpl_id, const void UNUSED *_lt_key, haddr_t addr,
done:
if (sn && H5AC_unprotect(f, dxpl_id, H5AC_SNODE, addr, sn, FALSE) != SUCCEED)
HDONE_ERROR(H5E_SYM, H5E_PROTECT, H5B_ITER_ERROR, "unable to release object header");
-
+
FUNC_LEAVE_NOAPI(ret_value);
}
diff --git a/src/H5Gpkg.h b/src/H5Gpkg.h
index 41ae858..2753a64 100644
--- a/src/H5Gpkg.h
+++ b/src/H5Gpkg.h
@@ -105,7 +105,7 @@ typedef struct H5G_bt_ud2_t {
/* upward */
int final_ent; /*final entry looked at */
-
+
} H5G_bt_ud2_t;
/*
diff --git a/src/H5Gpublic.h b/src/H5Gpublic.h
index 3d74704..611ff08 100644
--- a/src/H5Gpublic.h
+++ b/src/H5Gpublic.h
@@ -74,7 +74,7 @@ typedef enum H5G_obj_t {
H5G_RESERVED_5, /* Reserved for future use */
H5G_RESERVED_6, /* Reserved for future use */
H5G_RESERVED_7 /* Reserved for future use */
-} H5G_obj_t;
+} H5G_obj_t;
#endif /*H5_WANT_H5_V1_4_COMPAT*/
#define H5G_NTYPES 256 /* Max possible number of types */
@@ -96,7 +96,7 @@ typedef struct H5G_stat_t {
size_t linklen; /*symbolic link value length */
H5O_stat_t ohdr; /* Object header information */
} H5G_stat_t;
-
+
#define H5G_SAME_LOC 0
#define H5Glink(cur_loc_id, type, cur_name, new_name) \
H5Glink2(cur_loc_id, cur_name, type, H5G_SAME_LOC, new_name)
@@ -118,7 +118,7 @@ H5_DLL int H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx);
#else /*H5_WANT_H5_V1_4_COMPAT*/
H5_DLL H5G_obj_t H5Gget_objtype_by_idx(hid_t loc_id, hsize_t idx);
#endif /*H5_WANT_H5_V1_4_COMPAT*/
-H5_DLL herr_t H5Gmove2(hid_t src_loc, const char *src, hid_t dst_loc,
+H5_DLL herr_t H5Gmove2(hid_t src_loc, const char *src, hid_t dst_loc,
const char *dst);
H5_DLL herr_t H5Glink2(hid_t src_loc, const char *cur_name, H5G_link_t type,
hid_t dst_loc, const char *new_name);
diff --git a/src/H5Gstab.c b/src/H5Gstab.c
index 36e2119..66d9356 100644
--- a/src/H5Gstab.c
+++ b/src/H5Gstab.c
@@ -240,7 +240,7 @@ H5G_stab_insert(H5G_entry_t *grp_ent, const char *name, H5G_entry_t *obj_ent, hi
/* insert */
if (H5B_insert(grp_ent->file, dxpl_id, H5B_SNODE, stab.btree_addr, &udata) < 0)
HGOTO_ERROR(H5E_SYM, H5E_CANTINSERT, FAIL, "unable to insert entry");
-
+
/* update the name offset in the entry */
obj_ent->name_off = udata.ent.name_off;
@@ -269,7 +269,7 @@ H5G_stab_remove(H5G_entry_t *grp_ent, const char *name, hid_t dxpl_id)
H5O_stab_t stab; /*symbol table message */
H5G_bt_ud1_t udata; /*data to pass through B-tree */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5G_stab_remove, FAIL);
assert(grp_ent && grp_ent->file);
@@ -309,18 +309,18 @@ done:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5G_insert_name(H5G_entry_t *loc, H5G_entry_t *obj, const char *name)
{
size_t name_len; /* Length of name to append */
- herr_t ret_value = SUCCEED;
-
+ herr_t ret_value = SUCCEED;
+
FUNC_ENTER_NOAPI_NOINIT(H5G_insert_name);
assert(loc);
assert(obj);
assert(name);
-
+
/* Reset the object's previous names, if they exist */
if(obj->user_path_r) {
H5RS_decr(obj->user_path_r);
@@ -432,8 +432,8 @@ herr_t
H5G_stab_delete(H5F_t *f, hid_t dxpl_id, haddr_t btree_addr, haddr_t heap_addr)
{
H5G_bt_ud1_t udata; /*data to pass through B-tree */
- herr_t ret_value = SUCCEED;
-
+ herr_t ret_value = SUCCEED;
+
FUNC_ENTER_NOAPI(H5G_stab_delete, FAIL);
assert(f);
diff --git a/src/H5HG.c b/src/H5HG.c
index 0c19ebd..8acb789 100644
--- a/src/H5HG.c
+++ b/src/H5HG.c
@@ -176,14 +176,14 @@ H5FL_BLK_DEFINE_STATIC(heap_chunk);
* Modified function to return the disk address of the new
* global heap collection, or HADDR_UNDEF on failure. This
* is necessary, as in some cases (i.e. flexible parallel)
- * H5AC_set() will imediately flush and destroy the in memory
- * version of the new collection. For the same reason, I
+ * H5AC_set() will imediately flush and destroy the in memory
+ * version of the new collection. For the same reason, I
* moved the code which places the new collection on the cwfs
* list to just before the call to H5AC_set().
*
*-------------------------------------------------------------------------
*/
-static haddr_t
+static haddr_t
H5HG_create (H5F_t *f, hid_t dxpl_id, size_t size)
{
H5HG_heap_t *heap = NULL;
@@ -191,7 +191,7 @@ H5HG_create (H5F_t *f, hid_t dxpl_id, size_t size)
uint8_t *p = NULL;
haddr_t addr;
size_t n;
-
+
FUNC_ENTER_NOAPI(H5HG_create, HADDR_UNDEF);
/* Check args */
@@ -268,7 +268,7 @@ HDmemset(heap->chunk,0,size);
f->shared->cwfs[0] = heap;
f->shared->ncwfs = 1;
} else {
- HDmemmove (f->shared->cwfs+1, f->shared->cwfs,
+ HDmemmove (f->shared->cwfs+1, f->shared->cwfs,
MIN (f->shared->ncwfs, H5HG_NCWFS-1)*sizeof(H5HG_heap_t*));
f->shared->cwfs[0] = heap;
f->shared->ncwfs = MIN (H5HG_NCWFS, f->shared->ncwfs+1);
@@ -323,7 +323,7 @@ H5HG_load (H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * udata1,
size_t nalloc, need;
size_t max_idx=0; /* The maximum index seen */
H5HG_heap_t *ret_value = NULL; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5HG_load, NULL);
/* check arguments */
@@ -469,9 +469,9 @@ H5HG_load (H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * udata1,
f->shared->cwfs[0] = heap;
}
}
-
+
ret_value = heap;
-
+
done:
if (!ret_value && heap) {
if(H5HG_dest(f,heap)<0)
@@ -505,7 +505,7 @@ static herr_t
H5HG_flush (H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5HG_heap_t *heap)
{
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5HG_flush, FAIL);
/* Check arguments */
@@ -548,7 +548,7 @@ static herr_t
H5HG_dest (H5F_t *f, H5HG_heap_t *heap)
{
int i;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5HG_dest);
/* Check arguments */
@@ -721,7 +721,7 @@ H5HG_alloc (H5F_t *f, H5HG_heap_t *heap, size_t size)
*/
heap->obj[0].size = 0;
heap->obj[0].begin = NULL;
-
+
} else if (heap->obj[0].size-need >= H5HG_SIZEOF_OBJHDR (f)) {
/*
* Some free space remains and it's larger than a heap object header,
@@ -735,7 +735,7 @@ H5HG_alloc (H5F_t *f, H5HG_heap_t *heap, size_t size)
UINT32ENCODE(p, 0); /*reserved*/
H5F_ENCODE_LENGTH (f, p, heap->obj[0].size);
assert(H5HG_ISALIGNED(heap->obj[0].size));
-
+
} else {
/*
* Some free space remains but it's smaller than a heap object header,
@@ -881,7 +881,7 @@ done:
*
* John Mainzer - 5/26/04
* Modified H5HG_create() to return the disk address of the
- * new collection, instead of the address of its
+ * new collection, instead of the address of its
* representation in core. This was necessary as in FP
* mode, the cache will immediately flush and destroy any
* entry inserted in it via H5AC_set(). I then modified
@@ -899,7 +899,7 @@ H5HG_insert (H5F_t *f, hid_t dxpl_id, size_t size, void *obj, H5HG_t *hobj/*out*
H5HG_heap_t *heap = NULL;
hbool_t found=0; /* Flag to indicate a heap with enough space was found */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5HG_insert, FAIL);
/* Check args */
@@ -913,24 +913,24 @@ H5HG_insert (H5F_t *f, hid_t dxpl_id, size_t size, void *obj, H5HG_t *hobj/*out*
/* Find a large enough collection on the CWFS list */
need = H5HG_SIZEOF_OBJHDR(f) + H5HG_ALIGN(size);
- /* Note that we don't have metadata cache locks on the entries in
- * f->shared->cwfs.
+ /* Note that we don't have metadata cache locks on the entries in
+ * f->shared->cwfs.
*
* In the current situation, this doesn't matter, as we are single
- * threaded, and as best I can tell, entries are added to and deleted
- * from f->shared->cwfs as they are added to and deleted from the
+ * threaded, and as best I can tell, entries are added to and deleted
+ * from f->shared->cwfs as they are added to and deleted from the
* metadata cache.
*
* To be proper, we should either lock each entry in f->shared->cwfs
- * as we examine it, or lock the whole array. However, at present
+ * as we examine it, or lock the whole array. However, at present
* I don't see the point as there will be significant overhead,
- * and protecting and unprotecting all the collections in the global
+ * and protecting and unprotecting all the collections in the global
* heap on a regular basis will skew the replacement policy.
*
- * However, there is a bigger issue -- as best I can tell, we only look
- * for free space in global heap chunks that are in cache. If we can't
+ * However, there is a bigger issue -- as best I can tell, we only look
+ * for free space in global heap chunks that are in cache. If we can't
* find any, we allocate a new chunk. This may be a problem in FP mode,
- * as the metadata cache is disabled. Do we allocate a new heap
+ * as the metadata cache is disabled. Do we allocate a new heap
* collection for every entry in this case?
*
* Note that all this comes from a cursory read of the source. Don't
@@ -983,8 +983,8 @@ H5HG_insert (H5F_t *f, hid_t dxpl_id, size_t size, void *obj, H5HG_t *hobj/*out*
} /* end if */
else {
- /* Move the collection forward in the CWFS list, if it's not
- * already at the front
+ /* Move the collection forward in the CWFS list, if it's not
+ * already at the front
*/
if (cwfsno>0) {
H5HG_heap_t *tmp = f->shared->cwfs[cwfsno];
@@ -995,13 +995,13 @@ H5HG_insert (H5F_t *f, hid_t dxpl_id, size_t size, void *obj, H5HG_t *hobj/*out*
} /* end else */
HDassert(H5F_addr_defined(addr));
-
+
if ( NULL == (heap = H5AC_protect(f, dxpl_id, H5AC_GHEAP, addr, NULL, NULL, H5AC_WRITE)) )
HGOTO_ERROR (H5E_HEAP, H5E_CANTLOAD, FAIL, "unable to load heap");
/* Split the free space to make room for the new object */
idx = H5HG_alloc (f, heap, size);
-
+
/* Copy data into the heap */
if(size>0) {
HDmemcpy(heap->obj[idx].begin+H5HG_SIZEOF_OBJHDR(f), obj, size);
@@ -1052,7 +1052,7 @@ H5HG_read (H5F_t *f, hid_t dxpl_id, H5HG_t *hobj, void *object/*out*/)
size_t size;
uint8_t *p = NULL;
void *ret_value;
-
+
FUNC_ENTER_NOAPI(H5HG_read, NULL);
/* Check args */
@@ -1123,9 +1123,9 @@ H5HG_link (H5F_t *f, hid_t dxpl_id, const H5HG_t *hobj, int adjust)
{
H5HG_heap_t *heap = NULL;
int ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5HG_link, FAIL);
-
+
/* Check args */
assert (f);
assert (hobj);
@@ -1182,7 +1182,7 @@ H5HG_remove (H5F_t *f, hid_t dxpl_id, H5HG_t *hobj)
unsigned u;
hbool_t deleted=FALSE; /* Whether the heap gets deleted */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5HG_remove, FAIL);
/* Check args */
@@ -1200,7 +1200,7 @@ H5HG_remove (H5F_t *f, hid_t dxpl_id, H5HG_t *hobj)
obj_start = heap->obj[hobj->idx].begin;
/* Include object header size */
need = H5HG_ALIGN(heap->obj[hobj->idx].size)+H5HG_SIZEOF_OBJHDR(f);
-
+
/* Move the new free space to the end of the heap */
for (u=0; u<heap->nused; u++) {
if (heap->obj[u].begin > heap->obj[hobj->idx].begin)
@@ -1254,7 +1254,7 @@ H5HG_remove (H5F_t *f, hid_t dxpl_id, H5HG_t *hobj)
f->shared->cwfs[f->shared->ncwfs-1] = heap;
}
}
-
+
done:
if (heap && H5AC_unprotect(f, dxpl_id, H5AC_GHEAP, hobj->addr, heap, deleted) != SUCCEED)
HDONE_ERROR(H5E_HEAP, H5E_PROTECT, FAIL, "unable to release object header");
diff --git a/src/H5HL.c b/src/H5HL.c
index 293dfb6..080b90d 100644
--- a/src/H5HL.c
+++ b/src/H5HL.c
@@ -1083,7 +1083,7 @@ H5HL_insert(H5F_t *f, hid_t dxpl_id, haddr_t addr, size_t buf_size, const void *
(sizeof_hdr + heap->mem_alloc));
if (NULL==heap->chunk)
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, (size_t)(-1), "memory allocation failed");
-
+
/* clear new section so junk doesn't appear in the file */
HDmemset(heap->chunk + sizeof_hdr + old_size, 0, need_more);
}
diff --git a/src/H5I.c b/src/H5I.c
index 04c88f4..23fbc97 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -14,16 +14,16 @@
/*
* FILE: H5I.c - Internal storage routines for handling "IDs"
- *
+ *
* REMARKS: ID's which allow objects (void *'s currently) to be bundled
* into "groups" for more general storage.
- *
+ *
* DESIGN: The groups are stored in an array of pointers to store each
* group in an element. Each "group" node contains a link to a
* hash table to manage the IDs in each group. The allowed
* "groups" are stored in an enum (called group_t) in
* H5Ipublic.h.
- *
+ *
* AUTHOR: Quincey Koziol
*
* MODIFICATIONS:
@@ -128,13 +128,13 @@ static herr_t H5I_debug(H5I_type_t grp);
*
* Failure: Negative
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-static herr_t
+static herr_t
H5I_init_interface(void)
{
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5I_init_interface);
@@ -161,7 +161,7 @@ H5I_init_interface(void)
*
* Failure: Negative.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -233,7 +233,7 @@ H5I_term_interface(void)
*
*-------------------------------------------------------------------------
*/
-int
+int
H5I_init_group(H5I_type_t grp, size_t hash_size, unsigned reserved,
H5I_free_t free_func)
{
@@ -272,7 +272,7 @@ H5I_init_group(H5I_type_t grp, size_t hash_size, unsigned reserved,
if (NULL==grp_ptr->id_list)
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
}
-
+
/* Increment the count of the times this group has been initialized */
grp_ptr->count++;
@@ -371,7 +371,7 @@ H5I_clear_group(H5I_type_t grp, hbool_t force)
if (grp <= H5I_BADID || grp >= H5I_NGROUPS)
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number");
-
+
grp_ptr = H5I_id_group_list_g[grp];
if (grp_ptr == NULL || grp_ptr->count <= 0)
HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "invalid group");
@@ -458,7 +458,7 @@ H5I_clear_group(H5I_type_t grp, hbool_t force)
} /* end else */
} /* end for */
} /* end for */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -473,7 +473,7 @@ done:
* their reference counts. Destroying IDs involves calling
* the free-func for each ID's object and then adding the ID
* struct to the ID free list.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Unknown
@@ -495,7 +495,7 @@ H5I_destroy_group(H5I_type_t grp)
if (grp <= H5I_BADID || grp >= H5I_NGROUPS)
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number");
-
+
grp_ptr = H5I_id_group_list_g[grp];
if (grp_ptr == NULL || grp_ptr->count <= 0)
HGOTO_ERROR(H5E_ATOM, H5E_BADGROUP, FAIL, "invalid group");
@@ -513,7 +513,7 @@ H5I_destroy_group(H5I_type_t grp)
} else {
--(grp_ptr->count);
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -540,7 +540,7 @@ H5I_destroy_group(H5I_type_t grp)
*
*-------------------------------------------------------------------------
*/
-hid_t
+hid_t
H5I_register(H5I_type_t grp, void *object)
{
H5I_id_group_t *grp_ptr=NULL; /*ptr to the group */
@@ -551,7 +551,7 @@ H5I_register(H5I_type_t grp, void *object)
hid_t ret_value=SUCCEED; /*return value */
H5I_id_info_t *curr_id; /*ptr to the current atom */
unsigned i; /*counter */
-
+
FUNC_ENTER_NOAPI(H5I_register, FAIL);
/* Check arguments */
@@ -644,13 +644,13 @@ H5I_register(H5I_type_t grp, void *object)
*
* Failure: NULL
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-void *
+void *
H5I_object(hid_t id)
{
H5I_id_info_t *id_ptr = NULL; /*ptr to the new atom */
@@ -687,7 +687,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-void *
+void *
H5I_object_verify(hid_t id, H5I_type_t id_type)
{
H5I_id_info_t *id_ptr = NULL; /*ptr to the new atom */
@@ -727,7 +727,7 @@ done:
*
*-------------------------------------------------------------------------
*/
-H5I_type_t
+H5I_type_t
H5I_get_type(hid_t id)
{
H5I_type_t ret_value = H5I_BADID;
@@ -756,7 +756,7 @@ done:
*
* Failure: H5I_BADID, a negative value
*
- * Programmer:
+ * Programmer:
*
* Modifications:
* Robb Matzke, 1999-08-23
@@ -793,13 +793,13 @@ done:
*
* Failure: NULL
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
-void *
+void *
H5I_remove(hid_t id)
{
H5I_id_group_t *grp_ptr = NULL;/*ptr to the atomic group */
@@ -951,7 +951,7 @@ H5I_dec_ref(hid_t id)
grp_ptr = H5I_id_group_list_g[grp];
if (grp_ptr == NULL || grp_ptr->count <= 0)
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid group number");
-
+
/* General lookup of the ID */
if ((id_ptr=H5I_find_id(id))==NULL)
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't locate ID");
@@ -1224,7 +1224,7 @@ done:
*
* Failure: NULL
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -1283,10 +1283,10 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Iget_name
*
- * Purpose: Gets a name of an object from its ID.
+ * Purpose: Gets a name of an object from its ID.
*
* Return: Success: The length of name.
- *
+ *
* Failure: -1
*
* Programmer: Pedro Vicente, pvn@ncsa.uiuc.edu
@@ -1433,14 +1433,14 @@ done:
* Function: H5Iget_file_id
*
* Purpose: The public version of H5I_get_file_id(), obtains the file
- * ID given an object ID. User has to close this ID.
+ * ID given an object ID. User has to close this ID.
*
* Return: Success: file ID
*
* Failure: a negative value
*
* Programmer: Raymond Lu
- * Oct 27, 2003
+ * Oct 27, 2003
*
* Modifications:
*
@@ -1466,14 +1466,14 @@ done:
* Function: H5I_get_file_id
*
* Purpose: The private version of H5Iget_file_id(), obtains the file
- * ID given an object ID.
+ * ID given an object ID.
*
* Return: Success: file ID
*
* Failure: a negative value
*
* Programmer: Raymond Lu
- * Oct 27, 2003
+ * Oct 27, 2003
*
* Modifications:
*
@@ -1491,7 +1491,7 @@ H5I_get_file_id(hid_t obj_id)
switch(H5I_GROUP(obj_id)) {
case H5I_FILE:
ret_value = obj_id;
-
+
/* Increment reference count on atom. */
if (H5I_inc_ref(ret_value)<0)
HGOTO_ERROR (H5E_ATOM, H5E_CANTSET, FAIL, "incrementing file ID failed");
@@ -1514,7 +1514,7 @@ H5I_get_file_id(hid_t obj_id)
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADRANGE, FAIL, "invalid object ID");
- }
+ }
done:
FUNC_LEAVE_NOAPI(ret_value);
diff --git a/src/H5Ipublic.h b/src/H5Ipublic.h
index 33ad2ad..fccdc2d 100644
--- a/src/H5Ipublic.h
+++ b/src/H5Ipublic.h
@@ -44,7 +44,7 @@ typedef enum {
H5I_VFL, /*group ID for virtual file layer */
H5I_GENPROP_CLS, /*group ID for generic property list classes */
H5I_GENPROP_LST, /*group ID for generic property lists */
-
+
H5I_NGROUPS /*number of valid groups, MUST BE LAST! */
} H5I_type_t;
diff --git a/src/H5MF.c b/src/H5MF.c
index b055e38..7ed3ec1 100644
--- a/src/H5MF.c
+++ b/src/H5MF.c
@@ -65,20 +65,20 @@ haddr_t
H5MF_alloc(H5F_t *f, H5FD_mem_t type, hid_t dxpl_id, hsize_t size)
{
haddr_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5MF_alloc, HADDR_UNDEF);
/* check arguments */
assert(f);
assert(size > 0);
-
+
/* Fail if we don't have write access */
if (0==(f->intent & H5F_ACC_RDWR))
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTINIT, HADDR_UNDEF, "file is read-only");
/* Check that the file can address the new space */
if( H5MF_alloc_overflow(f, size) )
- HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, HADDR_UNDEF, "not enough address space in file");
+ HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, HADDR_UNDEF, "not enough address space in file");
/* Allocate space from the virtual file layer */
if (HADDR_UNDEF==(ret_value=H5FD_alloc(f->shared->lf, type, dxpl_id, size)))
@@ -187,7 +187,7 @@ H5MF_realloc(H5F_t *f, H5FD_mem_t type, hid_t dxpl_id, haddr_t old_addr, hsize_t
hsize_t new_size)
{
haddr_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5MF_realloc, HADDR_UNDEF);
/* Convert old relative address to absolute address */
@@ -331,7 +331,7 @@ H5MF_alloc_overflow(H5F_t *f, hsize_t size)
/* Also add space that is "reserved" for data to be flushed
* to disk (e.g., for object headers and the heap).
- * This is the total amount of file space that will be
+ * This is the total amount of file space that will be
* allocated.
*/
space_needed += f->shared->lf->reserved_alloc;
diff --git a/src/H5MM.c b/src/H5MM.c
index b08cd7d..415b2e2 100644
--- a/src/H5MM.c
+++ b/src/H5MM.c
@@ -20,7 +20,7 @@
*
* Purpose: Memory management functions.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
diff --git a/src/H5MPprivate.h b/src/H5MPprivate.h
index 7d5fda7..c0683a6 100644
--- a/src/H5MPprivate.h
+++ b/src/H5MPprivate.h
@@ -22,7 +22,7 @@
/*------------------------------------------------------------------------
* Purpose: Begin to collect MPE log information for a function. It should
* be ahead of the actual function's process.
- *
+ *
* Programmer: Long Wang
*
*------------------------------------------------------------------------
@@ -34,7 +34,7 @@
*/
#define eventa(func_name) h5_mpe_eventa
#define eventb(func_name) h5_mpe_eventb
-#define COLOR(func_name) color_ ## func_name
+#define COLOR(func_name) color_ ## func_name
#define MPE_LOG_VARS(func_name) \
static int eventa(func_name) = -1; \
static int eventb(func_name) = -1; \
@@ -54,7 +54,7 @@
/*------------------------------------------------------------------------
- * Purpose: Finish the collection of MPE log information for a function.
+ * Purpose: Finish the collection of MPE log information for a function.
* It should be after the actual function's process.
*
* Programmer: Long Wang
@@ -394,9 +394,9 @@
#define color_H5Zget_filter_info "red"
#else
-#define MPE_LOG_VARS(func_name) /* void */
-#define BEGIN_MPE_LOG(func_name) /* void */
-#define FINISH_MPE_LOG /* void */
+#define MPE_LOG_VARS(func_name) /* void */
+#define BEGIN_MPE_LOG(func_name) /* void */
+#define FINISH_MPE_LOG /* void */
#endif
diff --git a/src/H5O.c b/src/H5O.c
index 3f3ca8a..c58497a 100644
--- a/src/H5O.c
+++ b/src/H5O.c
@@ -20,7 +20,7 @@
*
* Purpose: Object header virtual functions.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
@@ -299,7 +299,7 @@ H5O_init(H5F_t *f, hid_t dxpl_id, size_t size_hint, H5G_entry_t *ent/*out*/, had
if (NULL == (oh->chunk[0].image = H5FL_BLK_CALLOC(chunk_image, size_hint)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed");
-
+
/* create the message list and initialize the first message */
oh->nmesgs = 1;
oh->alloc_nmesgs = H5O_NMESGS;
@@ -414,7 +414,7 @@ H5O_close(H5G_entry_t *obj_ent)
}
}
#endif
-
+
/*
* If the file open object count has reached the number of open mount points
* (each of which has a group open in the file) attempt to close the file.
@@ -502,10 +502,10 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1,
oh->version = *p++;
if (H5O_VERSION != oh->version)
HGOTO_ERROR(H5E_OHDR, H5E_VERSION, NULL, "bad object header version number");
-
+
/* reserved */
p++;
-
+
/* decode number of messages */
UINT16DECODE(p, nmesgs);
@@ -533,7 +533,7 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1,
oh->alloc_nchunks = na;
oh->chunk = x;
}
-
+
/* read the chunk raw data */
chunkno = oh->nchunks++;
oh->chunk[chunkno].dirty = FALSE;
@@ -544,7 +544,7 @@ H5O_load(H5F_t *f, hid_t dxpl_id, haddr_t addr, const void UNUSED * _udata1,
if (H5F_block_read(f, H5FD_MEM_OHDR, chunk_addr, chunk_size, dxpl_id,
oh->chunk[chunkno].image) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_READERROR, NULL, "unable to read object header data");
-
+
/* load messages from this chunk */
for (p = oh->chunk[chunkno].image; p < oh->chunk[chunkno].image + chunk_size; p += mesg_size) {
UINT16DECODE(p, id);
@@ -687,11 +687,11 @@ H5O_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5O_t *oh)
combine=1;
} /* end if */
else {
- if (H5F_block_write(f, H5FD_MEM_OHDR, addr, (size_t)H5O_SIZEOF_HDR(f),
+ if (H5F_block_write(f, H5FD_MEM_OHDR, addr, (size_t)H5O_SIZEOF_HDR(f),
dxpl_id, buf) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_WRITEERROR, FAIL, "unable to write object header hdr to disk");
} /* end else */
-
+
/* encode messages */
for (u = 0, curr_msg=&oh->mesg[0]; u < oh->nmesgs; u++,curr_msg++) {
if (curr_msg->dirty) {
@@ -705,7 +705,7 @@ H5O_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5O_t *oh)
*p++ = 0; /*reserved*/
*p++ = 0; /*reserved*/
*p++ = 0; /*reserved*/
-
+
if (curr_msg->native) {
assert(curr_msg->type->encode);
@@ -724,7 +724,7 @@ H5O_flush(H5F_t *f, hid_t dxpl_id, hbool_t destroy, haddr_t addr, H5O_t *oh)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "unable to allocate space for object header data");
oh->chunk[cont->chunkno].addr = cont->addr;
}
-
+
/*
* Encode the message. If the message is shared then we
* encode a Shared Object message instead of the object
@@ -910,7 +910,7 @@ done:
* The value returned will probably be low unless the object
* has just been flushed, as we simply total up the size of
* the header with the sizes of the chunks. Thus any message
- * that has been added since the last flush will not be
+ * that has been added since the last flush will not be
* reflected in the total.
*
* Return: Non-negative on success/Negative on failure
@@ -937,7 +937,7 @@ H5O_compute_size(const H5F_t *f, const H5O_t *oh, size_t *size_ptr)
size = H5O_SIZEOF_HDR(f);
- for (u = 0; u < oh->nchunks; u++)
+ for (u = 0; u < oh->nchunks; u++)
size += oh->chunk[u].size;
HDassert(size >= H5O_SIZEOF_HDR(f));
@@ -1061,7 +1061,7 @@ H5O_free (unsigned type_id, void *mesg)
assert(type_id<NELMTS(message_type_g));
type=message_type_g[type_id]; /* map the type ID to the actual type object */
assert(type);
-
+
/* Call the "real" free routine */
ret_value=H5O_free_real(type, mesg);
@@ -1093,7 +1093,7 @@ H5O_free_real(const H5O_class_t *type, void *mesg)
void * ret_value=NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_free_real);
-
+
/* check args */
assert(type);
@@ -1135,7 +1135,7 @@ H5O_copy (unsigned type_id, const void *mesg, void *dst)
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
void *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_copy, NULL);
/* check args */
@@ -1173,7 +1173,7 @@ static void *
H5O_copy_real (const H5O_class_t *type, const void *mesg, void *dst)
{
void *ret_value = NULL;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_copy_real);
/* check args */
@@ -1311,7 +1311,7 @@ H5O_count (H5G_entry_t *ent, unsigned type_id, hid_t dxpl_id)
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
int ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_count, FAIL);
/* Check args */
@@ -1355,7 +1355,7 @@ H5O_count_real (H5G_entry_t *ent, const H5O_class_t *type, hid_t dxpl_id)
int acc;
unsigned u;
int ret_value;
-
+
FUNC_ENTER_NOAPI(H5O_count_real, FAIL);
/* Check args */
@@ -1413,7 +1413,7 @@ H5O_exists(H5G_entry_t *ent, unsigned type_id, int sequence, hid_t dxpl_id)
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_exists, FAIL);
assert(ent);
@@ -1458,7 +1458,7 @@ H5O_exists_real(H5G_entry_t *ent, const H5O_class_t *type, int sequence, hid_t d
H5O_t *oh=NULL;
unsigned u;
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_exists_real);
assert(ent);
@@ -1883,13 +1883,13 @@ H5O_modify_real(H5G_entry_t *ent, const H5O_class_t *type, int overwrite,
/* Set the correct sequence number for the message created */
sequence++;
-
+
} else if (oh->mesg[idx].flags & H5O_FLAG_CONSTANT) {
HGOTO_ERROR(H5E_OHDR, H5E_WRITEERROR, FAIL, "unable to modify constant message");
} else if (oh->mesg[idx].flags & H5O_FLAG_SHARED) {
HGOTO_ERROR (H5E_OHDR, H5E_WRITEERROR, FAIL, "unable to modify shared (constant) message");
}
-
+
/* Write the information to the message */
if(H5O_write_mesg(oh,idx,type,mesg,flags,update_flags)<0)
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, FAIL, "unable to write message");
@@ -1897,14 +1897,14 @@ H5O_modify_real(H5G_entry_t *ent, const H5O_class_t *type, int overwrite,
/* Update the modification time message if any */
if(update_flags&H5O_UPDATE_TIME)
H5O_touch_oh(ent->file, oh, FALSE);
-
+
/* Set return value */
ret_value = sequence;
done:
if (oh && H5AC_unprotect(ent->file, dxpl_id, H5AC_OHDR, ent->header, oh, FALSE) < 0)
HDONE_ERROR(H5E_OHDR, H5E_PROTECT, FAIL, "unable to release object header");
-
+
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5O_modify_real() */
@@ -2062,7 +2062,7 @@ done:
*-------------------------------------------------------------------------
*/
static int
-H5O_append_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, const H5O_class_t *type,
+H5O_append_real(H5F_t *f, hid_t dxpl_id, H5O_t *oh, const H5O_class_t *type,
unsigned flags, const void *mesg)
{
unsigned idx; /* Index of message to modify */
@@ -2244,7 +2244,7 @@ H5O_touch_oh(H5F_t *f, H5O_t *oh, hbool_t force)
time_t now;
size_t size;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_touch_oh);
assert(oh);
@@ -2307,7 +2307,7 @@ H5O_touch(H5G_entry_t *ent, hbool_t force, hid_t dxpl_id)
{
H5O_t *oh = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_touch, FAIL);
/* check args */
@@ -2355,7 +2355,7 @@ H5O_bogus_oh(H5F_t *f, H5O_t *oh)
int idx;
size_t size;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER(H5O_bogus_oh, FAIL);
assert(f);
@@ -2409,7 +2409,7 @@ H5O_bogus(H5G_entry_t *ent, hid_t dxpl_id)
{
H5O_t *oh = NULL;
herr_t ret_value = SUCCEED;
-
+
FUNC_ENTER(H5O_bogus, FAIL);
/* check args */
@@ -2541,7 +2541,7 @@ H5O_remove_real(H5G_entry_t *ent, const H5O_class_t *type, int sequence, hid_t d
/* load the object header */
if (NULL == (oh = H5AC_protect(ent->file, dxpl_id, H5AC_OHDR, ent->header, NULL, NULL, H5AC_WRITE)))
HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, FAIL, "unable to load object header");
-
+
for (u = seq = 0, curr_msg=&oh->mesg[0]; u < oh->nmesgs; u++,curr_msg++) {
if (type->id != curr_msg->type->id)
continue;
@@ -2714,7 +2714,7 @@ H5O_alloc_extend_chunk(H5F_t *f, H5O_t *oh, unsigned chunkno, size_t size)
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, UFAIL, "memory allocation failed");
HDmemset(oh->chunk[chunkno].image+old_size, 0,
oh->chunk[chunkno].size - old_size);
-
+
/* adjust raw addresses for messages of this chunk */
if (old_addr != oh->chunk[chunkno].image) {
for (u = 0; u < oh->nmesgs; u++) {
@@ -2845,7 +2845,7 @@ H5O_alloc_new_chunk(H5F_t *f, H5O_t *oh, size_t size)
oh->chunk[chunkno].size = size;
if (NULL==(oh->chunk[chunkno].image = p = H5FL_BLK_CALLOC(chunk_image,size)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, UFAIL, "memory allocation failed");
-
+
/*
* Make sure we have enough space for all possible new messages
* that could be generated below.
@@ -3083,7 +3083,7 @@ H5O_share (H5F_t *f, hid_t dxpl_id, const H5O_class_t *type, const void *mesg,
size_t size;
void *buf = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_share);
/* Check args */
@@ -3132,7 +3132,7 @@ H5O_raw_size(unsigned type_id, const H5F_t *f, const void *mesg)
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
size_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_raw_size,0);
/* Check args */
@@ -3176,7 +3176,7 @@ H5O_get_share(unsigned type_id, H5F_t *f, const void *mesg, H5O_shared_t *share)
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
herr_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_get_share,FAIL);
/* Check args */
@@ -3220,7 +3220,7 @@ H5O_delete(H5F_t *f, hid_t dxpl_id, haddr_t addr)
{
H5O_t *oh=NULL; /* Object header information */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_delete,FAIL);
/* Check args */
@@ -3269,7 +3269,7 @@ H5O_delete_oh(H5F_t *f, hid_t dxpl_id, H5O_t *oh)
H5O_chunk_t *curr_chk; /* Pointer to current chunk being operated on */
unsigned u;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_delete_oh);
/* Check args */
@@ -3331,7 +3331,7 @@ H5O_delete_mesg(H5F_t *f, hid_t dxpl_id, H5O_mesg_t *mesg)
{
const H5O_class_t *type; /* Type of object to free */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_delete_mesg);
/* Check args */
@@ -3389,7 +3389,7 @@ H5O_get_info(H5G_entry_t *ent, H5O_stat_t *ostat, hid_t dxpl_id)
hsize_t free_space; /* Free space in object header */
unsigned u; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_get_info,FAIL);
/* Check args */
@@ -3448,7 +3448,7 @@ done:
* object being iterated over ('mesg'), and the pointer to the operator data
* passed in to H5O_iterate ('op_data'). The return values from an operator
* are:
- * A. Zero causes the iterator to continue, returning zero when all
+ * A. Zero causes the iterator to continue, returning zero when all
* object headers of that type have been processed.
* B. Positive causes the iterator to immediately return that positive
* value, indicating short-circuit success.
@@ -3543,7 +3543,7 @@ H5O_debug_id(hid_t type_id, H5F_t *f, hid_t dxpl_id, const void *mesg, FILE *str
{
const H5O_class_t *type; /* Actual H5O class type for the ID */
herr_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5O_debug_id,FAIL);
/* Check args */
@@ -3677,7 +3677,7 @@ H5O_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int f
"Constant:",
(oh->mesg[i].flags & H5O_FLAG_CONSTANT) ? "Yes" : "No");
if (oh->mesg[i].flags & ~H5O_FLAG_BITS) {
- HDfprintf (stream, "%*s%-*s 0x%02x\n", indent+3,"",MAX(0,fwidth-3),
+ HDfprintf (stream, "%*s%-*s 0x%02x\n", indent+3,"",MAX(0,fwidth-3),
"*** ADDITIONAL UNKNOWN FLAGS --->",
oh->mesg[i].flags & ~H5O_FLAG_BITS);
}
@@ -3690,14 +3690,14 @@ H5O_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int f
chunkno = oh->mesg[i].chunkno;
if (chunkno >= oh->nchunks)
HDfprintf(stream, "*** BAD CHUNK NUMBER\n");
-
+
/* check the size */
if ((oh->mesg[i].raw + oh->mesg[i].raw_size >
oh->chunk[chunkno].image + oh->chunk[chunkno].size) ||
(oh->mesg[i].raw < oh->chunk[chunkno].image)) {
HDfprintf(stream, "*** BAD MESSAGE RAW ADDRESS\n");
}
-
+
/* decode the message */
if (oh->mesg[i].flags & H5O_FLAG_SHARED) {
decode = H5O_SHARED->decode;
@@ -3710,7 +3710,7 @@ H5O_debug(H5F_t *f, hid_t dxpl_id, haddr_t addr, FILE *stream, int indent, int f
oh->mesg[i].native = (decode)(f, dxpl_id, oh->mesg[i].raw, NULL);
if (NULL==oh->mesg[i].native)
debug = NULL;
-
+
/* print the message */
HDfprintf(stream, "%*s%-*s\n", indent + 3, "", MAX(0, fwidth - 3),
"Message Information:");
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
index be48782..d0ed251 100644
--- a/src/H5Oattr.c
+++ b/src/H5Oattr.c
@@ -143,7 +143,7 @@ H5O_attr_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *
UINT16DECODE(p, name_len); /*including null*/
UINT16DECODE(p, attr->dt_size);
UINT16DECODE(p, attr->ds_size);
-
+
/* Decode and store the name */
if (NULL==(attr->name=H5MM_strdup((const char *)p)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
@@ -179,7 +179,7 @@ H5O_attr_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *
/* decode the attribute dataspace */
if (NULL==(attr->ds = H5FL_CALLOC(H5S_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
if((extent=(H5O_SDSPACE->decode)(f,dxpl_id,p,NULL))==NULL)
HGOTO_ERROR(H5E_ATTR, H5E_CANTDECODE, NULL, "can't decode attribute dataspace");
@@ -188,7 +188,7 @@ H5O_attr_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *
/* Release temporary extent information */
H5FL_FREE(H5S_extent_t,extent);
-
+
/* Default to entire dataspace being selected */
if(H5S_select_all(attr->ds,0)<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTSET, NULL, "unable to set all selection");
@@ -210,7 +210,7 @@ H5O_attr_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *
/* Indicate that the fill values aren't to be written out */
attr->initialized=1;
-
+
/* Set return value */
ret_value=attr;
@@ -223,7 +223,7 @@ done:
NAME
H5O_attr_encode
PURPOSE
- Encode a simple attribute message
+ Encode a simple attribute message
USAGE
herr_t H5O_attr_encode(f, raw_size, p, mesg)
H5F_t *f; IN: pointer to the HDF5 file struct
@@ -243,7 +243,7 @@ done:
* Added a version number at the beginning.
*
* Raymond Lu, 8 April 2004
- * For data space, changed the operation on H5S_simple_t to
+ * For data space, changed the operation on H5S_simple_t to
* H5S_extent_t
*
--------------------------------------------------------------------------*/
@@ -341,7 +341,7 @@ H5O_attr_encode(H5F_t *f, uint8_t *p, const void *mesg)
} /* end if */
else
p += attr->ds_size;
-
+
/* Store attribute data */
if(attr->data)
HDmemcpy(p,attr->data,attr->data_size);
@@ -360,8 +360,8 @@ done:
Copies a message from MESG to DEST, allocating DEST if necessary.
USAGE
void *H5O_attr_copy(mesg, dest)
- const void *mesg; IN: Pointer to the source attribute struct
- const void *dest; IN: Pointer to the destination attribute struct
+ const void *mesg; IN: Pointer to the source attribute struct
+ const void *dest; IN: Pointer to the destination attribute struct
RETURNS
Pointer to DEST on success, NULL on failure
DESCRIPTION
@@ -609,7 +609,7 @@ done:
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
- This function prints debugging output to the stream passed as a
+ This function prints debugging output to the stream passed as a
parameter.
--------------------------------------------------------------------------*/
static herr_t
@@ -642,7 +642,7 @@ H5O_attr_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg, FILE * stream, int in
fprintf(stream, "%*sSymbol table entry...\n", indent, "");
H5G_ent_debug(f, dxpl_id, &(mesg->ent), stream, indent+3, MAX(0, fwidth-3),
HADDR_UNDEF);
-
+
fprintf(stream, "%*sData type...\n", indent, "");
fprintf(stream, "%*s%-*s %lu\n", indent+3, "", MAX(0,fwidth-3),
"Size:",
diff --git a/src/H5Obogus.c b/src/H5Obogus.c
index 4da3f89..54a52b2 100644
--- a/src/H5Obogus.c
+++ b/src/H5Obogus.c
@@ -24,7 +24,7 @@
* correct operation when parsing unknown object header
* messages.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
diff --git a/src/H5Ocont.c b/src/H5Ocont.c
index 23c501e..b28186c 100644
--- a/src/H5Ocont.c
+++ b/src/H5Ocont.c
@@ -23,7 +23,7 @@
* the H5O package. Therefore, do not change
* any definitions in this file!
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index bf3cd1e..e358c18 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -207,7 +207,7 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
UINT32DECODE(*pp, dt->shared->u.compnd.memb[i].offset);
/* Older versions of the library allowed a field to have
- * intrinsic 'arrayness'. Newer versions of the library
+ * intrinsic 'arrayness'. Newer versions of the library
* use the separate array datatypes. */
if(version==H5O_DTYPE_VERSION_COMPAT) {
/* Decode the number of dimensions */
@@ -220,7 +220,7 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
/* Skip reserved bytes */
*pp += 4;
-
+
/* Decode array dimension sizes */
for (j=0; j<4; j++)
UINT32DECODE(*pp, dim[j]);
@@ -261,7 +261,7 @@ H5O_dtype_decode_helper(H5F_t *f, const uint8_t **pp, H5T_t *dt)
/* Close the base type for the array */
H5T_close(temp_type);
-
+
/* Make the array type the type that is set for the field */
temp_type=array_dt;
} /* end if */
@@ -714,7 +714,7 @@ H5O_dtype_encode_helper(uint8_t **pp, const H5T_t *dt)
/* Parent type */
if (H5O_dtype_encode_helper(pp, dt->shared->parent)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTENCODE, FAIL, "unable to encode parent data type");
-
+
/* Names, each a multiple of eight bytes */
for (i=0; i<dt->shared->u.enumer.nmembs; i++) {
HDstrcpy((char*)(*pp), dt->shared->u.enumer.name[i]);
@@ -728,11 +728,11 @@ H5O_dtype_encode_helper(uint8_t **pp, const H5T_t *dt)
HDmemcpy(*pp, dt->shared->u.enumer.value, dt->shared->u.enumer.nmembs * dt->shared->parent->shared->size);
*pp += dt->shared->u.enumer.nmembs * dt->shared->parent->shared->size;
break;
-
+
case H5T_REFERENCE:
flags |= (dt->shared->u.atomic.u.r.rtype & 0x0f);
break;
-
+
case H5T_STRING:
/*
* Character string types... (not fully implemented)
@@ -871,7 +871,7 @@ done:
NAME
H5O_dtype_encode
PURPOSE
- Encode a simple datatype message
+ Encode a simple datatype message
USAGE
herr_t H5O_dtype_encode(f, raw_size, p, mesg)
H5F_t *f; IN: pointer to the HDF5 file struct
@@ -914,9 +914,9 @@ done:
USAGE
void *H5O_dtype_copy(mesg, dest)
const void *mesg; IN: Pointer to the source simple datatype
- struct
+ struct
const void *dest; IN: Pointer to the destination simple
- datatype struct
+ datatype struct
RETURNS
Pointer to DEST on success, NULL on failure
DESCRIPTION
@@ -1124,7 +1124,7 @@ H5O_dtype_get_share(H5F_t UNUSED *f, const void *_mesg,
{
const H5T_t *dt = (const H5T_t *)_mesg;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_dtype_get_share);
assert (dt);
@@ -1166,7 +1166,7 @@ H5O_dtype_set_share (H5F_t UNUSED *f, void *_mesg/*in,out*/,
const H5O_shared_t *sh)
{
H5T_t *dt = (H5T_t *)_mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_dtype_set_share);
assert (dt);
@@ -1199,7 +1199,7 @@ H5O_dtype_set_share (H5F_t UNUSED *f, void *_mesg/*in,out*/,
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
- This function prints debugging output to the stream passed as a
+ This function prints debugging output to the stream passed as a
parameter.
--------------------------------------------------------------------------*/
static herr_t
@@ -1211,7 +1211,7 @@ H5O_dtype_debug(H5F_t *f, hid_t dxpl_id, const void *mesg, FILE *stream,
char buf[256];
unsigned i;
size_t k;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_dtype_debug);
/* check args */
@@ -1302,7 +1302,7 @@ H5O_dtype_debug(H5F_t *f, hid_t dxpl_id, const void *mesg, FILE *stream,
}
fprintf(stream, "\n");
}
-
+
} else if (H5T_OPAQUE==dt->shared->type) {
fprintf(stream, "%*s%-*s \"%s\"\n", indent, "", fwidth,
"Tag:", dt->shared->u.opaque.tag);
diff --git a/src/H5Oefl.c b/src/H5Oefl.c
index 974b86f..52b63dd 100644
--- a/src/H5Oefl.c
+++ b/src/H5Oefl.c
@@ -73,7 +73,7 @@ const H5O_class_t H5O_EFL[1] = {{
* Modifications:
* Robb Matzke, 1998-07-20
* Rearranged the message to add a version number near the beginning.
- *
+ *
*-------------------------------------------------------------------------
*/
static void *
@@ -118,7 +118,7 @@ H5O_efl_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *s
if (NULL == (heap = H5HL_protect(f, dxpl_id, mesg->heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, NULL, "unable to read protect link value")
-
+
s = H5HL_offset_into(f, heap, 0);
assert (s && !*s);
@@ -137,7 +137,7 @@ H5O_efl_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *s
if (NULL == (heap = H5HL_protect(f, dxpl_id, mesg->heap_addr)))
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, NULL, "unable to read protect link value")
-
+
s = H5HL_offset_into(f, heap, mesg->slot[u].name_offset);
assert (s && *s);
mesg->slot[u].name = H5MM_xstrdup (s);
@@ -145,7 +145,7 @@ H5O_efl_decode(H5F_t *f, hid_t dxpl_id, const uint8_t *p, H5O_shared_t UNUSED *s
if (H5HL_unprotect(f, dxpl_id, heap, mesg->heap_addr) < 0)
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, NULL, "unable to read unprotect link value")
-
+
/* File offset */
H5F_DECODE_LENGTH (f, p, mesg->slot[u].offset);
@@ -184,7 +184,7 @@ done:
* Entering the name into the local heap happens when the dataset is
* created. Otherwise we could end up in infinite recursion if the heap
* happens to hash to the same cache slot as the object header.
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -267,7 +267,7 @@ H5O_efl_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
if (NULL==(dest = H5MM_calloc(sizeof(H5O_efl_t))) ||
NULL==(dest->slot=H5MM_malloc(mesg->nalloc* sizeof(H5O_efl_entry_t))))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
} else if (dest->nalloc<mesg->nalloc) {
H5MM_xfree(dest->slot);
if (NULL==(dest->slot = H5MM_malloc(mesg->nalloc*
@@ -354,7 +354,7 @@ H5O_efl_reset(void *_mesg)
{
H5O_efl_t *mesg = (H5O_efl_t *) _mesg;
size_t u; /* Local index variable */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_efl_reset);
/* check args */
@@ -393,7 +393,7 @@ hsize_t
H5O_efl_total_size (H5O_efl_t *efl)
{
hsize_t ret_value = 0, tmp;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_efl_total_size);
if (efl->nused>0 &&
@@ -455,11 +455,11 @@ H5O_efl_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FILE * s
for (u = 0; u < mesg->nused; u++) {
sprintf (buf, "File %u", (unsigned)u);
HDfprintf (stream, "%*s%s:\n", indent, "", buf);
-
+
HDfprintf(stream, "%*s%-*s \"%s\"\n", indent+3, "", MAX (fwidth-3, 0),
"Name:",
mesg->slot[u].name);
-
+
HDfprintf(stream, "%*s%-*s %lu\n", indent+3, "", MAX (fwidth-3, 0),
"Name offset:",
(unsigned long)(mesg->slot[u].name_offset));
diff --git a/src/H5Ofill.c b/src/H5Ofill.c
index a437105..002666f 100644
--- a/src/H5Ofill.c
+++ b/src/H5Ofill.c
@@ -87,8 +87,8 @@ const H5O_class_t H5O_FILL_NEW[1] = {{
/* Initial version of the "old" fill value information */
#define H5O_FILL_VERSION 1
/* Revised version of the "new" fill value information */
-#define H5O_FILL_VERSION_2 2
-
+#define H5O_FILL_VERSION_2 2
+
/* Declare a free list to manage the H5O_fill_new_t struct */
H5FL_DEFINE(H5O_fill_new_t);
@@ -99,16 +99,16 @@ H5FL_DEFINE(H5O_fill_t);
/*-------------------------------------------------------------------------
* Function: H5O_fill_new_decode
*
- * Purpose: Decode a new fill value message. The new fill value
- * message is fill value plus space allocation time and
+ * Purpose: Decode a new fill value message. The new fill value
+ * message is fill value plus space allocation time and
* fill value writing time and whether fill value is defined.
*
* Return: Success: Ptr to new message in native struct.
*
* Failure: NULL
*
- * Programmer: Raymond Lu
- * Feb 26, 2002
+ * Programmer: Raymond Lu
+ * Feb 26, 2002
*
* Modifications:
*
@@ -121,7 +121,7 @@ H5O_fill_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
H5O_fill_new_t *mesg=NULL;
int version;
void *ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_fill_new_decode);
assert(f);
@@ -130,12 +130,12 @@ H5O_fill_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
if (NULL==(mesg=H5FL_CALLOC(H5O_fill_new_t)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for fill value message");
-
+
/* Version */
version = *p++;
if( version != H5O_FILL_VERSION && version !=H5O_FILL_VERSION_2)
HGOTO_ERROR(H5E_OHDR, H5E_CANTLOAD, NULL, "bad version number for fill value message");
-
+
/* Space allocation time */
mesg->alloc_time = (H5D_alloc_time_t)*p++;
@@ -160,7 +160,7 @@ H5O_fill_new_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
/* Set return value */
ret_value = (void*)mesg;
-
+
done:
if (!ret_value && mesg) {
if(mesg->buf)
@@ -194,7 +194,7 @@ H5O_fill_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
{
H5O_fill_t *mesg=NULL;
void *ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_fill_decode);
assert(f);
@@ -209,10 +209,10 @@ H5O_fill_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed for fill value");
HDmemcpy(mesg->buf, p, mesg->size);
}
-
+
/* Set return value */
ret_value = (void*)mesg;
-
+
done:
if (!ret_value && mesg) {
if(mesg->buf)
@@ -233,8 +233,8 @@ done:
*
* Return: Non-negative on success/Negative on failure
*
- * Programmer: Raymond Lu
- * Feb 26, 2002
+ * Programmer: Raymond Lu
+ * Feb 26, 2002
*
* Modifications:
*
@@ -244,7 +244,7 @@ static herr_t
H5O_fill_new_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg)
{
const H5O_fill_new_t *mesg = (const H5O_fill_new_t *)_mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_new_encode);
assert(f);
@@ -309,16 +309,16 @@ H5O_fill_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg)
* Function: H5O_fill_new_copy
*
* Purpose: Copies a message from _MESG to _DEST, allocating _DEST if
- * necessary. The new fill value message is fill value plus
- * space allocation time and fill value writing time and
+ * necessary. The new fill value message is fill value plus
+ * space allocation time and fill value writing time and
* whether fill value is defined.
*
* Return: Success: Ptr to _DEST
*
* Failure: NULL
*
- * Programmer: Raymond Lu
- * Feb 26, 2002
+ * Programmer: Raymond Lu
+ * Feb 26, 2002
*
* Modifications:
*
@@ -448,7 +448,7 @@ done:
*
* Purpose: Returns the size of the raw message in bytes not counting the
* message type or size fields, but only the data fields. This
- * function doesn't take into account alignment. The new fill
+ * function doesn't take into account alignment. The new fill
* value message is fill value plus space allocation time and
* fill value writing time and whether fill value is defined.
*
@@ -468,7 +468,7 @@ H5O_fill_new_size(const H5F_t UNUSED *f, const void *_mesg)
{
const H5O_fill_new_t *mesg = (const H5O_fill_new_t *)_mesg;
size_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_new_size);
assert(f);
@@ -507,7 +507,7 @@ static size_t
H5O_fill_size(const H5F_t UNUSED *f, const void *_mesg)
{
const H5O_fill_t *mesg = (const H5O_fill_t *)_mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_size);
assert(f);
@@ -541,8 +541,8 @@ H5O_fill_new_reset(void *_mesg)
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_new_reset);
assert(mesg);
-
- if(mesg->buf)
+
+ if(mesg->buf)
mesg->buf = H5MM_xfree(mesg->buf);
mesg->size = -1;
if (mesg->type) {
@@ -579,15 +579,15 @@ H5O_fill_reset(void *_mesg)
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_reset);
assert(mesg);
-
- if(mesg->buf)
+
+ if(mesg->buf)
mesg->buf = H5MM_xfree(mesg->buf);
mesg->size = 0;
if (mesg->type) {
H5T_close(mesg->type);
mesg->type = NULL;
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
@@ -666,7 +666,7 @@ H5O_fill_new_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FIL
{
const H5O_fill_new_t *mesg = (const H5O_fill_new_t *)_mesg;
H5D_fill_value_t fill_status; /* Whether the fill value is defined */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_new_debug);
assert(f);
@@ -744,7 +744,7 @@ H5O_fill_new_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FIL
} else {
fprintf(stream, "<dataset type>\n");
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
@@ -768,7 +768,7 @@ H5O_fill_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FILE *s
int indent, int fwidth)
{
const H5O_fill_t *mesg = (const H5O_fill_t *)_mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_fill_debug);
assert(f);
@@ -786,7 +786,7 @@ H5O_fill_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FILE *s
} else {
fprintf(stream, "<dataset type>\n");
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
diff --git a/src/H5Olayout.c b/src/H5Olayout.c
index 11ef9f4..aed52e9 100644
--- a/src/H5Olayout.c
+++ b/src/H5Olayout.c
@@ -58,7 +58,7 @@ const H5O_class_t H5O_LAYOUT[1] = {{
H5O_layout_debug, /*debug the message */
}};
-/* For forward and backward compatibility. Version is 1 when space is
+/* For forward and backward compatibility. Version is 1 when space is
* allocated; 2 when space is delayed for allocation; 3
* is revised to just store information needed for each storage type. */
#define H5O_LAYOUT_VERSION_1 1
@@ -344,7 +344,7 @@ H5O_layout_encode(H5F_t *f, uint8_t *p, const void *_mesg)
HGOTO_ERROR(H5E_OHDR, H5E_CANTENCODE, FAIL, "Invalid layout class");
} /* end switch */
} /* end else */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -380,7 +380,7 @@ H5O_layout_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
assert(mesg);
if (!dest && NULL==(dest=H5FL_MALLOC(H5O_layout_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
/* copy */
*dest = *mesg;
@@ -404,20 +404,20 @@ done:
/*-------------------------------------------------------------------------
* Function: H5O_layout_meta_size
- *
+ *
* Purpose: Returns the size of the raw message in bytes except raw data
- * part for compact dataset. This function doesn't take into
+ * part for compact dataset. This function doesn't take into
* account message alignment.
- *
+ *
* Return: Success: Message data size in bytes(except raw data
* for compact dataset)
* Failure: 0
- *
+ *
* Programmer: Raymond Lu
- * August 14, 2002
- *
+ * August 14, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
size_t
@@ -426,17 +426,17 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
/* Casting away const OK - QAK */
H5O_layout_t *mesg = (H5O_layout_t *) _mesg;
size_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_layout_meta_size);
-
+
/* check args */
assert(f);
assert(mesg);
-
+
/* Check version information for new datasets */
if(mesg->version==0) {
unsigned u;
-
+
/* Check for dimension that would be truncated */
assert(mesg->unused.ndims > 0 && mesg->unused.ndims <= H5O_LAYOUT_NDIMS);
for (u = 0; u < mesg->unused.ndims; u++)
@@ -452,11 +452,11 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
if(mesg->type==H5D_CONTIGUOUS) {
if(mesg->u.contig.addr==HADDR_UNDEF)
mesg->version = H5O_LAYOUT_VERSION_2;
- else
+ else
mesg->version = H5O_LAYOUT_VERSION_1;
} else if(mesg->type==H5D_COMPACT) {
mesg->version = H5O_LAYOUT_VERSION_2;
- } else
+ } else
mesg->version = H5O_LAYOUT_VERSION_1;
} /* end if */
} /* end if */
@@ -472,7 +472,7 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
if(mesg->type==H5D_COMPACT)
ret_value += 4; /* size field for compact dataset */
else
- ret_value += H5F_SIZEOF_ADDR(f); /* file address of data or B-tree for chunked dataset */
+ ret_value += H5F_SIZEOF_ADDR(f); /* file address of data or B-tree for chunked dataset */
} /* end if */
else {
ret_value = 1 + /* Version number */
@@ -480,8 +480,8 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
switch(mesg->type) {
case H5D_CONTIGUOUS:
- ret_value += H5F_SIZEOF_ADDR(f); /* Address of data */
- ret_value += H5F_SIZEOF_SIZE(f); /* Length of data */
+ ret_value += H5F_SIZEOF_ADDR(f); /* Address of data */
+ ret_value += H5F_SIZEOF_SIZE(f); /* Length of data */
break;
case H5D_CHUNKED:
@@ -490,7 +490,7 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
ret_value++;
/* B-tree address */
- ret_value += H5F_SIZEOF_ADDR(f); /* Address of data */
+ ret_value += H5F_SIZEOF_ADDR(f); /* Address of data */
/* Dimension sizes */
ret_value += mesg->u.chunk.ndims*4;
@@ -506,15 +506,15 @@ H5O_layout_meta_size(const H5F_t *f, const void *_mesg)
} /* end switch */
} /* end else */
-done:
+done:
FUNC_LEAVE_NOAPI(ret_value);
-}
-
+}
+
/*-------------------------------------------------------------------------
* Function: H5O_layout_size
*
- * Purpose: Returns the size of the raw message in bytes. If it's
+ * Purpose: Returns the size of the raw message in bytes. If it's
* compact dataset, the data part is also included.
* This function doesn't take into account message alignment.
*
diff --git a/src/H5Omtime.c b/src/H5Omtime.c
index ad398ae..c113676 100644
--- a/src/H5Omtime.c
+++ b/src/H5Omtime.c
@@ -26,7 +26,7 @@
#include "H5MMprivate.h"
#include "H5Opkg.h" /* Object header functions */
-#if defined (WIN32) && !defined (__MWERKS__)
+#if defined (WIN32) && !defined (__MWERKS__)
#include <sys/types.h>
#include <sys/timeb.h>
#endif
@@ -83,8 +83,8 @@ const H5O_class_t H5O_MTIME_NEW[1] = {{
}};
/* Current version of new mtime information */
-#define H5O_MTIME_VERSION 1
-
+#define H5O_MTIME_VERSION 1
+
/* Track whether tzset routine was called */
static int ntzset=0;
@@ -243,12 +243,12 @@ H5O_mtime_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
the_time -= tz.tz_minuteswest * 60 - (tm.tm_isdst ? 3600 : 0);
}
-#elif defined (WIN32)
+#elif defined (WIN32)
#if !defined (__MWERKS__) /* MSVC */
{
struct timeb timebuffer;
long tz;
-
+
ftime(&timebuffer);
tz = timebuffer.timezone;
/* daylight is not handled properly. Currently we just hard-code
@@ -272,7 +272,7 @@ H5O_mtime_decode(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const uint8_t *p,
/* Irix64 */
HGOTO_ERROR(H5E_OHDR, H5E_CANTINIT, NULL, "unable to obtain local timezone information");
#endif
-
+
/* The return value */
if (NULL==(mesg = H5FL_MALLOC(time_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
@@ -305,7 +305,7 @@ static herr_t
H5O_mtime_new_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg)
{
const time_t *mesg = (const time_t *) _mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_mtime_new_encode);
/* check args */
@@ -348,7 +348,7 @@ H5O_mtime_encode(H5F_t UNUSED *f, uint8_t *p, const void *_mesg)
{
const time_t *mesg = (const time_t *) _mesg;
struct tm *tm;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_mtime_encode);
/* check args */
@@ -397,7 +397,7 @@ H5O_mtime_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
assert(mesg);
if (!dest && NULL==(dest = H5FL_MALLOC(time_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
/* copy */
*dest = *mesg;
@@ -548,7 +548,7 @@ H5O_mtime_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FILE *
const time_t *mesg = (const time_t *)_mesg;
struct tm *tm;
char buf[128];
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_mtime_debug);
/* check args */
@@ -560,7 +560,7 @@ H5O_mtime_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *_mesg, FILE *
/* debug */
tm = HDlocaltime(mesg);
-
+
HDstrftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S %Z", tm);
fprintf(stream, "%*s%-*s %s\n", indent, "", fwidth,
"Time:", buf);
diff --git a/src/H5Oname.c b/src/H5Oname.c
index e76e3a8..3934830 100644
--- a/src/H5Oname.c
+++ b/src/H5Oname.c
@@ -20,7 +20,7 @@
*
* Purpose: Object name message.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
@@ -176,7 +176,7 @@ H5O_name_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
assert(mesg);
if (!dest && NULL==(dest = H5MM_calloc(sizeof(H5O_name_t))))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
/* copy */
*dest = *mesg;
if((dest->s = H5MM_xstrdup(mesg->s))==NULL)
diff --git a/src/H5Onull.c b/src/H5Onull.c
index 69bee7d..1d81da8 100644
--- a/src/H5Onull.c
+++ b/src/H5Onull.c
@@ -20,7 +20,7 @@
*
* Purpose: The null message.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
diff --git a/src/H5Opkg.h b/src/H5Opkg.h
index bec95d7..7217e53 100644
--- a/src/H5Opkg.h
+++ b/src/H5Opkg.h
@@ -124,8 +124,8 @@ H5_DLLVAR const H5O_class_t H5O_DTYPE[1];
H5_DLLVAR const H5O_class_t H5O_FILL[1];
/*
- * New Fill Value Message. The new fill value message is fill value plus
- * space allocation time and fill value writing time and whether fill
+ * New Fill Value Message. The new fill value message is fill value plus
+ * space allocation time and fill value writing time and whether fill
* value is defined.
*/
H5_DLLVAR const H5O_class_t H5O_FILL_NEW[1];
diff --git a/src/H5Opline.c b/src/H5Opline.c
index 7c1dba6f..280c8db 100644
--- a/src/H5Opline.c
+++ b/src/H5Opline.c
@@ -178,7 +178,7 @@ H5O_pline_encode (H5F_t UNUSED *f, uint8_t *p/*out*/, const void *mesg)
size_t i, j, name_length;
const char *name=NULL;
H5Z_class_t *cls=NULL;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_pline_encode);
/* Check args */
@@ -251,7 +251,7 @@ H5O_pline_copy (const void *_src, void *_dst/*out*/, unsigned UNUSED update_flag
H5O_pline_t *dst = (H5O_pline_t *)_dst;
size_t i;
H5O_pline_t *ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_pline_copy);
if (!dst && NULL==(dst = H5FL_MALLOC (H5O_pline_t)))
@@ -266,7 +266,7 @@ H5O_pline_copy (const void *_src, void *_dst/*out*/, unsigned UNUSED update_flag
} else {
dst->filter = NULL;
}
-
+
for (i=0; i<src->nused; i++) {
dst->filter[i] = src->filter[i];
if (src->filter[i].name) {
@@ -326,7 +326,7 @@ H5O_pline_size (const H5F_t UNUSED *f, const void *mesg)
const char *name = NULL;
H5Z_class_t *cls = NULL;
size_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_pline_size);
/* Message header */
@@ -340,14 +340,14 @@ H5O_pline_size (const H5F_t UNUSED *f, const void *mesg)
(cls=H5Z_find(pline->filter[i].id)))
name = cls->name;
name_len = name ? HDstrlen(name)+1 : 0;
-
+
ret_value += 2 + /*filter identification number */
2 + /*name length */
2 + /*flags */
2 + /*number of client data values */
H5O_ALIGN(name_len); /*length of the filter name */
-
+
ret_value += pline->filter[i].cd_nelmts * 4;
if (pline->filter[i].cd_nelmts % 2)
ret_value += 4;
@@ -377,7 +377,7 @@ H5O_pline_reset (void *mesg)
{
H5O_pline_t *pline = (H5O_pline_t*)mesg;
size_t i;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_pline_reset);
assert (pline);
@@ -487,6 +487,6 @@ H5O_pline_debug (H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *mesg, FILE *
(unsigned long)(pline->filter[i].cd_values[j]));
}
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
diff --git a/src/H5Oprivate.h b/src/H5Oprivate.h
index aae2695..c6d6726 100644
--- a/src/H5Oprivate.h
+++ b/src/H5Oprivate.h
@@ -85,8 +85,8 @@ typedef struct H5O_fill_t {
} H5O_fill_t;
/*
- * New Fill Value Message. The new fill value message is fill value plus
- * space allocation time and fill value writing time and whether fill
+ * New Fill Value Message. The new fill value message is fill value plus
+ * space allocation time and fill value writing time and whether fill
* value is defined.
*/
@@ -95,8 +95,8 @@ typedef struct H5O_fill_new_t {
ssize_t size; /*number of bytes in the fill value */
void *buf; /*the fill value */
H5D_alloc_time_t alloc_time; /* time to allocate space */
- H5D_fill_time_t fill_time; /* time to write fill value */
- hbool_t fill_defined; /* whether fill value is defined */
+ H5D_fill_time_t fill_time; /* time to write fill value */
+ hbool_t fill_defined; /* whether fill value is defined */
} H5O_fill_new_t;
/*
@@ -127,12 +127,12 @@ typedef struct H5O_efl_t {
#define H5O_LAYOUT_NDIMS (H5S_MAX_RANK+1)
typedef struct H5O_layout_contig_t {
- haddr_t addr; /* File address of data */
+ haddr_t addr; /* File address of data */
hsize_t size; /* Size of data in bytes */
} H5O_layout_contig_t;
typedef struct H5O_layout_chunk_t {
- haddr_t addr; /* File address of B-tree */
+ haddr_t addr; /* File address of B-tree */
unsigned ndims; /* Num dimensions in chunk */
size_t dim[H5O_LAYOUT_NDIMS]; /* Size of chunk in elements */
size_t size; /* Size of chunk in bytes */
@@ -140,7 +140,7 @@ typedef struct H5O_layout_chunk_t {
} H5O_layout_chunk_t;
typedef struct H5O_layout_compact_t {
- hbool_t dirty; /* Dirty flag for compact dataset */
+ hbool_t dirty; /* Dirty flag for compact dataset */
size_t size; /* Size of buffer in bytes */
void *buf; /* Buffer for compact dataset */
} H5O_layout_compact_t;
@@ -248,7 +248,7 @@ H5_DLL int H5O_modify(H5G_entry_t *ent, unsigned type_id,
int overwrite, unsigned flags, unsigned update_flags, const void *mesg, hid_t dxpl_id);
H5_DLL struct H5O_t * H5O_protect(H5G_entry_t *ent, hid_t dxpl_id);
H5_DLL herr_t H5O_unprotect(H5G_entry_t *ent, struct H5O_t *oh, hid_t dxpl_id);
-H5_DLL int H5O_append(H5F_t *f, hid_t dxpl_id, struct H5O_t *oh, unsigned type_id,
+H5_DLL int H5O_append(H5F_t *f, hid_t dxpl_id, struct H5O_t *oh, unsigned type_id,
unsigned flags, const void *mesg);
H5_DLL herr_t H5O_touch(H5G_entry_t *ent, hbool_t force, hid_t dxpl_id);
H5_DLL herr_t H5O_touch_oh(H5F_t *f, struct H5O_t *oh, hbool_t force);
diff --git a/src/H5Osdspace.c b/src/H5Osdspace.c
index acf177e..9f1ba67 100644
--- a/src/H5Osdspace.c
+++ b/src/H5Osdspace.c
@@ -83,7 +83,7 @@ H5FL_ARR_EXTERN(hsize_t);
Robb Matzke, 1998-04-09
The current and maximum dimensions are now H5F_SIZEOF_SIZET bytes
instead of just four bytes.
-
+
Robb Matzke, 1998-07-20
Added a version number and reformatted the message for aligment.
--------------------------------------------------------------------------*/
@@ -94,7 +94,7 @@ H5O_sdspace_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p, H5O_shared_
void *ret_value;
unsigned i; /* local counting variable */
unsigned flags, version;
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_sdspace_decode);
/* check args */
@@ -145,7 +145,7 @@ H5O_sdspace_decode(H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *p, H5O_shared_
/* Set return value */
ret_value = (void*)sdim; /*success*/
-
+
done:
if (!ret_value && sdim) {
H5S_extent_release(sdim);
@@ -160,7 +160,7 @@ done:
NAME
H5O_sdspace_encode
PURPOSE
- Encode a simple dimensionality message
+ Encode a simple dimensionality message
USAGE
herr_t H5O_sdspace_encode(f, raw_size, p, mesg)
H5F_t *f; IN: pointer to the HDF5 file struct
@@ -177,7 +177,7 @@ done:
Robb Matzke, 1998-04-09
The current and maximum dimensions are now H5F_SIZEOF_SIZET bytes
instead of just four bytes.
-
+
Robb Matzke, 1998-07-20
Added a version number and reformatted the message for aligment.
--------------------------------------------------------------------------*/
@@ -213,7 +213,7 @@ H5O_sdspace_encode(H5F_t *f, uint8_t *p, const void *mesg)
for (u = 0; u < sdim->rank; u++)
H5F_ENCODE_LENGTH (f, p, sdim->size[u]);
if (flags & H5S_VALID_MAX) {
- for (u = 0; u < sdim->rank; u++)
+ for (u = 0; u < sdim->rank; u++)
H5F_ENCODE_LENGTH (f, p, sdim->max[u]);
}
}
@@ -293,7 +293,7 @@ static size_t
H5O_sdspace_size(const H5F_t *f, const void *mesg)
{
const H5S_extent_t *space = (const H5S_extent_t *) mesg;
-
+
/*
* All dimensionality messages are at least 8 bytes long.
*/
@@ -330,7 +330,7 @@ static herr_t
H5O_sdspace_reset(void *_mesg)
{
H5S_extent_t *mesg = (H5S_extent_t*)_mesg;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_sdspace_reset);
H5S_extent_release(mesg);
@@ -381,7 +381,7 @@ H5O_sdspace_free (void *mesg)
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
- This function prints debugging output to the stream passed as a
+ This function prints debugging output to the stream passed as a
parameter.
--------------------------------------------------------------------------*/
static herr_t
@@ -403,13 +403,13 @@ H5O_sdspace_debug(H5F_t UNUSED *f, hid_t UNUSED dxpl_id, const void *mesg,
HDfprintf(stream, "%*s%-*s %lu\n", indent, "", fwidth,
"Rank:",
(unsigned long) (sdim->rank));
-
+
if(sdim->rank>0) {
HDfprintf(stream, "%*s%-*s {", indent, "", fwidth, "Dim Size:");
for (u = 0; u < sdim->rank; u++)
HDfprintf (stream, "%s%Hu", u?", ":"", sdim->size[u]);
HDfprintf (stream, "}\n");
-
+
HDfprintf(stream, "%*s%-*s ", indent, "", fwidth, "Dim Max:");
if (sdim->max) {
HDfprintf (stream, "{");
diff --git a/src/H5Oshared.c b/src/H5Oshared.c
index 8f4f558..c898a10 100644
--- a/src/H5Oshared.c
+++ b/src/H5Oshared.c
@@ -209,7 +209,7 @@ H5O_shared_decode (H5F_t *f, hid_t UNUSED dxpl_id, const uint8_t *buf, H5O_share
H5O_shared_t *mesg=NULL;
unsigned flags, version;
void *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5O_shared_decode);
/* Check args */
@@ -283,7 +283,7 @@ H5O_shared_encode (H5F_t *f, uint8_t *buf/*out*/, const void *_mesg)
{
const H5O_shared_t *mesg = (const H5O_shared_t *)_mesg;
unsigned flags;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_shared_encode);
/* Check args */
@@ -353,7 +353,7 @@ H5O_shared_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
assert(mesg);
if (!dest && NULL==(dest = H5MM_malloc (sizeof(H5O_shared_t))))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
/* copy */
*dest = *mesg;
@@ -386,12 +386,12 @@ H5O_shared_size (const H5F_t *f, const void *_mesg)
{
const H5O_shared_t *shared = (const H5O_shared_t *) _mesg;
size_t ret_value;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5O_shared_size);
ret_value = 1 + /*version */
1 + /*the flags field */
- (shared->in_gh ?
+ (shared->in_gh ?
(H5F_SIZEOF_ADDR(f)+4) : /*sharing via global heap */
H5F_SIZEOF_ADDR(f)); /*sharing by another obj hdr */
@@ -516,6 +516,6 @@ H5O_shared_debug (H5F_t UNUSED *f, hid_t dxpl_id, const void *_mesg,
H5G_ent_debug (f, dxpl_id, &(mesg->u.ent), stream, indent, fwidth,
HADDR_UNDEF);
}
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
}
diff --git a/src/H5Ostab.c b/src/H5Ostab.c
index b3a3fd5..7bb06d5 100644
--- a/src/H5Ostab.c
+++ b/src/H5Ostab.c
@@ -20,7 +20,7 @@
*
* Purpose: Symbol table messages.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
@@ -231,7 +231,7 @@ H5O_stab_copy(const void *_mesg, void *_dest, unsigned UNUSED update_flags)
assert(stab);
if (!dest && NULL==(dest = H5FL_MALLOC(H5O_stab_t)))
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed");
-
+
/* copy */
*dest = *stab;
diff --git a/src/H5P.c b/src/H5P.c
index 5720de7..e82b275 100644
--- a/src/H5P.c
+++ b/src/H5P.c
@@ -39,7 +39,7 @@
/* Local variables */
/*
- * Predefined property list classes. These are initialized at runtime by
+ * Predefined property list classes. These are initialized at runtime by
* H5P_init_interface() in this source file.
*/
hid_t H5P_CLS_NO_CLASS_g = FAIL;
@@ -195,7 +195,7 @@ NAME
H5P_init_interface -- Initialize interface-specific information
USAGE
herr_t H5P_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -393,7 +393,7 @@ H5P_copy_pclass(H5P_genclass_t *pclass)
assert(pclass);
- /*
+ /*
* Create new property class object
*/
@@ -469,12 +469,12 @@ H5P_copy_plist(H5P_genplist_t *old_plist)
size_t nseen; /* Number of items 'seen' */
hbool_t has_parent_class; /* Flag to indicate that this property list's class has a parent */
hid_t ret_value=FAIL; /* return value */
-
+
FUNC_ENTER_NOAPI(H5P_copy_plist, FAIL);
assert(old_plist);
- /*
+ /*
* Create new property list object
*/
@@ -1428,7 +1428,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
hid_t
-H5Pcreate_class(hid_t parent, const char *name,
+H5Pcreate_class(hid_t parent, const char *name,
H5P_cls_create_func_t cls_create, void *create_data,
H5P_cls_copy_func_t cls_copy, void *copy_data,
H5P_cls_close_func_t cls_close, void *close_data
@@ -1451,7 +1451,7 @@ H5Pcreate_class(hid_t parent, const char *name,
|| (copy_data!=NULL && cls_copy==NULL)
|| (close_data!=NULL && cls_close==NULL))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "data specified, but no callback provided");
-
+
/* Get the pointer to the parent class */
if(parent==H5P_DEFAULT)
par_class=NULL;
@@ -1512,7 +1512,7 @@ H5P_create(H5P_genclass_t *pclass)
assert(pclass);
- /*
+ /*
* Create new property list object
*/
@@ -2262,7 +2262,7 @@ done:
transformation, etc. A single 'get' or 'set' callback could handle
multiple properties by performing different actions based on the property
name or other properties in the property list.
-
+
There is no 'create' callback routine for temporary property list
objects, the initial value is assumed to have any necessary setup already
performed on it.
@@ -2280,7 +2280,7 @@ done:
herr_t
H5P_insert(H5P_genplist_t *plist, const char *name, size_t size,
void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get,
- H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
+ H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
H5P_prp_compare_func_t prp_cmp, H5P_prp_close_func_t prp_close)
{
H5P_genprop_t *new_prop=NULL; /* Temporary property pointer */
@@ -2460,7 +2460,7 @@ done:
transformation, etc. A single 'get' or 'set' callback could handle
multiple properties by performing different actions based on the property
name or other properties in the property list.
-
+
There is no 'create' callback routine for temporary property list
objects, the initial value is assumed to have any necessary setup already
performed on it.
@@ -2478,7 +2478,7 @@ done:
herr_t
H5Pinsert(hid_t plist_id, const char *name, size_t size, void *value,
H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get,
- H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
+ H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
H5P_prp_close_func_t prp_close)
{
H5P_genplist_t *plist; /* Property list to modify */
@@ -2869,7 +2869,7 @@ H5Pexist(hid_t id, const char *name)
if ((ret_value=H5P_exist_plist(plist,name))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "property does not exist in list");
} /* end if */
- else
+ else
if(H5I_GENPROP_CLS == H5I_get_type(id)) {
if (NULL == (pclass = H5I_object(id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property class");
@@ -3025,7 +3025,7 @@ H5Pget_size(hid_t id, const char *name, size_t *size)
if ((ret_value=H5P_get_size_plist(plist,name,size))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to query size in plist");
} /* end if */
- else
+ else
if (H5I_GENPROP_CLS == H5I_get_type(id)) {
if (NULL == (pclass = H5I_object(id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property list");
@@ -3034,7 +3034,7 @@ H5Pget_size(hid_t id, const char *name, size_t *size)
if ((ret_value=H5P_get_size_pclass(pclass,name,size))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to query size in plist");
} /* end if */
- else
+ else
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property object");
done:
@@ -3249,7 +3249,7 @@ H5Pget_nprops(hid_t id, size_t *nprops)
if (H5P_get_nprops_plist(plist,nprops)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to query # of properties in plist");
} /* end if */
- else
+ else
if(H5I_GENPROP_CLS == H5I_get_type(id)) {
if (NULL == (pclass = H5I_object(id)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property class");
@@ -3358,7 +3358,7 @@ done:
NAME
H5P_cmp_class
PURPOSE
- Internal routine to compare two generic property classes
+ Internal routine to compare two generic property classes
USAGE
int H5P_cmp_class(pclass1, pclass2)
H5P_genclass_t *pclass1; IN: 1st property class to compare
@@ -3464,7 +3464,7 @@ done:
NAME
H5P_cmp_plist
PURPOSE
- Internal routine to compare two generic property lists
+ Internal routine to compare two generic property lists
USAGE
int H5P_cmp_plist(plist1, plist2)
H5P_genplist_t *plist1; IN: 1st property list to compare
@@ -3837,27 +3837,27 @@ The iteration begins with the IDX property in the object and the next element
to be processed by the operator is returned in IDX. If IDX is NULL, then the
iterator starts at the first property; since no stopping point is returned in
this case, the iterator cannot be restarted if one of the calls to its operator
-returns non-zero.
+returns non-zero.
-The prototype for H5P_iterate_t is:
- typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
+The prototype for H5P_iterate_t is:
+ typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
The operation receives the property list or class identifier for the object
being iterated over, ID, the name of the current property within the object,
-NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
+NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
-The return values from an operator are:
+The return values from an operator are:
Zero causes the iterator to continue, returning zero when all properties
- have been processed.
+ have been processed.
Positive causes the iterator to immediately return that positive value,
indicating short-circuit success. The iterator can be restarted at the
- index of the next property.
+ index of the next property.
Negative causes the iterator to immediately return that value, indicating
failure. The iterator can be restarted at the index of the next
property.
H5Piterate assumes that the properties in the object identified by ID remains
unchanged through the iteration. If the membership changes during the
-iteration, the function's behavior is undefined.
+iteration, the function's behavior is undefined.
GLOBAL VARIABLES
COMMENTS, BUGS, ASSUMPTIONS
@@ -3995,27 +3995,27 @@ The iteration begins with the IDX property in the object and the next element
to be processed by the operator is returned in IDX. If IDX is NULL, then the
iterator starts at the first property; since no stopping point is returned in
this case, the iterator cannot be restarted if one of the calls to its operator
-returns non-zero.
+returns non-zero.
-The prototype for H5P_iterate_t is:
- typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
+The prototype for H5P_iterate_t is:
+ typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
The operation receives the property list or class identifier for the object
being iterated over, ID, the name of the current property within the object,
-NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
+NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
-The return values from an operator are:
+The return values from an operator are:
Zero causes the iterator to continue, returning zero when all properties
- have been processed.
+ have been processed.
Positive causes the iterator to immediately return that positive value,
indicating short-circuit success. The iterator can be restarted at the
- index of the next property.
+ index of the next property.
Negative causes the iterator to immediately return that value, indicating
failure. The iterator can be restarted at the index of the next
property.
H5Piterate assumes that the properties in the object identified by ID remains
unchanged through the iteration. If the membership changes during the
-iteration, the function's behavior is undefined.
+iteration, the function's behavior is undefined.
GLOBAL VARIABLES
COMMENTS, BUGS, ASSUMPTIONS
@@ -4099,25 +4099,25 @@ is returned in this case, the iterator cannot be restarted if one of the calls
to its operator returns non-zero. The IDX value is 0-based (ie. to start at
the "first" property, the IDX value should be 0).
-The prototype for H5P_iterate_t is:
- typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
+The prototype for H5P_iterate_t is:
+ typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
The operation receives the property list or class identifier for the object
being iterated over, ID, the name of the current property within the object,
-NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
+NAME, and the pointer to the operator data passed in to H5Piterate, ITER_DATA.
-The return values from an operator are:
+The return values from an operator are:
Zero causes the iterator to continue, returning zero when all properties
- have been processed.
+ have been processed.
Positive causes the iterator to immediately return that positive value,
indicating short-circuit success. The iterator can be restarted at the
- index of the next property.
+ index of the next property.
Negative causes the iterator to immediately return that value, indicating
failure. The iterator can be restarted at the index of the next
property.
H5Piterate assumes that the properties in the object identified by ID remains
unchanged through the iteration. If the membership changes during the
-iteration, the function's behavior is undefined.
+iteration, the function's behavior is undefined.
GLOBAL VARIABLES
COMMENTS, BUGS, ASSUMPTIONS
@@ -4144,13 +4144,13 @@ H5Piterate(hid_t id, int *idx, H5P_iterate_t iter_func, void *iter_data)
if ((ret_value=H5P_iterate_plist(id,(idx ? idx : &fake_idx),iter_func,iter_data))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to iterate over list");
} /* end if */
- else
+ else
if (H5I_GENPROP_CLS == H5I_get_type(id)) {
/* Iterate over a property class */
if ((ret_value=H5P_iterate_pclass(id,(idx ? idx : &fake_idx),iter_func,iter_data))<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "unable to iterate over class");
} /* end if */
- else
+ else
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a property object");
done:
@@ -4736,7 +4736,7 @@ done:
Failure: negative value.
DESCRIPTION
Copies a property from one property list to another.
-
+
If a property is copied from one list to another, the property will be
first deleted from the destination list (generating a call to the 'close'
callback for the property, if one exists) and then the property is copied
@@ -4845,12 +4845,12 @@ done:
Failure: negative value.
DESCRIPTION
Copies a property from one property class to another.
-
+
If a property is copied from one class to another, all the property
information will be first deleted from the destination class and then the
property information will be copied from the source class into the
destination class.
-
+
If the property does not exist in the destination class or list, this call
is equivalent to calling H5Pregister.
@@ -4908,12 +4908,12 @@ done:
Failure: negative value.
DESCRIPTION
Copies a property from one property list or class to another.
-
+
If a property is copied from one class to another, all the property
information will be first deleted from the destination class and then the
property information will be copied from the source class into the
destination class.
-
+
If a property is copied from one list to another, the property will be
first deleted from the destination list (generating a call to the 'close'
callback for the property, if one exists) and then the property is copied
diff --git a/src/H5Pdcpl.c b/src/H5Pdcpl.c
index 00fef64..ac1367e 100644
--- a/src/H5Pdcpl.c
+++ b/src/H5Pdcpl.c
@@ -112,7 +112,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -159,7 +159,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and get property for
+ * Changed the way to check parameter and get property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -205,7 +205,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -274,7 +274,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -295,10 +295,10 @@ H5Pget_chunk(hid_t plist_id, int max_ndims, hsize_t dim[]/*out*/)
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
if(H5P_get(plist, H5D_CRT_LAYOUT_NAME, &layout) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "can't get layout");
- if(H5D_CHUNKED != layout)
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "can't get layout");
+ if(H5D_CHUNKED != layout)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "not a chunked storage layout");
-
+
if(H5P_get(plist, H5D_CRT_CHUNK_DIM_NAME, &ndims) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get chunk dimensionality");
@@ -347,7 +347,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -388,7 +388,7 @@ H5Pset_external(hid_t plist_id, const char *name, off_t offset, hsize_t size)
HGOTO_ERROR (H5E_EFL, H5E_OVERFLOW, FAIL, "total external data size overflowed");
} /* end for */
} /* end if */
-
+
/* Add to the list */
if (efl.nused >= efl.nalloc) {
@@ -406,7 +406,7 @@ H5Pset_external(hid_t plist_id, const char *name, off_t offset, hsize_t size)
efl.slot[idx].offset = offset;
efl.slot[idx].size = size;
efl.nused++;
-
+
if(H5P_set(plist, H5D_CRT_EXT_FILE_LIST_NAME, &efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTINIT, FAIL, "can't set external file list");
@@ -431,7 +431,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -445,7 +445,7 @@ H5Pget_external_count(hid_t plist_id)
FUNC_ENTER_API(H5Pget_external_count, FAIL);
H5TRACE1("Is","i",plist_id);
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -453,10 +453,10 @@ H5Pget_external_count(hid_t plist_id)
/* Get value */
if(H5P_get(plist, H5D_CRT_EXT_FILE_LIST_NAME, &efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get external file list");
-
+
/* Set return value */
ret_value=(int)efl.nused;
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -488,7 +488,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and get property for
+ * Changed the way to check parameter and get property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -503,7 +503,7 @@ H5Pget_external(hid_t plist_id, unsigned idx, size_t name_size, char *name/*out*
FUNC_ENTER_API(H5Pget_external, FAIL);
H5TRACE6("e","iIuzxxx",plist_id,idx,name_size,name,offset,size);
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -511,7 +511,7 @@ H5Pget_external(hid_t plist_id, unsigned idx, size_t name_size, char *name/*out*
/* Get value */
if(H5P_get(plist, H5D_CRT_EXT_FILE_LIST_NAME, &efl) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get external file list");
-
+
if (idx>=efl.nused)
HGOTO_ERROR (H5E_ARGS, H5E_BADRANGE, FAIL, "external file index is out of range");
@@ -644,7 +644,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
+ * Changed the way to check parameter and set property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -752,7 +752,7 @@ done:
* value between zero and N-1 as described for H5Pget_nfilters()
* and the function will return failure if the filter number is
* out or range.
- *
+ *
* Return: Success: Filter identification number.
*
* Failure: H5Z_FILTER_ERROR (Negative)
@@ -764,8 +764,8 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check paramter and set property for
- * generic property list.
+ * Changed the way to check paramter and set property for
+ * generic property list.
*
*-------------------------------------------------------------------------
*/
@@ -779,7 +779,7 @@ H5Pget_filter(hid_t plist_id, unsigned idx, unsigned int *flags/*out*/,
H5P_genplist_t *plist; /* Property list pointer */
size_t i; /* Local index variable */
H5Z_filter_t ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Pget_filter, H5Z_FILTER_ERROR);
H5TRACE7("Zf","iIux*zxzx",plist_id,idx,flags,cd_nelmts,cd_values,namelen,
name);
@@ -843,7 +843,7 @@ H5Pget_filter(hid_t plist_id, unsigned idx, unsigned int *flags/*out*/,
else
name[0] = '\0';
}
-
+
/* Set return value */
ret_value=filter->id;
@@ -864,7 +864,7 @@ done:
* number of values defined by the filter. The ID should be the
* filter ID to retrieve the parameters for. If the filter is not
* set for the property list, an error will be returned.
- *
+ *
* Return: Success: Non-negative
* Failure: Negative
*
@@ -885,11 +885,11 @@ H5Pget_filter_by_id(hid_t plist_id, H5Z_filter_t id, unsigned int *flags/*out*/,
H5P_genplist_t *plist; /* Property list pointer */
size_t i; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pget_filter_by_id, FAIL);
H5TRACE7("e","iZfx*zxzx",plist_id,id,flags,cd_nelmts,cd_values,namelen,
name);
-
+
/* Check args */
if (cd_nelmts || cd_values) {
if (cd_nelmts && *cd_nelmts>256)
@@ -957,7 +957,7 @@ done:
*
* Purpose: This is a query routine to verify that all the filters set
* in the dataset creation property list are available currently.
- *
+ *
* Return: Success: TRUE if all filters available, FALSE if one or
* more filters not currently available.
* Failure: FAIL on error
@@ -975,10 +975,10 @@ H5Pall_filters_avail(hid_t plist_id)
H5O_pline_t pline; /* Filter pipeline */
H5P_genplist_t *plist; /* Property list pointer */
hbool_t ret_value=TRUE; /* return value */
-
+
FUNC_ENTER_API(H5Pall_filters_avail, UFAIL);
H5TRACE1("t","i",plist_id);
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, UFAIL, "can't find object for ID");
@@ -1016,8 +1016,8 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
- * generic property list.
+ * Changed the way to check parameter and set property for
+ * generic property list.
*
*-------------------------------------------------------------------------
*/
@@ -1027,14 +1027,14 @@ H5Pset_deflate(hid_t plist_id, unsigned level)
H5O_pline_t pline;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_deflate, FAIL);
H5TRACE2("e","iIu",plist_id,level);
/* Check arguments */
if (level>9)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "invalid deflate level");
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -1081,7 +1081,7 @@ H5Pset_szip(hid_t plist_id, unsigned options_mask, unsigned pixels_per_block)
H5P_genplist_t *plist; /* Property list pointer */
unsigned cd_values[2]; /* Filter parameters */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_szip, FAIL);
H5TRACE3("e","iIuIu",plist_id,options_mask,pixels_per_block);
@@ -1095,7 +1095,7 @@ H5Pset_szip(hid_t plist_id, unsigned options_mask, unsigned pixels_per_block)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "pixels_per_block is not even");
if (pixels_per_block>H5_SZIP_MAX_PIXELS_PER_BLOCK)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, FAIL, "pixels_per_block is too large");
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -1131,10 +1131,10 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_shuffle
*
- * Purpose: Sets the shuffling method for a permanent
+ * Purpose: Sets the shuffling method for a permanent
* filter to H5Z_FILTER_SHUFFLE
- * and bytes of the datatype of the array to be shuffled
- *
+ * and bytes of the datatype of the array to be shuffled
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Kent Yang
@@ -1150,14 +1150,14 @@ H5Pset_shuffle(hid_t plist_id)
H5O_pline_t pline;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_shuffle, FAIL);
H5TRACE1("e","i",plist_id);
/* Check arguments */
if(TRUE != H5P_isa_class(plist_id, H5P_DATASET_CREATE))
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a dataset creation property list");
-
+
/* Get the plist structure */
if(NULL == (plist = H5I_object(plist_id)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -1178,7 +1178,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_fletcher32
*
- * Purpose: Sets Fletcher32 checksum of EDC for a dataset creation
+ * Purpose: Sets Fletcher32 checksum of EDC for a dataset creation
* property list.
*
* Return: Non-negative on success/Negative on failure
@@ -1196,10 +1196,10 @@ H5Pset_fletcher32(hid_t plist_id)
H5O_pline_t pline;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_fletcher32, FAIL);
H5TRACE1("e","i",plist_id);
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -1224,7 +1224,7 @@ done:
* VALUE is interpretted as being of type TYPE, which need not
* be the same type as the dataset but the library must be able
* to convert VALUE to the dataset type when the dataset is
- * created. If VALUE is NULL, it will be interpreted as
+ * created. If VALUE is NULL, it will be interpreted as
* undefining fill value.
*
* Return: Non-negative on success/Negative on failure
@@ -1236,8 +1236,8 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and set property for
- * generic property list.
+ * Changed the way to check parameter and set property for
+ * generic property list.
*
*-------------------------------------------------------------------------
*/
@@ -1248,7 +1248,7 @@ H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value)
H5T_t *type = NULL;
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_fill_value, FAIL);
H5TRACE3("e","iix",plist_id,type_id,value);
@@ -1282,7 +1282,7 @@ H5Pset_fill_value(hid_t plist_id, hid_t type_id, const void *value)
if(H5P_set(plist, H5D_CRT_FILL_VALUE_NAME, &fill) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't set fill value");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -1306,7 +1306,7 @@ done:
*
* Raymond Lu
* Tuesday, October 2, 2001
- * Changed the way to check parameter and get property for
+ * Changed the way to check parameter and get property for
* generic property list.
*
*-------------------------------------------------------------------------
@@ -1322,7 +1322,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
hid_t src_id = -1; /*source data type id */
herr_t ret_value=SUCCEED; /* Return value */
H5P_genplist_t *plist; /* Property list pointer */
-
+
FUNC_ENTER_API(H5Pget_fill_value, FAIL);
H5TRACE3("e","iix",plist_id,type_id,value);
@@ -1331,7 +1331,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type");
if (!value)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL,"no fill value output buffer");
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -1343,14 +1343,14 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
* is undefined, also return error.
*/
if(H5P_get(plist, H5D_CRT_FILL_VALUE_NAME, &fill) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value");
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value");
if(fill.size == (size_t)-1)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "fill value is undefined");
if(fill.size == 0) {
HDmemset(value, 0, H5T_get_size(type));
HGOTO_DONE(SUCCEED);
- }
+ }
/*
* Can we convert between the source and destination data types?
*/
@@ -1365,7 +1365,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
* other than the fill value buffer that is large enough for both source
* and destination. The app-supplied buffer might do okay.
*/
- if (H5T_get_size(type)>=H5T_get_size(fill.type)) {
+ if (H5T_get_size(type)>=H5T_get_size(fill.type)) {
buf = value;
if (H5T_path_bkg(tpath) && NULL==(bkg=H5MM_malloc(H5T_get_size(type))))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
@@ -1376,7 +1376,7 @@ H5Pget_fill_value(hid_t plist_id, hid_t type_id, void *value/*out*/)
bkg = value;
}
HDmemcpy(buf, fill.buf, H5T_get_size(fill.type));
-
+
/* Do the conversion */
if (H5T_convert(tpath, src_id, type_id, 1, 0, 0, buf, bkg, H5AC_dxpl_id)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "data type conversion failed");
@@ -1398,7 +1398,7 @@ done:
* Function: H5P_is_fill_value_defined
*
* Purpose: Check if fill value is defined. Internal version of function
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Raymond Lu
@@ -1430,7 +1430,7 @@ H5P_is_fill_value_defined(const struct H5O_fill_t *fill, H5D_fill_value_t *statu
*status = H5D_FILL_VALUE_USER_DEFINED;
else {
*status = H5D_FILL_VALUE_ERROR;
- HGOTO_ERROR(H5E_PLIST, H5E_BADRANGE, FAIL, "invalid combination of fill-value info");
+ HGOTO_ERROR(H5E_PLIST, H5E_BADRANGE, FAIL, "invalid combination of fill-value info");
}
done:
@@ -1442,14 +1442,14 @@ done:
* Function: H5Pfill_value_defined
*
* Purpose: Check if fill value is defined.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Raymond Lu
* Wednesday, January 16, 2002
*
* Modifications:
- *
+ *
*
*-------------------------------------------------------------------------
*/
@@ -1471,11 +1471,11 @@ H5Pfill_value_defined(hid_t plist_id, H5D_fill_value_t *status)
/* Get the fill value struct */
if(H5P_get(plist, H5D_CRT_FILL_VALUE_NAME, &fill) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value");
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get fill value");
/* Get the fill-value status */
if(H5P_is_fill_value_defined(&fill, status) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "can't check fill value status");
+ HGOTO_ERROR(H5E_PLIST, H5E_BADVALUE, FAIL, "can't check fill value status");
done:
FUNC_LEAVE_API(ret_value);
@@ -1488,14 +1488,14 @@ done:
* Purpose: Set space allocation time for dataset during creation.
* Valid values are H5D_ALLOC_TIME_DEFAULT, H5D_ALLOC_TIME_EARLY,
* H5D_ALLOC_TIME_LATE, H5D_ALLOC_TIME_INCR
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Raymond Lu
* Wednesday, January 16, 2002
*
* Modifications:
- *
+ *
*
*-------------------------------------------------------------------------
*/
@@ -1516,7 +1516,7 @@ H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time)
/* Check for resetting to default for layout type */
if(alloc_time==H5D_ALLOC_TIME_DEFAULT) {
H5D_layout_t layout; /* Type of storage layout */
-
+
/* Retrieve the storage layout */
if(H5P_get(plist, H5D_CRT_LAYOUT_NAME, &layout) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get layout");
@@ -1553,7 +1553,7 @@ H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t alloc_time)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set space allocation time");
done:
- FUNC_LEAVE_API(ret_value);
+ FUNC_LEAVE_API(ret_value);
}
@@ -1563,14 +1563,14 @@ done:
* Purpose: Get space allocation time for dataset creation.
* Valid values are H5D_ALLOC_TIME_DEFAULT, H5D_ALLOC_TIME_EARLY,
* H5D_ALLOC_TIME_LATE, H5D_ALLOC_TIME_INCR
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Raymond Lu
* Wednesday, January 16, 2002
*
* Modifications:
- *
+ *
*
*-------------------------------------------------------------------------
*/
@@ -1678,8 +1678,8 @@ done:
* Function: H5Premove_filter
*
* Purpose: Deletes a filter from the dataset creation property list;
- * deletes all filters if FILTER is H5Z_FILTER_NONE
- *
+ * deletes all filters if FILTER is H5Z_FILTER_NONE
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Pedro Vicente
diff --git a/src/H5Pdxpl.c b/src/H5Pdxpl.c
index 6d09a9e..c147b77 100644
--- a/src/H5Pdxpl.c
+++ b/src/H5Pdxpl.c
@@ -352,7 +352,7 @@ H5Pset_preserve(hid_t plist_id, hbool_t status)
H5T_bkg_t need_bkg; /* Value for background buffer type */
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_preserve, FAIL);
H5TRACE2("e","ib",plist_id,status);
@@ -392,7 +392,7 @@ H5Pget_preserve(hid_t plist_id)
H5T_bkg_t need_bkg; /* Background value */
H5P_genplist_t *plist; /* Property list pointer */
int ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Pget_preserve, FAIL);
H5TRACE1("Is","i",plist_id);
@@ -415,9 +415,9 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_edc_check
*
- * Purpose: Enable or disable error-detecting for a dataset reading
- * process. This error-detecting algorithm is whichever
- * user chooses earlier. This function cannot control
+ * Purpose: Enable or disable error-detecting for a dataset reading
+ * process. This error-detecting algorithm is whichever
+ * user chooses earlier. This function cannot control
* writing process.
*
* Return: Non-negative on success/Negative on failure
@@ -434,14 +434,14 @@ H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_edc_check, FAIL);
H5TRACE2("e","iZe",plist_id,check);
/* Check argument */
if (check != H5Z_ENABLE_EDC && check != H5Z_DISABLE_EDC)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "not a valid value");
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_XFER)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
@@ -449,7 +449,7 @@ H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check)
/* Update property list */
if (H5P_set(plist,H5D_XFER_EDC_NAME,&check)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set value");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -458,9 +458,9 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pget_edc_check
*
- * Purpose: Enable or disable error-detecting for a dataset reading
- * process. This error-detecting algorithm is whichever
- * user chooses earlier. This function cannot control
+ * Purpose: Enable or disable error-detecting for a dataset reading
+ * process. This error-detecting algorithm is whichever
+ * user chooses earlier. This function cannot control
* writing process.
*
* Return: Non-negative on success/Negative on failure
@@ -477,7 +477,7 @@ H5Pget_edc_check(hid_t plist_id)
{
H5P_genplist_t *plist; /* Property list pointer */
H5Z_EDC_t ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Pget_edc_check, H5Z_ERROR_EDC);
H5TRACE1("Ze","i",plist_id);
@@ -496,7 +496,7 @@ H5Pget_edc_check(hid_t plist_id)
done:
FUNC_LEAVE_API(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5Pset_filter_callback
@@ -520,7 +520,7 @@ H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data)
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
H5Z_cb_t cb_struct;
-
+
FUNC_ENTER_API(H5Pset_filter_callback, FAIL);
H5TRACE3("e","ixx",plist_id,func,op_data);
@@ -531,7 +531,7 @@ H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func, void *op_data)
/* Update property list */
cb_struct.func = func;
cb_struct.op_data = op_data;
-
+
if (H5P_set(plist,H5D_XFER_FILTER_CB_NAME,&cb_struct)<0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "unable to set value");
@@ -626,7 +626,7 @@ H5Pset_btree_ratios(hid_t plist_id, double left, double middle,
if (left<0.0 || left>1.0 || middle<0.0 || middle>1.0 ||
right<0.0 || right>1.0)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "split ratio must satisfy 0.0<=X<=1.0");
-
+
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_DATASET_XFER)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index cf7a964..ffbc844 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -62,7 +62,7 @@ static herr_t H5P_get_multi_type(H5P_genplist_t *plist, H5FD_mem_t *type);
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed file access property list mechanism to the new
+ * Changed file access property list mechanism to the new
* generic property list.
*-------------------------------------------------------------------------
*/
@@ -71,7 +71,7 @@ H5Pset_alignment(hid_t fapl_id, hsize_t threshold, hsize_t alignment)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_alignment, FAIL);
H5TRACE3("e","ihh",fapl_id,threshold,alignment);
@@ -108,9 +108,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -164,7 +164,7 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -175,7 +175,7 @@ H5P_set_driver(H5P_genplist_t *plist, hid_t new_driver_id, const void *new_drive
hid_t driver_id; /* VFL driver ID */
void *driver_info; /* VFL driver info */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5P_set_driver, FAIL);
if (NULL==H5I_object_verify(new_driver_id, H5I_VFL))
@@ -240,7 +240,7 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
*
*-------------------------------------------------------------------------
@@ -250,7 +250,7 @@ H5Pset_driver(hid_t plist_id, hid_t new_driver_id, const void *new_driver_info)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Pset_driver, FAIL);
H5TRACE3("e","iix",plist_id,new_driver_id,new_driver_info);
@@ -290,15 +290,15 @@ done:
* Rewritten to use the virtual file layer.
*
* Robb Matzke, 1999-08-05
- * If the driver ID is H5FD_VFD_DEFAULT then substitute the
+ * If the driver ID is H5FD_VFD_DEFAULT then substitute the
* current value of H5FD_SEC2.
*
* Quincey Koziol 2000-11-28
* Added internal function..
*
* Raymond Lu, 2001-10-23
- * Changed the file access list design to the new generic
- * property list.
+ * Changed the file access list design to the new generic
+ * property list.
*
*-------------------------------------------------------------------------
*/
@@ -396,9 +396,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -418,7 +418,7 @@ H5P_get_driver_info(H5P_genplist_t *plist)
} else {
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a file access or data transfer property list");
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5P_get_driver_info() */
@@ -445,9 +445,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list design to the new generic
+ * Changed the file access list design to the new generic
* property list.
- *
+ *
*-------------------------------------------------------------------------
*/
void *
@@ -463,7 +463,7 @@ H5Pget_driver_info(hid_t plist_id)
if((ret_value=H5P_get_driver_info(plist))==NULL)
HGOTO_ERROR(H5E_PLIST,H5E_CANTGET,NULL,"can't get driver info");
-
+
done:
FUNC_LEAVE_API(ret_value);
} /* end H5Pget_driver_info() */
@@ -471,20 +471,20 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_family_offset
- *
+ *
* Purpose: Set offset for family driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
- * Return: Success: Non-negative value.
- *
- * Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Return: Success: Non-negative value.
+ *
+ * Failure: Negative value.
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -504,7 +504,7 @@ H5Pset_family_offset(hid_t fapl_id, hsize_t offset)
/* Set values */
if((ret_value=H5P_set_family_offset(plist, offset)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set family offset");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -512,19 +512,19 @@ done:
/*-------------------------------------------------------------------------
* Function: H5P_set_family_offset
- *
- * Purpose: Set offset for family driver. Private function for
+ *
+ * Purpose: Set offset for family driver. Private function for
* H5Pset_family_offset
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -544,24 +544,24 @@ H5P_set_family_offset(H5P_genplist_t *plist, hsize_t offset)
done:
FUNC_LEAVE_NOAPI(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5Pget_family_offset
- *
+ *
* Purpose: Get offset for family driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -569,10 +569,10 @@ H5Pget_family_offset(hid_t fapl_id, hsize_t *offset)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_family_offset, FAIL);
H5TRACE2("e","i*h",fapl_id,offset);
-
+
/* Get the plist structure */
if(H5P_DEFAULT == fapl_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "can't modify default property list");
@@ -581,64 +581,64 @@ H5Pget_family_offset(hid_t fapl_id, hsize_t *offset)
/* Set values */
if((ret_value=H5P_get_family_offset(plist, offset)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't get family offset");
-
-done:
+
+done:
FUNC_LEAVE_API(ret_value);
-}
+}
/*-------------------------------------------------------------------------
* Function: H5P_get_family_offset
- *
+ *
* Purpose: Get offset for family driver. Private function for
* H5Pget_family_offset
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
H5P_get_family_offset(H5P_genplist_t *plist, hsize_t *offset)
{
herr_t ret_value=SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5P_get_family_offset, FAIL);
-
+
if( TRUE == H5P_isa_class(plist->plist_id, H5P_FILE_ACCESS) ) {
if(H5P_get(plist, H5F_ACS_FAMILY_OFFSET_NAME, offset) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't set offset for family file");
- } else {
+ } else {
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access or data transfer property list");
- }
-
+ }
+
done:
FUNC_LEAVE_NOAPI(ret_value);
-}
-
+}
+
/*-------------------------------------------------------------------------
* Function: H5Pset_multi_type
- *
+ *
* Purpose: Set data type for multi driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -658,7 +658,7 @@ H5Pset_multi_type(hid_t fapl_id, H5FD_mem_t type)
/* Set values */
if((ret_value=H5P_set_multi_type(plist, type)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't set data type for multi driver");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -666,19 +666,19 @@ done:
/*-------------------------------------------------------------------------
* Function: H5P_set_multi_type
- *
+ *
* Purpose: Set data type for multi file driver. Private function for
* H5Pset_multi_type.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
+ *
+ * Programmer: Raymond Lu
* Sep 17, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -697,25 +697,25 @@ H5P_set_multi_type(H5P_genplist_t *plist, H5FD_mem_t type)
done:
FUNC_LEAVE_NOAPI(ret_value);
-}
+}
/*-------------------------------------------------------------------------
* Function: H5Pget_multi_type
- *
+ *
* Purpose: Get data type for multi driver. This file access property
* list will be passed to H5Fget_vfd_handle or H5FDget_vfd_handle
* to retrieve VFD file handle.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -723,10 +723,10 @@ H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_multi_type, FAIL);
H5TRACE2("e","i*Mt",fapl_id,type);
-
+
/* Get the plist structure */
if(H5P_DEFAULT == fapl_id)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "can't modify default property list");
@@ -735,46 +735,46 @@ H5Pget_multi_type(hid_t fapl_id, H5FD_mem_t *type)
/* Set values */
if((ret_value=H5P_get_multi_type(plist, type)) < 0)
HGOTO_ERROR(H5E_PLIST, H5E_CANTSET, FAIL, "can't get data type for multi driver");
-
-done:
- FUNC_LEAVE_API(ret_value);
-}
+
+done:
+ FUNC_LEAVE_API(ret_value);
+}
/*-------------------------------------------------------------------------
* Function: H5P_get_multi_type
- *
+ *
* Purpose: Get data type for multi file driver. Private function for
* H5Pget_multi_type.
- *
+ *
* Return: Success: Non-negative value.
- *
+ *
* Failure: Negative value.
- *
- * Programmer: Raymond Lu
- * Sep 17, 2002
- *
+ *
+ * Programmer: Raymond Lu
+ * Sep 17, 2002
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static herr_t
H5P_get_multi_type(H5P_genplist_t *plist, H5FD_mem_t *type)
{
herr_t ret_value=SUCCEED;
-
+
FUNC_ENTER_NOAPI(H5P_get_multi_type, FAIL);
-
+
if( TRUE == H5P_isa_class(plist->plist_id, H5P_FILE_ACCESS) ) {
- if(H5P_get(plist, H5F_ACS_MULTI_TYPE_NAME, type) < 0)
- HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't get type for multi driver");
- } else {
- HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list");
- }
-
+ if(H5P_get(plist, H5F_ACS_MULTI_TYPE_NAME, type) < 0)
+ HGOTO_ERROR(H5E_PLIST, H5E_CANTSET,FAIL,"can't get type for multi driver");
+ } else {
+ HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a file access property list");
+ }
+
done:
FUNC_LEAVE_NOAPI(ret_value);
-}
+}
#ifdef H5_WANT_H5_V1_4_COMPAT
@@ -800,10 +800,10 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
* Changed the file access list to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -813,7 +813,7 @@ H5Pset_cache(hid_t plist_id, int mdc_nelmts,
H5P_genplist_t *plist; /* Property list pointer */
size_t rdcc_nelmts=(size_t)_rdcc_nelmts; /* Work around variable changing size */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_cache, FAIL);
H5TRACE5("e","iIsIszd",plist_id,mdc_nelmts,_rdcc_nelmts,rdcc_nbytes,
rdcc_w0);
@@ -861,9 +861,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -873,7 +873,7 @@ H5Pget_cache(hid_t plist_id, int *mdc_nelmts,
H5P_genplist_t *plist; /* Property list pointer */
size_t rdcc_nelmts; /* Work around variable changing size */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_cache, FAIL);
H5TRACE5("e","i*Is*Is*z*d",plist_id,mdc_nelmts,_rdcc_nelmts,rdcc_nbytes,
rdcc_w0);
@@ -926,10 +926,10 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
* Changed the file access list to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -938,7 +938,7 @@ H5Pset_cache(hid_t plist_id, int mdc_nelmts,
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_cache, FAIL);
H5TRACE5("e","iIszzd",plist_id,mdc_nelmts,rdcc_nelmts,rdcc_nbytes,rdcc_w0);
@@ -985,9 +985,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -996,7 +996,7 @@ H5Pget_cache(hid_t plist_id, int *mdc_nelmts,
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pget_cache, FAIL);
H5TRACE5("e","i*Is*z*z*d",plist_id,mdc_nelmts,rdcc_nelmts,rdcc_nbytes,
rdcc_w0);
@@ -1049,11 +1049,11 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -1093,9 +1093,9 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -1128,8 +1128,8 @@ done:
*
* Return: Non-negative on success/Negative on failure
*
- * Programmer: Raymond Lu
- * November, 2001
+ * Programmer: Raymond Lu
+ * November, 2001
*
* Modifications:
*
@@ -1160,12 +1160,12 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pget_fclose_degree
*
- * Purpose: Returns the degree for the file close behavior.
+ * Purpose: Returns the degree for the file close behavior.
*
* Return: Non-negative on success/Negative on failure
*
- * Programmer: Raymond Lu
- * November, 2001
+ * Programmer: Raymond Lu
+ * November, 2001
*
* Modifications:
*
@@ -1182,12 +1182,12 @@ herr_t H5Pget_fclose_degree(hid_t plist_id, H5F_close_degree_t *degree)
if(NULL == (plist = H5P_object_verify(plist_id,H5P_FILE_ACCESS)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
- if( degree && (H5P_get(plist, H5F_CLOSE_DEGREE_NAME, degree) < 0) )
+ if( degree && (H5P_get(plist, H5F_CLOSE_DEGREE_NAME, degree) < 0) )
HGOTO_ERROR(H5E_PLIST, H5E_CANTGET, FAIL, "can't get file close degree");
done:
FUNC_LEAVE_API(ret_value);
-}
+}
/*-------------------------------------------------------------------------
@@ -1198,7 +1198,7 @@ done:
* Each "raw" metadata block is allocated to be this size and then
* specific pieces of metadata (object headers, local heaps, B-trees, etc)
* are sub-allocated from this block.
- *
+ *
* The default value is set to 2048 (bytes), indicating that metadata
* will be attempted to be bunched together in (at least) 2K blocks in
* the file. Setting the value to 0 with this API function will
@@ -1214,8 +1214,8 @@ done:
*
* Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
- * list.
+ * Changed the file access list to the new generic property
+ * list.
*
*-------------------------------------------------------------------------
*/
@@ -1254,9 +1254,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1295,7 +1295,7 @@ done:
* buffer which is large anough to hold several pieces of the dataset
* being read in for hyperslab selections boosts performance by quite a
* bit.
- *
+ *
* The default value is set to 64KB, indicating that file I/O for raw data
* reads and writes will occur in at least 64KB blocks.
* Setting the value to 0 with this API function will turn off the
@@ -1308,9 +1308,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1321,7 +1321,7 @@ H5Pset_sieve_buf_size(hid_t plist_id, hsize_t _size)
H5P_genplist_t *plist; /* Property list pointer */
size_t size=(size_t)_size; /* Work around size difference */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_sieve_buf_size, FAIL);
H5TRACE2("e","ih",plist_id,_size);
@@ -1351,9 +1351,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1393,7 +1393,7 @@ done:
* buffer which is large anough to hold several pieces of the dataset
* being read in for hyperslab selections boosts performance by quite a
* bit.
- *
+ *
* The default value is set to 64KB, indicating that file I/O for raw data
* reads and writes will occur in at least 64KB blocks.
* Setting the value to 0 with this API function will turn off the
@@ -1406,9 +1406,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1418,7 +1418,7 @@ H5Pset_sieve_buf_size(hid_t plist_id, size_t size)
{
H5P_genplist_t *plist; /* Property list pointer */
herr_t ret_value=SUCCEED; /* return value */
-
+
FUNC_ENTER_API(H5Pset_sieve_buf_size, FAIL);
H5TRACE2("e","iz",plist_id,size);
@@ -1448,9 +1448,9 @@ done:
*
* Modifications:
*
- * Raymond Lu
+ * Raymond Lu
* Tuesday, Oct 23, 2001
- * Changed the file access list to the new generic property
+ * Changed the file access list to the new generic property
* list.
*
*-------------------------------------------------------------------------
@@ -1487,7 +1487,7 @@ done:
* Each "small" raw data block is allocated to be this size and then
* pieces of raw data which are small enough to fit are sub-allocated from
* this block.
- *
+ *
* The default value is set to 2048 (bytes), indicating that raw data
* smaller than this value will be attempted to be bunched together in (at
* least) 2K blocks in the file. Setting the value to 0 with this API
diff --git a/src/H5Pfcpl.c b/src/H5Pfcpl.c
index 90ed7f7..4f159e3 100644
--- a/src/H5Pfcpl.c
+++ b/src/H5Pfcpl.c
@@ -53,7 +53,7 @@
*
* Raymond Lu, Oct 14, 2001
* Change to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -104,7 +104,7 @@ done:
*
* Raymond Lu, Oct 14, 2001
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -157,7 +157,7 @@ done:
*
* Raymond Lu, Oct 14, 2001
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -309,7 +309,7 @@ done:
* Modifications:
*
* Raymond Lu, Oct 14, 2001
- * Changed to the new generic property list.
+ * Changed to the new generic property list.
*
*-------------------------------------------------------------------------
*/
@@ -326,7 +326,7 @@ H5Pset_sym_k(hid_t plist_id, int ik, int lk)
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_FILE_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
+
/* Set values */
if (ik > 0) {
if(H5P_get(plist, H5F_CRT_BTREE_RANK_NAME, btree_k) < 0)
@@ -361,7 +361,7 @@ done:
*
* Raymond Lu
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -419,7 +419,7 @@ done:
* Modifications:
*
* Raymond Lu, Oct 14, 2001
- * Changed to the new generic property list.
+ * Changed to the new generic property list.
*
*-------------------------------------------------------------------------
*/
@@ -436,7 +436,7 @@ H5Pset_sym_k(hid_t plist_id, unsigned ik, unsigned lk)
/* Get the plist structure */
if(NULL == (plist = H5P_object_verify(plist_id,H5P_FILE_CREATE)))
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "can't find object for ID");
-
+
/* Set values */
if (ik > 0) {
if(H5P_get(plist, H5F_CRT_BTREE_RANK_NAME, btree_k) < 0)
@@ -471,7 +471,7 @@ done:
*
* Raymond Lu
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -520,7 +520,7 @@ done:
*
* Raymond Lu, Oct 14, 2001
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -571,7 +571,7 @@ done:
*
* Raymond Lu, Oct 14, 2001
* Changed to the new generic property list.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
diff --git a/src/H5Pprivate.h b/src/H5Pprivate.h
index 69990e3..0285564 100644
--- a/src/H5Pprivate.h
+++ b/src/H5Pprivate.h
@@ -40,7 +40,7 @@ H5_DLL herr_t H5P_get(H5P_genplist_t *plist, const char *name, void *value);
H5_DLL herr_t H5P_set(H5P_genplist_t *plist, const char *name, const void *value);
H5_DLL herr_t H5P_insert(H5P_genplist_t *plist, const char *name, size_t size,
void *value, H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get,
- H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
+ H5P_prp_delete_func_t prp_delete, H5P_prp_copy_func_t prp_copy,
H5P_prp_compare_func_t prp_cmp, H5P_prp_close_func_t prp_close);
H5_DLL herr_t H5P_remove(hid_t plist_id, H5P_genplist_t *plist, const char *name);
H5_DLL htri_t H5P_exist_plist(H5P_genplist_t *plist, const char *name);
diff --git a/src/H5Ppublic.h b/src/H5Ppublic.h
index c13d8f8..ac7f5e7 100644
--- a/src/H5Ppublic.h
+++ b/src/H5Ppublic.h
@@ -58,7 +58,7 @@ extern "C" {
/* Define property list class callback function pointer types */
typedef herr_t (*H5P_cls_create_func_t)(hid_t prop_id, void *create_data);
-typedef herr_t (*H5P_cls_copy_func_t)(hid_t new_prop_id, hid_t old_prop_id,
+typedef herr_t (*H5P_cls_copy_func_t)(hid_t new_prop_id, hid_t old_prop_id,
void *copy_data);
typedef herr_t (*H5P_cls_close_func_t)(hid_t prop_id, void *close_data);
@@ -74,7 +74,7 @@ typedef int (*H5P_prp_compare_func_t)(const void *value1, const void *value2, si
typedef H5P_prp_cb1_t H5P_prp_close_func_t;
/* Define property list iteration function type */
-typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
+typedef herr_t (*H5P_iterate_t)(hid_t id, const char *name, void *iter_data);
/*
* The library created property list classes
@@ -124,7 +124,7 @@ H5_DLLVAR hid_t H5P_LST_DATASET_XFER_g;
H5_DLLVAR hid_t H5P_LST_MOUNT_g;
/* Public functions */
-H5_DLL hid_t H5Pcreate_class(hid_t parent, const char *name,
+H5_DLL hid_t H5Pcreate_class(hid_t parent, const char *name,
H5P_cls_create_func_t cls_create, void *create_data,
H5P_cls_copy_func_t cls_copy, void *copy_data,
H5P_cls_close_func_t cls_close, void *close_data);
@@ -133,7 +133,7 @@ H5_DLL hid_t H5Pcreate(hid_t cls_id);
H5_DLL herr_t H5Pregister(hid_t cls_id, const char *name, size_t size,
void *def_value, H5P_prp_create_func_t prp_create,
H5P_prp_set_func_t prp_set, H5P_prp_get_func_t prp_get,
- H5P_prp_delete_func_t prp_del,
+ H5P_prp_delete_func_t prp_del,
H5P_prp_copy_func_t prp_copy,
H5P_prp_close_func_t prp_close);
H5_DLL herr_t H5Pinsert(hid_t plist_id, const char *name, size_t size,
@@ -236,7 +236,7 @@ H5_DLL herr_t H5Pset_shuffle(hid_t plist_id);
H5_DLL herr_t H5Pset_fletcher32(hid_t plist_id);
H5_DLL herr_t H5Pset_edc_check(hid_t plist_id, H5Z_EDC_t check);
H5_DLL H5Z_EDC_t H5Pget_edc_check(hid_t plist_id);
-H5_DLL herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func,
+H5_DLL herr_t H5Pset_filter_callback(hid_t plist_id, H5Z_filter_func_t func,
void* op_data);
#ifdef H5_WANT_H5_V1_4_COMPAT
H5_DLL herr_t H5Pset_cache(hid_t plist_id, int mdc_nelmts, int rdcc_nelmts,
@@ -267,12 +267,12 @@ H5_DLL herr_t H5Pset_fill_value(hid_t plist_id, hid_t type_id,
H5_DLL herr_t H5Pget_fill_value(hid_t plist_id, hid_t type_id,
void *value/*out*/);
H5_DLL herr_t H5Pfill_value_defined(hid_t plist, H5D_fill_value_t *status);
-H5_DLL herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t
+H5_DLL herr_t H5Pset_alloc_time(hid_t plist_id, H5D_alloc_time_t
alloc_time);
-H5_DLL herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t
+H5_DLL herr_t H5Pget_alloc_time(hid_t plist_id, H5D_alloc_time_t
*alloc_time/*out*/);
H5_DLL herr_t H5Pset_fill_time(hid_t plist_id, H5D_fill_time_t fill_time);
-H5_DLL herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t
+H5_DLL herr_t H5Pget_fill_time(hid_t plist_id, H5D_fill_time_t
*fill_time/*out*/);
H5_DLL herr_t H5Pset_gc_references(hid_t fapl_id, unsigned gc_ref);
H5_DLL herr_t H5Pget_gc_references(hid_t fapl_id, unsigned *gc_ref/*out*/);
diff --git a/src/H5R.c b/src/H5R.c
index b37267c..74133e1 100644
--- a/src/H5R.c
+++ b/src/H5R.c
@@ -43,7 +43,7 @@ NAME
H5R_init_interface -- Initialize interface-specific information
USAGE
herr_t H5R_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -90,7 +90,7 @@ H5R_term_interface(void)
int n=0;
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5R_term_interface);
-
+
if (H5_interface_initialize_g) {
if ((n=H5I_nmembers(H5I_REFERENCE))) {
H5I_clear_group(H5I_REFERENCE, FALSE);
@@ -100,7 +100,7 @@ H5R_term_interface(void)
n = 1; /*H5I*/
}
}
-
+
FUNC_LEAVE_NOAPI(n);
}
@@ -119,7 +119,7 @@ H5R_term_interface(void)
H5R_type_t ref_type; IN: Type of reference to create
H5S_t *space; IN: Dataspace ID with selection, used for Dataset
Region references.
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -183,7 +183,7 @@ H5R_create(void *_ref, H5G_entry_t *loc, const char *name, H5R_type_t ref_type,
heapid_found=1;
break;
} /* end if */
-
+
if(heapid_found!=0) {
/* Return heap block to free list */
} /* end if */
@@ -257,7 +257,7 @@ done:
H5R_type_t ref_type; IN: Type of reference to create
hid_t space_id; IN: Dataspace ID with selection, used for Dataset
Region references.
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -313,7 +313,7 @@ done:
H5F_t *file; IN: File the object being dereferenced is within
H5R_type_t ref_type; IN: Type of reference
void *ref; IN: Reference to open.
-
+
RETURNS
Valid ID on success, Negative on failure
DESCRIPTION
@@ -456,7 +456,7 @@ done:
object that the dataset is located within.
H5R_type_t ref_type; IN: Type of reference to create
void *ref; IN: Reference to open.
-
+
RETURNS
Valid ID on success, Negative on failure
DESCRIPTION
@@ -507,7 +507,7 @@ done:
H5F_t *file; IN: File the object being dereferenced is within
H5R_type_t ref_type; UNUSED
void *ref; IN: Reference to open.
-
+
RETURNS
Pointer to the dataspace on success, NULL on failure
DESCRIPTION
@@ -580,7 +580,7 @@ done:
object that the dataset is located within.
H5R_type_t ref_type; IN: Type of reference to get region of
void *ref; IN: Reference to open.
-
+
RETURNS
Valid ID on success, Negative on failure
DESCRIPTION
@@ -637,7 +637,7 @@ done:
int H5R_get_object_type(file, ref)
H5F_t *file; IN: File the object being dereferenced is within
void *ref; IN: Reference to query.
-
+
RETURNS
Success: An object type defined in H5Gpublic.h
Failure: H5G_UNKNOWN
@@ -691,7 +691,7 @@ done:
hid_t id; IN: Dataset reference object is in or location ID of
object that the dataset is located within.
void *ref; IN: Reference to query.
-
+
RETURNS
Success: An object type defined in H5Gpublic.h
Failure: H5G_UNKNOWN
@@ -725,7 +725,7 @@ H5Rget_object_type(hid_t id, void *_ref)
/* Get the object information */
if ((ret_value=H5R_get_object_type(file,H5AC_ind_dxpl_id,_ref))<0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTINIT, H5G_UNKNOWN, "unable to determine object type");
-
+
done:
FUNC_LEAVE_API(ret_value);
} /* end H5Rget_object_type() */
@@ -742,7 +742,7 @@ done:
H5F_t *file; IN: File the object being dereferenced is within
H5R_type_t ref_type; IN: Type of reference to query
void *ref; IN: Reference to query.
-
+
RETURNS
Success: An object type defined in H5Gpublic.h
Failure: H5G_UNKNOWN
@@ -839,7 +839,7 @@ done:
object that the dataset is located within.
H5R_type_t ref_type; IN: Type of reference to query
void *ref; IN: Reference to query.
-
+
RETURNS
Success: An object type defined in H5Gpublic.h
Failure: H5G_UNKNOWN
@@ -888,7 +888,7 @@ H5Rget_obj_type(hid_t id, H5R_type_t ref_type, void *_ref)
#endif /* H5_WANT_H5_V1_4_COMPAT */
H5R_get_obj_type(file,H5AC_ind_dxpl_id,ref_type,_ref))<0)
HGOTO_ERROR(H5E_REFERENCE, H5E_CANTINIT, H5G_UNKNOWN, "unable to determine object type");
-
+
done:
FUNC_LEAVE_API(ret_value);
} /* end H5Rget_obj_type() */
diff --git a/src/H5S.c b/src/H5S.c
index 035d7a5..48705b5 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -65,7 +65,7 @@ NAME
H5S_init_interface -- Initialize interface-specific information
USAGE
herr_t H5S_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -175,8 +175,8 @@ H5S_term_interface(void)
"%10s\n", "gather",
path->stats[j].gath_nbytes,
path->stats[j].gath_ncalls,
- path->stats[j].gath_timer.utime,
- path->stats[j].gath_timer.stime,
+ path->stats[j].gath_timer.utime,
+ path->stats[j].gath_timer.stime,
path->stats[j].gath_timer.etime,
buf);
}
@@ -191,8 +191,8 @@ H5S_term_interface(void)
"%10s\n", "scatter",
path->stats[j].scat_nbytes,
path->stats[j].scat_ncalls,
- path->stats[j].scat_timer.utime,
- path->stats[j].scat_timer.stime,
+ path->stats[j].scat_timer.utime,
+ path->stats[j].scat_timer.stime,
path->stats[j].scat_timer.etime,
buf);
}
@@ -207,8 +207,8 @@ H5S_term_interface(void)
"%10s\n", "background",
path->stats[j].bkg_nbytes,
path->stats[j].bkg_ncalls,
- path->stats[j].bkg_timer.utime,
- path->stats[j].bkg_timer.stime,
+ path->stats[j].bkg_timer.utime,
+ path->stats[j].bkg_timer.stime,
path->stats[j].bkg_timer.etime,
buf);
}
@@ -228,7 +228,7 @@ H5S_term_interface(void)
path->stats[j].read_timer.etime,
buf);
}
-
+
/* Write */
if (path->stats[j].write_ncalls) {
H5_bandwidth(buf,
@@ -265,7 +265,7 @@ H5S_term_interface(void)
n = 1; /*H5I*/
}
}
-
+
FUNC_LEAVE_NOAPI(n);
}
@@ -506,7 +506,7 @@ H5Scopy(hid_t space_id)
H5S_t *src = NULL;
H5S_t *dst = NULL;
hid_t ret_value;
-
+
FUNC_ENTER_API(H5Scopy, FAIL);
H5TRACE1("i","i",space_id);
@@ -552,7 +552,7 @@ H5Sextent_copy(hid_t dst_id,hid_t src_id)
H5S_t *src = NULL;
H5S_t *dst = NULL;
hid_t ret_value = SUCCEED;
-
+
FUNC_ENTER_API(H5Sextent_copy, FAIL);
H5TRACE2("e","ii",dst_id,src_id);
@@ -1375,7 +1375,7 @@ done:
* Purpose: Given two data spaces (MEM_SPACE and FILE_SPACE) this
* function returns a pointer to the conversion path information,
* creating a new conversion path entry if necessary.
- *
+ *
* Return: Success: Ptr to a conversion path entry
*
* Failure: NULL
@@ -1398,7 +1398,7 @@ done:
* statistics).
*
* John Mainzer, 8/30/04
- * Modified code to check with all other processes that have the
+ * Modified code to check with all other processes that have the
* file open before OKing collective I/O.
*
*-------------------------------------------------------------------------
@@ -1409,7 +1409,7 @@ H5S_find (const H5S_t *mem_space, const H5S_t *file_space)
H5S_iostats_t *path=NULL; /* Space conversion path */
size_t u; /* Index variable */
H5S_iostats_t *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5S_find, NULL);
/* Check args */
@@ -1426,7 +1426,7 @@ H5S_find (const H5S_t *mem_space, const H5S_t *file_space)
if (H5S_iostats_g[u]->ftype==H5S_GET_SELECT_TYPE(file_space) &&
H5S_iostats_g[u]->mtype==H5S_GET_SELECT_TYPE(mem_space))
HGOTO_DONE(H5S_iostats_g[u]);
-
+
/*
* The path wasn't found. Create a new path.
*/
@@ -1486,7 +1486,7 @@ H5S_extend (H5S_t *space, const hsize_t *size)
{
int ret_value=0;
unsigned u;
-
+
FUNC_ENTER_NOAPI(H5S_extend, FAIL);
/* Check args */
@@ -1588,11 +1588,11 @@ H5Screate_simple(int rank, const hsize_t dims[/*rank*/],
/* Create the space and set the extent */
if(NULL==(space=H5S_create_simple((unsigned)rank,dims,maxdims)))
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTCREATE, FAIL, "can't create simple dataspace");
-
+
/* Atomize */
if ((ret_value=H5I_register (H5I_DATASPACE, space))<0)
HGOTO_ERROR (H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register dataspace ID");
-
+
done:
if (ret_value<0) {
if (space!=NULL)
@@ -1638,7 +1638,7 @@ H5S_create_simple(unsigned rank, const hsize_t dims[/*rank*/],
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTCREATE, NULL, "can't create simple dataspace");
if(H5S_set_extent_simple(ret_value,rank,dims,maxdims)<0)
HGOTO_ERROR (H5E_DATASPACE, H5E_CANTINIT, NULL, "can't set dimensions");
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5S_create_simple() */
@@ -1707,7 +1707,7 @@ H5S_get_simple_extent_type(const H5S_t *space)
assert(space);
ret_value=H5S_GET_EXTENT_TYPE(space);
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -1745,7 +1745,7 @@ H5Sget_simple_extent_type(hid_t sid)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5S_NO_CLASS, "not a dataspace");
ret_value=H5S_GET_EXTENT_TYPE(space);
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -1851,7 +1851,7 @@ H5S_set_extent( H5S_t *space, const hsize_t *size )
{
unsigned u;
herr_t ret_value=0;
-
+
FUNC_ENTER_NOAPI( H5S_set_extent, FAIL );
/* Check args */
@@ -1928,7 +1928,7 @@ H5S_set_extent_real( H5S_t *space, const hsize_t *size )
hsize_t nelem; /* Number of elements in extent */
unsigned u; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5S_set_extent_real, FAIL );
/* Check args */
@@ -1971,22 +1971,22 @@ H5S_debug(H5F_t *f, hid_t dxpl_id, const void *_mesg, FILE *stream, int indent,
{
const H5S_t *mesg = (const H5S_t*)_mesg;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5S_debug, FAIL);
-
+
switch (H5S_GET_EXTENT_TYPE(mesg)) {
case H5S_SCALAR:
fprintf(stream, "%*s%-*s H5S_SCALAR\n", indent, "", fwidth,
"Space class:");
break;
-
+
case H5S_SIMPLE:
fprintf(stream, "%*s%-*s H5S_SIMPLE\n", indent, "", fwidth,
"Space class:");
H5O_debug_id(H5O_SDSPACE_ID, f, dxpl_id, &(mesg->extent), stream,
indent+3, MAX(0, fwidth-3));
break;
-
+
default:
fprintf(stream, "%*s%-*s **UNKNOWN-%ld**\n", indent, "", fwidth,
"Space class:", (long)(H5S_GET_EXTENT_TYPE(mesg)));
diff --git a/src/H5SL.c b/src/H5SL.c
index 582bd1a..0491aa4 100644
--- a/src/H5SL.c
+++ b/src/H5SL.c
@@ -1231,7 +1231,7 @@ H5SL_item(H5SL_node_t *slist_node)
The operator callback receives a pointer to the item and key for the list
being iterated over ('mesg'), and the pointer to the operator data passed
in to H5SL_iterate ('op_data'). The return values from an operator are:
- A. Zero causes the iterator to continue, returning zero when all
+ A. Zero causes the iterator to continue, returning zero when all
nodes of that type have been processed.
B. Positive causes the iterator to immediately return that positive
value, indicating short-circuit success.
diff --git a/src/H5ST.c b/src/H5ST.c
index 39adc14..65126ef 100644
--- a/src/H5ST.c
+++ b/src/H5ST.c
@@ -402,7 +402,7 @@ done:
--------------------------------------------------------------------------*/
static H5ST_ptr_t
H5ST_findfirst_internal(H5ST_ptr_t p)
-{
+{
H5ST_ptr_t ret_value=NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5ST_findfirst_internal);
@@ -422,7 +422,7 @@ H5ST_findfirst_internal(H5ST_ptr_t p)
p=p->eqkid;
} /* end else */
} /* end while */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5ST_findfirst_internal() */
@@ -448,14 +448,14 @@ done:
--------------------------------------------------------------------------*/
H5ST_ptr_t
H5ST_findfirst(H5ST_tree_t *tree)
-{
+{
H5ST_ptr_t ret_value; /* Return value */
FUNC_ENTER_NOAPI(H5ST_findfirst,NULL);
if((ret_value=H5ST_findfirst_internal(tree->root))==NULL)
HGOTO_ERROR(H5E_TST,H5E_NOTFOUND,NULL,"no nodes in TST");
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5ST_findfirst() */
@@ -539,7 +539,7 @@ done:
--------------------------------------------------------------------------*/
H5ST_ptr_t
H5ST_findnext(H5ST_ptr_t p)
-{
+{
H5ST_ptr_t q; /* Temporary pointer to TST node */
H5ST_ptr_t ret_value=NULL; /* Return value */
@@ -582,7 +582,7 @@ done:
--------------------------------------------------------------------------*/
static herr_t
H5ST_delete_internal(H5ST_ptr_t *root, H5ST_ptr_t p)
-{
+{
H5ST_ptr_t q, /* Temporary pointer to TST node */
newp; /* Pointer to node which will replace deleted node in tree */
@@ -658,7 +658,7 @@ H5ST_delete_internal(H5ST_ptr_t *root, H5ST_ptr_t p)
--------------------------------------------------------------------------*/
herr_t
H5ST_delete(H5ST_tree_t *tree, H5ST_ptr_t p)
-{
+{
herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(H5ST_delete,FAIL);
diff --git a/src/H5Sall.c b/src/H5Sall.c
index eb4c4c8..e6d9644 100644
--- a/src/H5Sall.c
+++ b/src/H5Sall.c
@@ -377,7 +377,7 @@ H5S_all_release (H5S_t UNUSED * space)
/* Reset the number of elements in the selection */
space->select.num_elem=0;
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
} /* H5S_all_release() */
@@ -474,7 +474,7 @@ H5S_all_serial_size (const H5S_t UNUSED *space)
assert(space);
/* Basic number of bytes required to serialize point selection:
- * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
+ * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
* <length (4 bytes)> = 16 bytes
*/
FUNC_LEAVE_NOAPI(16);
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index e881f53..407f564 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -1043,7 +1043,7 @@ H5S_hyper_new_span (hsize_t low, hsize_t high, H5S_hyper_span_info_t *down, H5S_
/* Allocate a new span node */
if((ret_value = H5FL_MALLOC(H5S_hyper_span_t))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "can't allocate hyperslab span");
-
+
/* Copy the span's basic information */
ret_value->low=low;
ret_value->high=high;
@@ -1254,7 +1254,7 @@ H5S_hyper_copy_span_helper (H5S_hyper_span_info_t *spans)
/* Allocate a new span_info node */
if((ret_value = H5FL_MALLOC(H5S_hyper_span_info_t))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "can't allocate hyperslab span");
-
+
/* Copy the span_info information */
ret_value->count=1;
ret_value->scratch=NULL;
@@ -1370,7 +1370,7 @@ H5S_hyper_cmp_spans (H5S_hyper_span_info_t *span_info1, H5S_hyper_span_info_t *s
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5S_hyper_cmp_spans);
/* Check for redundant comparison */
- if(span_info1==span_info2)
+ if(span_info1==span_info2)
ret_value=TRUE;
else {
/* Check for both spans being NULL */
@@ -1779,7 +1779,7 @@ H5S_hyper_span_nblocks (H5S_hyper_span_info_t *spans)
/* If there are no down spans, just count the block in this span */
else
ret_value++;
-
+
/* Advance to next span */
span=span->next;
} /* end while */
@@ -1899,7 +1899,7 @@ H5S_hyper_serial_size (const H5S_t *space)
assert(space);
/* Basic number of bytes required to serialize hyperslab selection:
- * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
+ * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
* <length (4 bytes)> + <rank (4 bytes)> + <# of blocks (4 bytes)> = 24 bytes
*/
ret_value=24;
@@ -2120,7 +2120,7 @@ H5S_hyper_serialize (const H5S_t *space, uint8_t *buf)
/* Reset the block count in this dimension */
tmp_count[temp_dim]=diminfo[temp_dim].count;
-
+
/* Wrapped a dimension, go up to next dimension */
temp_dim--;
} /* end while */
@@ -2153,7 +2153,7 @@ H5S_hyper_serialize (const H5S_t *space, uint8_t *buf)
/* Encode length */
UINT32ENCODE(lenp, (uint32_t)len); /* Store the length of the extra information */
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
} /* H5S_hyper_serialize() */
@@ -2473,7 +2473,7 @@ H5S_get_select_hyper_blocklist(H5S_t *space, hbool_t internal, hsize_t startbloc
/* Reset the block count in this dimension */
tmp_count[temp_dim]=diminfo[temp_dim].count;
-
+
/* Wrapped a dimension, go up to next dimension */
temp_dim--;
} /* end while */
@@ -2486,7 +2486,7 @@ H5S_get_select_hyper_blocklist(H5S_t *space, hbool_t internal, hsize_t startbloc
} /* end for */
} /* end while */
} /* end if */
- else
+ else
ret_value=H5S_hyper_span_blocklist(space->select.sel_info.hslab->span_lst,start,end,(hsize_t)0,&startblock,&numblocks,&buf);
FUNC_LEAVE_NOAPI(ret_value);
@@ -2923,7 +2923,7 @@ H5S_hyper_is_single(const H5S_t *space)
} /* end if */
else {
/*
- * For a region to be single, it must have only one block
+ * For a region to be single, it must have only one block
*/
/* Get information for slowest changing information */
spans=space->select.sel_info.hslab->span_lst;
@@ -3213,7 +3213,7 @@ H5S_hyper_add_span_element_helper(H5S_hyper_span_info_t *span_tree, unsigned ran
/* Before we create another span at this level in the tree, check if
* the last span's "down tree" was equal to any other spans in this
* list of spans in the span tree.
- *
+ *
* If so, release last span information and make last span merge into
* previous span (if possible), or at least share their "down tree"
* information.
@@ -3279,7 +3279,7 @@ H5S_hyper_add_span_element_helper(H5S_hyper_span_info_t *span_tree, unsigned ran
/* Before we create another span at this level in the tree, check if
* the last span's "down tree" was equal to any other spans in this
* list of spans in the span tree.
- *
+ *
* If so, release last span information and make last span merge into
* previous span (if possible), or at least share their "down tree"
* information.
@@ -3616,7 +3616,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-htri_t
+htri_t
H5S_hyper_intersect (H5S_t *space1, H5S_t *space2)
{
htri_t ret_value=FAIL; /* Return value */
@@ -3735,7 +3735,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-htri_t
+htri_t
H5S_hyper_intersect_block (H5S_t *space, hsize_t *start, hsize_t *end)
{
htri_t ret_value=FAIL; /* Return value */
@@ -4231,7 +4231,7 @@ H5S_hyper_append_span (H5S_hyper_span_t **prev_span, H5S_hyper_span_info_t ** sp
/* Allocate new span node to append to list */
if((new_span = H5S_hyper_new_span(low,high,down,next))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate hyperslab span");
-
+
/* Make first node in span list */
/* Check that we haven't already allocated a span tree */
@@ -4240,7 +4240,7 @@ H5S_hyper_append_span (H5S_hyper_span_t **prev_span, H5S_hyper_span_info_t ** sp
/* Allocate a new span_info node */
if((*span_tree = H5FL_MALLOC(H5S_hyper_span_info_t))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate hyperslab span");
-
+
/* Set the span tree's basic information */
(*span_tree)->count=1;
(*span_tree)->scratch=NULL;
@@ -4252,7 +4252,7 @@ H5S_hyper_append_span (H5S_hyper_span_t **prev_span, H5S_hyper_span_info_t ** sp
/* Merge or append to existing merged spans list */
else {
/* Check if span can just extend the previous merged span */
- if((((*prev_span)->high+1)==low) &&
+ if((((*prev_span)->high+1)==low) &&
H5S_hyper_cmp_spans(down,(*prev_span)->down)==TRUE) {
/* Extend previous merged span to include new high bound */
(*prev_span)->high=high;
@@ -4262,7 +4262,7 @@ H5S_hyper_append_span (H5S_hyper_span_t **prev_span, H5S_hyper_span_info_t ** sp
/* Allocate new span node to append to list */
if((new_span = H5S_hyper_new_span(low,high,down,next))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate hyperslab span");
-
+
/* Check if there is actually a down span */
if(new_span->down) {
/* Check if the down spans for the new span node are the same as the previous span node */
@@ -4439,7 +4439,7 @@ H5S_hyper_clip_spans (H5S_hyper_span_info_t *a_spans, H5S_hyper_span_info_t *b_s
/* Check for overlaps in the 'down spans' of span 'a' & 'b' */
if(H5S_hyper_clip_spans(span_a->down,span_b->down,&down_a_not_b,&down_a_and_b,&down_b_not_a)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCLIP, FAIL, "can't clip hyperslab information");
-
+
/* Check for additions to the a_not_b list */
if(down_a_not_b!=NULL) {
/* Merge/add overlapped part with/to a_not_b list */
@@ -4526,7 +4526,7 @@ H5S_hyper_clip_spans (H5S_hyper_span_info_t *a_spans, H5S_hyper_span_info_t *b_s
/* Check for overlaps in the 'down spans' of span 'a' & 'b' */
if(H5S_hyper_clip_spans(span_a->down,span_b->down,&down_a_not_b,&down_a_and_b,&down_b_not_a)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCLIP, FAIL, "can't clip hyperslab information");
-
+
/* Check for additions to the a_not_b list */
if(down_a_not_b!=NULL) {
/* Merge/add overlapped part with/to a_not_b list */
@@ -4609,7 +4609,7 @@ H5S_hyper_clip_spans (H5S_hyper_span_info_t *a_spans, H5S_hyper_span_info_t *b_s
/* Check for overlaps in the 'down spans' of span 'a' & 'b' */
if(H5S_hyper_clip_spans(span_a->down,span_b->down,&down_a_not_b,&down_a_and_b,&down_b_not_a)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCLIP, FAIL, "can't clip hyperslab information");
-
+
/* Check for additions to the a_not_b list */
if(down_a_not_b!=NULL) {
/* Merge/add overlapped part with/to a_not_b list */
@@ -4701,7 +4701,7 @@ H5S_hyper_clip_spans (H5S_hyper_span_info_t *a_spans, H5S_hyper_span_info_t *b_s
/* Check for overlaps in the 'down spans' of span 'a' & 'b' */
if(H5S_hyper_clip_spans(span_a->down,span_b->down,&down_a_not_b,&down_a_and_b,&down_b_not_a)<0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTCLIP, FAIL, "can't clip hyperslab information");
-
+
/* Check for additions to the a_not_b list */
if(down_a_not_b!=NULL) {
/* Merge/add overlapped part with/to a_not_b list */
@@ -5085,7 +5085,7 @@ H5S_hyper_merge_spans_helper (H5S_hyper_span_info_t *a_spans, H5S_hyper_span_inf
H5S_hyper_recover_span(&recover_a,&span_a,span_a->next);
} /* end while */
} /* end if */
-
+
/* Clean up 'b' spans which haven't been added to the list of merged spans */
if(span_a==NULL && span_b!=NULL) {
while(span_b!=NULL) {
@@ -5206,7 +5206,7 @@ H5S_hyper_spans_nelem (H5S_hyper_span_info_t *spans)
/* If there are no down spans, just count the elements in this span */
else
ret_value+=span->nelem;
-
+
/* Advance to next span */
span=span->next;
} /* end while */
@@ -5288,7 +5288,7 @@ H5S_hyper_make_spans (unsigned rank, const hsize_t *start, const hsize_t *stride
head=span;
else
last_span->next=span;
-
+
/* Move current pointer */
last_span=span;
@@ -5536,7 +5536,7 @@ H5S_generate_hyperslab (H5S_t *space, H5S_seloper_t op,
assert(stride);
assert(count);
assert(block);
-
+
/* Generate span tree for new hyperslab information */
if((new_spans=H5S_hyper_make_spans(space->extent.rank,start,stride,count,block))==NULL)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTINSERT, FAIL, "can't create hyperslab information");
@@ -5782,7 +5782,7 @@ H5S_select_hyperslab (H5S_t *space, H5S_seloper_t op,
assert(start);
assert(count);
assert(op>H5S_SELECT_NOOP && op<H5S_SELECT_INVALID);
-
+
/* Point to the correct stride values */
if(stride==NULL)
stride = _ones;
@@ -6327,7 +6327,7 @@ partial_done: /* Yes, goto's are evil, so sue me... :-) */
else {
off[curr_seq]=loc_off;
len[curr_seq]=span_size;
-
+
/* Increment the number of sequences in arrays */
curr_seq++;
} /* end else */
@@ -6359,7 +6359,7 @@ partial_done: /* Yes, goto's are evil, so sue me... :-) */
else {
off[curr_seq]=loc_off;
len[curr_seq]=span_size;
-
+
/* Increment the number of sequences in arrays */
curr_seq++;
} /* end else */
diff --git a/src/H5Smpio.c b/src/H5Smpio.c
index 121eac6..ca9e145 100644
--- a/src/H5Smpio.c
+++ b/src/H5Smpio.c
@@ -66,7 +66,7 @@ H5S_mpio_span_hyper_type( const H5S_t *space, size_t elmt_size,
hsize_t *extra_offset,
hbool_t *is_derived_type );
-static herr_t obtain_datatype(const hsize_t size[],
+static herr_t obtain_datatype(const hsize_t size[],
H5S_hyper_span_t* span,MPI_Datatype *span_type,
size_t elmt_size,int dimindex);
@@ -314,10 +314,10 @@ H5S_mpio_hyper_type( const H5S_t *space, size_t elmt_size,
goto empty;
}
} /* end else */
-
+
/**********************************************************************
Compute array "offset[rank]" which gives the offsets for a multi-
- dimensional array with dimensions "d[i].xtent" (i=0,1,...,rank-1).
+ dimensional array with dimensions "d[i].xtent" (i=0,1,...,rank-1).
**********************************************************************/
offset[rank-1] = 1;
max_xtent[rank-1] = d[rank-1].xtent;
@@ -397,9 +397,9 @@ H5S_mpio_hyper_type( const H5S_t *space, size_t elmt_size,
block_length[0] = 1;
block_length[1] = 1;
block_length[2] = 1;
-
+
displacement[0] = 0;
-
+
old_types[0] = MPI_LB;
old_types[1] = outer_type;
old_types[2] = MPI_UB;
@@ -414,7 +414,7 @@ H5S_mpio_hyper_type( const H5S_t *space, size_t elmt_size,
displacement, /* displacements */
old_types, /* old types */
&inner_type); /* new type */
-
+
MPI_Type_free (&outer_type);
if (mpi_code!=MPI_SUCCESS)
HMPI_GOTO_ERROR(FAIL, "couldn't resize MPI vector type", mpi_code);
@@ -424,7 +424,7 @@ H5S_mpio_hyper_type( const H5S_t *space, size_t elmt_size,
}
} /* end for */
/***************************
-* End of loop, walking
+* End of loop, walking
* thru dimensions.
***************************/
@@ -555,7 +555,7 @@ done:
*
* Purpose: Translate an HDF5 dataspace selection into a general
MPI derivewd datatype built with span-tree.
- *
+ *
* Currently handle only hyperslab and "all" selections.
*
* Return: non-negative on success, negative on failure.
@@ -639,12 +639,12 @@ done:
/* The following codes have been used by Kent to test
- general collective derived datatype functionality.
+ general collective derived datatype functionality.
It should NOT be called by other routines except with
macro #ifdef KENT #endif
Nov. 11th, 2004 */
-
+
static herr_t
H5S_mpio_span_hyper_type( const H5S_t *space, size_t elmt_size,
/* out: */
@@ -669,24 +669,24 @@ H5S_mpio_span_hyper_type( const H5S_t *space, size_t elmt_size,
assert (space);
/* assert(sizeof(MPI_Aint) >= sizeof(elmt_size));?? */
- /* Only for simple extent
+ /* Only for simple extent
rank = space->extent.u.simple.rank;
*/
rank = space->extent.rank;
- /* size = HDcalloc((size_t)rank,sizeof(hsize_t)); */
+ /* size = HDcalloc((size_t)rank,sizeof(hsize_t)); */
if (0==elmt_size)
goto empty;
size = space->extent.size;
-
+
odown = space->select.sel_info.hslab->span_lst;
- if(odown == NULL)
+ if(odown == NULL)
goto empty;
ospan = odown->head;
if(ospan == NULL)
goto empty;
-
+
obtain_datatype(space->extent.size,ospan,&span_type,elmt_size,rank);
MPI_Type_commit(&span_type);
@@ -696,7 +696,7 @@ H5S_mpio_span_hyper_type( const H5S_t *space, size_t elmt_size,
printf("extent %d\n",extent);
*new_type = span_type;
/* fill in the remaining return values */
- *count = 1;
+ *count = 1;
*extra_offset = 0;
*is_derived_type = 1;
printf("before freeing size\n");
@@ -718,7 +718,7 @@ done:
static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_Datatype *span_type,
size_t elmt_size,int dimindex) {
-
+
int innercount,outercount;
MPI_Datatype bas_type;
MPI_Datatype temp_type;
@@ -749,7 +749,7 @@ static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_D
while(tspan) {
if(tspan) {
HDfprintf(stdout, " span->low %Hd\n",tspan->low);
- HDfprintf(stdout, " span->high %Hd\n",tspan->high);
+ HDfprintf(stdout, " span->high %Hd\n",tspan->high);
HDfprintf(stdout, " span->nelm %Hu\n",tspan->nelem);
}
tspan = tspan->next;
@@ -780,8 +780,8 @@ static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_D
inner_type = (MPI_Datatype *)HDcalloc((size_t)outercount,sizeof(int));
printf("end of calloc \n");
#endif
-
-
+
+
tspan = span;
outercount = 0;
@@ -803,7 +803,7 @@ static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_D
if(ret < 0) printf("type hindexed doesn't work\n");
printf("after hindexed \n");
-
+
}
else {/* dimindex is the rank of the dimension */
@@ -817,10 +817,10 @@ static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_D
for ( i = dimindex-1; i > 1; i--)
total_lowd1 = total_lowd1 * size[i];
-
+
HDfprintf(stdout, " one dimension down size %Hu\n",total_lowd);
- HDfprintf(stdout, " two dimension down size %Hu\n",total_lowd1);
-
+ HDfprintf(stdout, " two dimension down size %Hu\n",total_lowd1);
+
while(tspan){
/* Displacement should be in byte and should have dimension information */
/* First using MPI Type vector to build derived data type for this span only */
@@ -866,18 +866,18 @@ static herr_t obtain_datatype(const hsize_t size[], H5S_hyper_span_t* span,MPI_D
outercount ++;
tspan = tspan->next;
}
-
+
/* building the whole vector datatype */
MPI_Type_struct(outercount,blocklen,disp,inner_type,span_type);
printf("after type struct \n");
}
-
+
if(inner_type != NULL){
if(down != NULL) {
for(i=0;i<outercount;i++)
MPI_Type_free(&inner_type[i]);
-
+
}
}
diff --git a/src/H5Snone.c b/src/H5Snone.c
index b50af6a..154758c 100644
--- a/src/H5Snone.c
+++ b/src/H5Snone.c
@@ -442,7 +442,7 @@ H5S_none_serial_size (const H5S_t UNUSED *space)
assert(space);
/* Basic number of bytes required to serialize point selection:
- * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
+ * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
* <length (4 bytes)> = 16 bytes
*/
FUNC_LEAVE_NOAPI(16);
diff --git a/src/H5Spkg.h b/src/H5Spkg.h
index ce858a2..c32032d 100644
--- a/src/H5Spkg.h
+++ b/src/H5Spkg.h
@@ -36,7 +36,7 @@
#define H5S_VALID_MAX 0x01
#define H5S_VALID_PERM 0x02
-/*
+/*
* Dataspace extent information
*/
/* Extent container */
@@ -49,7 +49,7 @@ typedef struct {
hsize_t *max; /* Maximum size of the dimensions */
} H5S_extent_t;
-/*
+/*
* Dataspace selection information
*/
/* Node in point selection list (typedef'd in H5Sprivate.h) */
@@ -79,7 +79,7 @@ struct H5S_hyper_span_info_t {
unsigned count; /* Ref. count of number of spans which share this span */
struct H5S_hyper_span_info_t *scratch; /* Scratch pointer
* (used during copies, as mark
- * during precomputes for I/O &
+ * during precomputes for I/O &
* to point to the last span in a
* list during single element adds)
*/
diff --git a/src/H5Spoint.c b/src/H5Spoint.c
index 7a260a5..2c5396a 100644
--- a/src/H5Spoint.c
+++ b/src/H5Spoint.c
@@ -125,7 +125,7 @@ H5S_point_iter_init(H5S_sel_iter_t *iter, const H5S_t *space)
/* Start at the head of the list of points */
iter->u.pnt.curr=space->select.sel_info.pnt_lst->head;
-
+
/* Initialize type of selection iterator */
iter->type=H5S_sel_iter_point;
@@ -430,7 +430,7 @@ H5S_point_add (H5S_t *space, H5S_seloper_t op, size_t num_elem, const hsize_t **
/* Append new list to point selection */
new_node->next=top;
} /* end if */
- else
+ else
space->select.sel_info.pnt_lst->head=top;
} /* end else */
@@ -480,14 +480,14 @@ H5S_point_release (H5S_t *space)
H5FL_FREE(H5S_pnt_node_t,curr);
curr=next;
} /* end while */
-
+
/* Free & reset the point list header */
H5FL_FREE(H5S_pnt_list_t,space->select.sel_info.pnt_lst);
space->select.sel_info.pnt_lst=NULL;
/* Reset the number of elements in the selection */
space->select.num_elem=0;
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
} /* H5S_point_release() */
@@ -741,7 +741,7 @@ H5S_point_serial_size (const H5S_t *space)
assert(space);
/* Basic number of bytes required to serialize point selection:
- * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
+ * <type (4 bytes)> + <version (4 bytes)> + <padding (4 bytes)> +
* <length (4 bytes)> + <rank (4 bytes)> + <# of points (4 bytes)> = 24 bytes
*/
ret_value=24;
@@ -819,7 +819,7 @@ H5S_point_serialize (const H5S_t *space, uint8_t *buf)
/* Encode length */
UINT32ENCODE(lenp, (uint32_t)len); /* Store the length of the extra information */
-
+
FUNC_LEAVE_NOAPI(SUCCEED);
} /* H5S_point_serialize() */
@@ -869,7 +869,7 @@ H5S_point_deserialize (H5S_t *space, const uint8_t *buf)
/* Allocate space for the coordinates */
if((coord = H5MM_malloc(num_elem*rank*sizeof(hsize_t)))==NULL)
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "can't allocate coordinate information");
-
+
/* Retrieve the coordinates from the buffer */
for(tcoord=coord,i=0; i<num_elem; i++)
for(j=0; j<(unsigned)rank; j++,tcoord++)
diff --git a/src/H5T.c b/src/H5T.c
index 215dce7..5c9d7f4 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -143,7 +143,7 @@ hid_t H5T_NATIVE_UINT_FAST64_g = FAIL;
/*
* Alignment constraints for native types. These are initialized at run time
- * in H5Tinit.c. These alignments are mainly for offsets in HDF5 compound
+ * in H5Tinit.c. These alignments are mainly for offsets in HDF5 compound
* datatype or C structures, which are different from the alignments for memory
* address below this group of variables.
*/
@@ -647,7 +647,7 @@ NAME
H5T_init_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -742,30 +742,30 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* Native types
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* 1-byte bit field */
H5T_INIT_TYPE(BITFIELD,H5T_NATIVE_B8_g,COPY,native_uint,SET,1)
-
+
/* 2-byte bit field */
H5T_INIT_TYPE(BITFIELD,H5T_NATIVE_B16_g,COPY,native_uint,SET,2)
-
+
/* 4-byte bit field */
H5T_INIT_TYPE(BITFIELD,H5T_NATIVE_B32_g,COPY,native_uint,SET,4)
-
+
/* 8-byte bit field */
H5T_INIT_TYPE(BITFIELD,H5T_NATIVE_B64_g,COPY,native_uint,SET,8)
-
+
/* haddr_t */
H5T_INIT_TYPE(OFFSET,H5T_NATIVE_HADDR_g,COPY,native_uint,SET,sizeof(haddr_t))
/* hsize_t */
H5T_INIT_TYPE(OFFSET,H5T_NATIVE_HSIZE_g,COPY,native_uint,SET,sizeof(hsize_t))
-
+
/* hssize_t */
H5T_INIT_TYPE(OFFSET,H5T_NATIVE_HSSIZE_g,COPY,native_int,SET,sizeof(hssize_t))
-
+
/* herr_t */
H5T_INIT_TYPE(OFFSET,H5T_NATIVE_HERR_g,COPY,native_int,SET,sizeof(herr_t))
@@ -774,7 +774,7 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* IEEE Types
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* IEEE 4-byte little-endian float */
@@ -792,69 +792,69 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* Other "standard" types
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* 1-byte little-endian (endianness is irrelevant) signed integer */
H5T_INIT_TYPE(SINTLE,H5T_STD_I8LE_g,COPY,native_int,SET,1)
-
+
/* 1-byte big-endian (endianness is irrelevant) signed integer */
H5T_INIT_TYPE(SINTBE,H5T_STD_I8BE_g,COPY,native_int,SET,1)
-
+
/* 2-byte little-endian signed integer */
H5T_INIT_TYPE(SINTLE,H5T_STD_I16LE_g,COPY,native_int,SET,2)
-
+
/* 2-byte big-endian signed integer */
H5T_INIT_TYPE(SINTBE,H5T_STD_I16BE_g,COPY,native_int,SET,2)
-
+
/* 4-byte little-endian signed integer */
H5T_INIT_TYPE(SINTLE,H5T_STD_I32LE_g,COPY,native_int,SET,4)
std_i32le=dt; /* Keep type for later */
-
+
/* 4-byte big-endian signed integer */
H5T_INIT_TYPE(SINTBE,H5T_STD_I32BE_g,COPY,native_int,SET,4)
-
+
/* 8-byte little-endian signed integer */
H5T_INIT_TYPE(SINTLE,H5T_STD_I64LE_g,COPY,native_int,SET,8)
-
+
/* 8-byte big-endian signed integer */
H5T_INIT_TYPE(SINTBE,H5T_STD_I64BE_g,COPY,native_int,SET,8)
-
+
/* 1-byte little-endian (endianness is irrelevant) unsigned integer */
H5T_INIT_TYPE(UINTLE,H5T_STD_U8LE_g,COPY,native_uint,SET,1)
std_u8le=dt; /* Keep type for later */
-
+
/* 1-byte big-endian (endianness is irrelevant) unsigned integer */
H5T_INIT_TYPE(UINTBE,H5T_STD_U8BE_g,COPY,native_uint,SET,1)
std_u8be=dt; /* Keep type for later */
-
+
/* 2-byte little-endian unsigned integer */
H5T_INIT_TYPE(UINTLE,H5T_STD_U16LE_g,COPY,native_uint,SET,2)
std_u16le=dt; /* Keep type for later */
-
+
/* 2-byte big-endian unsigned integer */
H5T_INIT_TYPE(UINTBE,H5T_STD_U16BE_g,COPY,native_uint,SET,2)
std_u16be=dt; /* Keep type for later */
-
+
/* 4-byte little-endian unsigned integer */
H5T_INIT_TYPE(UINTLE,H5T_STD_U32LE_g,COPY,native_uint,SET,4)
std_u32le=dt; /* Keep type for later */
-
+
/* 4-byte big-endian unsigned integer */
H5T_INIT_TYPE(UINTBE,H5T_STD_U32BE_g,COPY,native_uint,SET,4)
std_u32be=dt; /* Keep type for later */
-
+
/* 8-byte little-endian unsigned integer */
H5T_INIT_TYPE(UINTLE,H5T_STD_U64LE_g,COPY,native_uint,SET,8)
std_u64le=dt; /* Keep type for later */
-
+
/* 8-byte big-endian unsigned integer */
H5T_INIT_TYPE(UINTBE,H5T_STD_U64BE_g,COPY,native_uint,SET,8)
std_u64be=dt; /* Keep type for later */
/*------------------------------------------------------------
* Little- & Big-endian bitfields
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* little-endian (order is irrelevant) 8-bit bitfield */
@@ -884,7 +884,7 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* The Unix architecture for dates and times.
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* Little-endian 32-bit UNIX time_t */
@@ -910,7 +910,7 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* The `C' architecture
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* One-byte character string */
@@ -919,7 +919,7 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* The `Fortran' architecture
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* One-byte character string */
@@ -927,12 +927,12 @@ H5T_init_interface(void)
/*------------------------------------------------------------
* Pointer types
- *------------------------------------------------------------
+ *------------------------------------------------------------
*/
/* Object pointer (i.e. object header address in file) */
H5T_INIT_TYPE(OBJREF,H5T_STD_REF_OBJ_g,ALLOC,-,SET,H5R_OBJ_REF_BUF_SIZE)
-
+
/* Dataset Region pointer (i.e. selection inside a dataset) */
H5T_INIT_TYPE(REGREF,H5T_STD_REF_DSETREG_g,ALLOC,-,SET,H5R_DSET_REG_REF_BUF_SIZE)
@@ -1001,7 +1001,7 @@ H5T_init_interface(void)
status |= H5T_register(H5T_PERS_HARD, "llong_uchar", native_llong, native_uchar, H5T_conv_llong_uchar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ullong_schar", native_ullong, native_schar, H5T_conv_ullong_schar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ullong_uchar", native_ullong, native_uchar, H5T_conv_ullong_uchar, H5AC_dxpl_id);
-
+
/* From long */
status |= H5T_register(H5T_PERS_HARD, "long_llong", native_long, native_llong, H5T_conv_long_llong, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "long_ullong", native_long, native_ullong, H5T_conv_long_ullong, H5AC_dxpl_id);
@@ -1021,7 +1021,7 @@ H5T_init_interface(void)
status |= H5T_register(H5T_PERS_HARD, "long_uchar", native_long, native_uchar, H5T_conv_long_uchar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ulong_schar", native_ulong, native_schar, H5T_conv_ulong_schar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ulong_uchar", native_ulong, native_uchar, H5T_conv_ulong_uchar, H5AC_dxpl_id);
-
+
/* From short */
status |= H5T_register(H5T_PERS_HARD, "short_llong", native_short, native_llong, H5T_conv_short_llong, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "short_ullong", native_short, native_ullong, H5T_conv_short_ullong, H5AC_dxpl_id);
@@ -1041,7 +1041,7 @@ H5T_init_interface(void)
status |= H5T_register(H5T_PERS_HARD, "short_uchar", native_short, native_uchar, H5T_conv_short_uchar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ushort_schar", native_ushort, native_schar, H5T_conv_ushort_schar, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "ushort_uchar", native_ushort, native_uchar, H5T_conv_ushort_uchar, H5AC_dxpl_id);
-
+
/* From int */
status |= H5T_register(H5T_PERS_HARD, "int_llong", native_int, native_llong, H5T_conv_int_llong, H5AC_dxpl_id);
status |= H5T_register(H5T_PERS_HARD, "int_ullong", native_int, native_ullong, H5T_conv_int_ullong, H5AC_dxpl_id);
@@ -1094,7 +1094,7 @@ H5T_init_interface(void)
if (status<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to register conversion function(s)");
-
+
done:
/* General cleanup */
if (compound!=NULL)
@@ -1144,7 +1144,7 @@ static int
H5T_unlock_cb (void *_dt, hid_t UNUSED id, void UNUSED *key)
{
H5T_t *dt = (H5T_t *)_dt;
-
+
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_unlock_cb);
assert (dt);
@@ -1337,9 +1337,9 @@ H5T_term_interface(void)
* Failure: Negative
*
* Errors:
- * ARGS BADVALUE Invalid size.
- * DATATYPE CANTINIT Can't create type.
- * DATATYPE CANTREGISTER Can't register data type atom.
+ * ARGS BADVALUE Invalid size.
+ * DATATYPE CANTINIT Can't create type.
+ * DATATYPE CANTREGISTER Can't register data type atom.
*
* Programmer: Robb Matzke
* Friday, December 5, 1997
@@ -1399,7 +1399,7 @@ H5Topen(hid_t loc_id, const char *name)
hbool_t ent_found = FALSE; /* Entry at 'name' found */
hid_t dxpl_id = H5AC_dxpl_id; /* dxpl to use to open datatype */
hid_t ret_value =FAIL;
-
+
FUNC_ENTER_API(H5Topen, FAIL);
H5TRACE2("i","is",loc_id,name);
@@ -1504,7 +1504,7 @@ H5Tcopy(hid_t type_id)
/* Atomize result */
if ((ret_value = H5I_register(H5I_DATATYPE, new_dt)) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable to register data type atom");
-
+
done:
if(ret_value<0) {
if(new_dt!=NULL)
@@ -1547,7 +1547,7 @@ H5Tclose(hid_t type_id)
/* When the reference count reaches zero the resources are freed */
if (H5I_dec_ref(type_id) < 0)
HGOTO_ERROR(H5E_ATOM, H5E_BADATOM, FAIL, "problem freeing id");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -1634,7 +1634,7 @@ H5Tlock(hid_t type_id)
if (H5T_lock (dt, TRUE)<0)
HGOTO_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to lock transient data type");
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -1672,7 +1672,7 @@ H5Tget_class(hid_t type_id)
/* Set return value */
ret_value= H5T_get_class(dt, FALSE);
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -1704,9 +1704,9 @@ H5T_get_class(const H5T_t *dt, htri_t internal)
FUNC_ENTER_NOAPI(H5T_get_class, H5T_NO_CLASS);
assert(dt);
-
- /* Externally, a VL string is a string; internally, a VL string is a VL. */
- if(internal) {
+
+ /* Externally, a VL string is a string; internally, a VL string is a VL. */
+ if(internal) {
ret_value=dt->shared->type;
} else {
if(H5T_IS_VL_STRING(dt->shared))
@@ -1743,7 +1743,7 @@ H5Tdetect_class(hid_t type, H5T_class_t cls)
FUNC_ENTER_API(H5Tdetect_class, FAIL);
H5TRACE2("t","iTt",type,cls);
-
+
/* Check args */
if (NULL == (dt = H5I_object_verify(type,H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_NO_CLASS, "not a data type");
@@ -1784,7 +1784,7 @@ H5T_detect_class (const H5T_t *dt, H5T_class_t cls)
htri_t ret_value=FALSE; /* Return value */
FUNC_ENTER_NOAPI(H5T_detect_class, FAIL);
-
+
assert(dt);
assert(cls>H5T_NO_CLASS && cls<H5T_NCLASSES);
@@ -1845,7 +1845,7 @@ H5Tis_variable_str(hid_t dtype_id)
FUNC_ENTER_API(H5Tis_variable_str, FAIL);
H5TRACE1("t","i",dtype_id);
-
+
/* Check args */
if (NULL == (dt = H5I_object_verify(dtype_id,H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type");
@@ -1854,9 +1854,9 @@ H5Tis_variable_str(hid_t dtype_id)
ret_value=H5T_IS_VL_STRING(dt->shared);
done:
- FUNC_LEAVE_API(ret_value);
+ FUNC_LEAVE_API(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5Tget_size
@@ -1888,7 +1888,7 @@ H5Tget_size(hid_t type_id)
/* Check args */
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, 0, "not a datatype");
-
+
/* size */
ret_value = H5T_get_size(dt);
@@ -1981,7 +1981,7 @@ H5Tget_super(hid_t type)
{
H5T_t *dt=NULL, *super=NULL;
hid_t ret_value;
-
+
FUNC_ENTER_API(H5Tget_super, FAIL);
H5TRACE1("i","i",type);
@@ -2005,16 +2005,16 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_super
*
- * Purpose: Private function for H5Tget_super. Returns the type from
- * which TYPE is derived. In the case of an enumeration type
+ * Purpose: Private function for H5Tget_super. Returns the type from
+ * which TYPE is derived. In the case of an enumeration type
* the return value is an integer type.
*
* Return: Success: Data type for base data type.
*
- * Failure: NULL
+ * Failure: NULL
*
* Programmer: Raymond Lu
- * October 9, 2002
+ * October 9, 2002
*
* Modifications:
*
@@ -2024,7 +2024,7 @@ H5T_t *
H5T_get_super(H5T_t *dt)
{
H5T_t *ret_value=NULL;
-
+
FUNC_ENTER_NOAPI(H5T_get_super, NULL);
assert(dt);
@@ -2087,7 +2087,7 @@ H5T_register(H5T_pers_t pers, const char *name, H5T_t *src, H5T_t *dst,
/* Locate or create a new conversion path */
if (NULL==(new_path=H5T_path_find(src, dst, name, func, dxpl_id)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to locate/allocate conversion path");
-
+
/*
* Notify all other functions to recalculate private data since some
* functions might cache a list of conversion functions. For
@@ -2166,7 +2166,7 @@ H5T_register(H5T_pers_t pers, const char *name, H5T_t *src, H5T_t *dst,
/* Free old path */
H5T_print_stats(old_path, &nprint);
old_path->cdata.command = H5T_CONV_FREE;
- if ((old_path->func)(tmp_sid, tmp_did, &(old_path->cdata),
+ if ((old_path->func)(tmp_sid, tmp_did, &(old_path->cdata),
(size_t)0, (size_t)0, (size_t)0, NULL, NULL, dxpl_id)<0) {
#ifdef H5T_DEBUG
if (H5DEBUG(T)) {
@@ -2189,7 +2189,7 @@ H5T_register(H5T_pers_t pers, const char *name, H5T_t *src, H5T_t *dst,
H5E_clear();
} /* end for */
} /* end else */
-
+
done:
if (ret_value<0) {
if (new_path) {
@@ -2440,7 +2440,7 @@ H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a data type");
if (!pcdata)
HGOTO_ERROR (H5E_ARGS, H5E_BADVALUE, NULL, "no address to receive cdata pointer");
-
+
/* Find it */
if (NULL==(path=H5T_path_find(src, dst, NULL, NULL, H5AC_ind_dxpl_id)))
HGOTO_ERROR(H5E_DATATYPE, H5E_NOTFOUND, NULL, "conversion function not found");
@@ -2450,7 +2450,7 @@ H5Tfind(hid_t src_id, hid_t dst_id, H5T_cdata_t **pcdata)
/* Set return value */
ret_value = path->func;
-
+
done:
FUNC_LEAVE_API(ret_value);
}
@@ -2490,7 +2490,7 @@ H5Tconvert(hid_t src_id, hid_t dst_id, size_t nelmts, void *buf,
H5T_path_t *tpath=NULL; /*type conversion info */
H5T_t *src=NULL, *dst=NULL; /*unatomized types */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Tconvert, FAIL);
H5TRACE6("e","iizxxi",src_id,dst_id,nelmts,buf,background,dxpl_id);
@@ -2588,7 +2588,7 @@ done:
/*-------------------------------------------------------------------------
* API functions are above; library-private functions are below...
- *-------------------------------------------------------------------------
+ *-------------------------------------------------------------------------
*/
@@ -2639,7 +2639,7 @@ H5T_create(H5T_class_t type, size_t size)
if(type==H5T_COMPOUND)
dt->shared->u.compnd.packed=TRUE; /* Start out packed */
else if(type==H5T_OPAQUE)
- /* Initialize the tag in case it's not set later. A null tag will
+ /* Initialize the tag in case it's not set later. A null tag will
* cause problems for later operations. */
dt->shared->u.opaque.tag = H5MM_strdup("");
break;
@@ -2719,7 +2719,7 @@ htri_t
H5T_isa(H5G_entry_t *ent, hid_t dxpl_id)
{
htri_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5T_isa, FAIL);
assert(ent);
@@ -2754,7 +2754,7 @@ H5T_open (H5G_entry_t *ent, hid_t dxpl_id)
H5T_shared_t *shared_fo=NULL;
H5T_t *dt=NULL;
H5T_t *ret_value;
-
+
FUNC_ENTER_NOAPI(H5T_open, NULL);
assert (ent);
@@ -2829,7 +2829,7 @@ H5T_open_oid (H5G_entry_t *ent, hid_t dxpl_id)
{
H5T_t *dt=NULL;
H5T_t *ret_value;
-
+
FUNC_ENTER_NOAPI(H5T_open_oid, NULL);
assert (ent);
@@ -2929,7 +2929,7 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
*/
new_dt->shared->state = H5T_STATE_TRANSIENT;
break;
-
+
case H5T_COPY_ALL:
/*
* Return a transient type (locked or unlocked) or an unopened named
@@ -2976,7 +2976,7 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
}
break;
} /* end switch */
-
+
switch(new_dt->shared->type) {
case H5T_COMPOUND:
{
@@ -3055,7 +3055,7 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
for (i=0; i<new_dt->shared->u.enumer.nmembs; i++) {
s = old_dt->shared->u.enumer.name[i];
new_dt->shared->u.enumer.name[i] = H5MM_xstrdup(s);
- }
+ }
break;
case H5T_VLEN:
@@ -3096,7 +3096,7 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
/* Set return value */
ret_value=new_dt;
-
+
done:
if(ret_value==NULL) {
if(new_dt->shared != NULL)
@@ -3232,7 +3232,7 @@ H5T_free(H5T_t *dt)
/* Close the parent */
if (dt->shared->parent && H5T_close(dt->shared->parent)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTCLOSEOBJ, FAIL, "unable to close parent data type");
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5T_free() */
@@ -3275,7 +3275,7 @@ H5T_close(H5T_t *dt)
if(dt->shared->state != H5T_STATE_OPEN || dt->shared->fo_count == 1)
{
- if(H5T_free(dt)<0)
+ if(H5T_free(dt)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTFREE, FAIL, "unable to free datatype");
H5FL_FREE(H5T_shared_t, dt->shared);
@@ -3380,7 +3380,7 @@ H5T_set_size(H5T_t *dt, size_t size)
size_t memb_offset, max_offset=0;
size_t max_size;
- if((num_membs = H5T_get_nmembers(dt))<0)
+ if((num_membs = H5T_get_nmembers(dt))<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to get number of members");
for(i=0; i<(unsigned)num_membs; i++) {
@@ -3390,7 +3390,7 @@ H5T_set_size(H5T_t *dt, size_t size)
max_index = i;
}
}
-
+
max_size = H5T_get_member_size(dt, max_index);
if(size<(max_offset+max_size))
@@ -3414,12 +3414,12 @@ H5T_set_size(H5T_t *dt, size_t size)
dt->shared->type = H5T_VLEN;
/*
- * Force conversions (i.e. memory to memory conversions
+ * Force conversions (i.e. memory to memory conversions
* should duplicate data, not point to the same VL strings)
*/
dt->shared->force_conv = TRUE;
- /* Before we mess with the info in the union, extract the
+ /* Before we mess with the info in the union, extract the
* values we need */
tmp_cset=dt->shared->u.atomic.u.s.cset;
tmp_strpad=dt->shared->u.atomic.u.s.pad;
@@ -3472,7 +3472,7 @@ H5T_set_size(H5T_t *dt, size_t size)
}
} /* end if */
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -4016,7 +4016,7 @@ H5T_path_find(const H5T_t *src, const H5T_t *dst, const char *name,
lt = md = 1;
rt = H5T_g.npaths;
cmp = -1;
-
+
while (cmp && lt<rt) {
md = (lt+rt) / 2;
assert(H5T_g.path[md]);
@@ -4037,7 +4037,7 @@ H5T_path_find(const H5T_t *src, const H5T_t *dst, const char *name,
* added to the table - QAK, 1/26/02
*/
old_npaths=H5T_g.npaths;
-
+
/*
* If we didn't find the path or if the caller is specifying a new hard
* conversion function then create a new path and add the new function to
@@ -4082,7 +4082,7 @@ H5T_path_find(const H5T_t *src, const H5T_t *dst, const char *name,
path->func = func;
path->is_hard = TRUE;
}
-
+
/*
* If the path doesn't have a function by now (because it's a new path
* and the caller didn't supply a hard function) then scan the soft list
@@ -4124,7 +4124,7 @@ H5T_path_find(const H5T_t *src, const H5T_t *dst, const char *name,
lt = md = 1;
rt = H5T_g.npaths;
cmp = -1;
-
+
while (cmp && lt<rt) {
md = (lt+rt) / 2;
assert(H5T_g.path[md]);
@@ -4191,7 +4191,7 @@ done:
}
if (src_id>=0) H5I_dec_ref(src_id);
if (dst_id>=0) H5I_dec_ref(dst_id);
-
+
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -4342,7 +4342,7 @@ H5G_entry_t *
H5T_entof (H5T_t *dt)
{
H5G_entry_t *ret_value = NULL;
-
+
FUNC_ENTER_NOAPI(H5T_entof, NULL);
assert (dt);
@@ -4366,14 +4366,14 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_is_immutable
*
- * Purpose: Check if a datatype is immutable.
+ * Purpose: Check if a datatype is immutable.
*
- * Return: TRUE
+ * Return: TRUE
*
- * FALSE
+ * FALSE
*
- * Programmer: Raymond Lu
- * Friday, Dec 7, 2001
+ * Programmer: Raymond Lu
+ * Friday, Dec 7, 2001
*
* Modifications:
*
@@ -4399,13 +4399,13 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_is_named
*
- * Purpose: Check if a datatype is named.
+ * Purpose: Check if a datatype is named.
*
- * Return: TRUE
+ * Return: TRUE
*
- * FALSE
+ * FALSE
*
- * Programmer: Pedro Vicente
+ * Programmer: Pedro Vicente
* Tuesday, Sep 3, 2002
*
* Modifications:
@@ -4437,7 +4437,7 @@ done:
USAGE
H5R_type_t H5Tget_ref_type(dt)
H5T_t *dt; IN: datatype pointer for the reference datatype
-
+
RETURNS
Success: A reference type defined in H5Rpublic.h
Failure: H5R_BADTYPE
@@ -4487,7 +4487,7 @@ htri_t
H5T_is_sensible(const H5T_t *dt)
{
htri_t ret_value;
-
+
FUNC_ENTER_NOAPI(H5T_is_sensible, FAIL);
assert(dt);
@@ -4594,7 +4594,7 @@ H5T_print_stats(H5T_path_t UNUSED * path, int UNUSED * nprint/*in,out*/)
#endif
FUNC_ENTER_NOAPI_NOINIT_NOFUNC(H5T_print_stats);
-
+
#ifdef H5T_DEBUG
if (H5DEBUG(T) && path->stats.ncalls>0) {
if (nprint && 0==(*nprint)++) {
@@ -4622,8 +4622,8 @@ H5T_print_stats(H5T_path_t UNUSED * path, int UNUSED * nprint/*in,out*/)
path->name,
path->stats.nelmts,
path->stats.ncalls,
- path->stats.timer.utime,
- path->stats.timer.stime,
+ path->stats.timer.utime,
+ path->stats.timer.stime,
path->stats.timer.etime,
bandwidth);
}
@@ -4793,7 +4793,7 @@ H5T_debug(const H5T_t *dt, FILE *stream)
/* No additional info */
break;
}
-
+
} else if (H5T_COMPOUND==dt->shared->type) {
/* Compound data type */
for (i=0; i<dt->shared->u.compnd.nmembs; i++) {
@@ -4814,7 +4814,7 @@ H5T_debug(const H5T_t *dt, FILE *stream)
H5T_debug(dt->shared->u.compnd.memb[i].type, stream);
}
fprintf(stream, "\n");
-
+
} else if (H5T_ENUM==dt->shared->type) {
/* Enumeration data type */
fprintf(stream, " ");
@@ -4828,7 +4828,7 @@ H5T_debug(const H5T_t *dt, FILE *stream)
}
}
fprintf(stream, "\n");
-
+
} else if (H5T_OPAQUE==dt->shared->type) {
fprintf(stream, ", tag=\"%s\"", dt->shared->u.opaque.tag);
diff --git a/src/H5TS.c b/src/H5TS.c
index 27ce315..73502bb 100644
--- a/src/H5TS.c
+++ b/src/H5TS.c
@@ -46,7 +46,7 @@ static void H5TS_mutex_init(H5TS_mutex_t *mutex);
*
* USAGE
* H5TS_key_destructor()
- *
+ *
* RETURNS
*
* DESCRIPTION
@@ -75,7 +75,7 @@ H5TS_key_destructor(void *key_val)
*
* USAGE
* H5TS_first_thread_init()
- *
+ *
* RETURNS
*
* DESCRIPTION
@@ -119,7 +119,7 @@ H5TS_first_thread_init(void)
*
* USAGE
* H5TS_mutex_lock(&mutex_var)
- *
+ *
* RETURNS
* 0 on success and non-zero on error.
*
@@ -193,7 +193,7 @@ H5TS_mutex_lock(H5TS_mutex_t *mutex)
*
* USAGE
* H5TS_mutex_unlock(&mutex_var)
- *
+ *
* RETURNS
* 0 on success and non-zero on error.
*
@@ -245,7 +245,7 @@ H5TS_mutex_unlock(H5TS_mutex_t *mutex)
*
* USAGE
* H5TS_cancel_count_inc()
- *
+ *
* RETURNS
* 0 on success non-zero error code on error.
*
@@ -309,7 +309,7 @@ H5TS_cancel_count_inc(void)
*
* USAGE
* H5TS_cancel_count_dec()
- *
+ *
* RETURNS
* 0 on success and a non-zero error code on error.
*
diff --git a/src/H5Tarray.c b/src/H5Tarray.c
index b33d3bf..cb78a6f 100644
--- a/src/H5Tarray.c
+++ b/src/H5Tarray.c
@@ -39,7 +39,7 @@ NAME
H5T_init_array_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_array_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -88,7 +88,7 @@ H5Tarray_create(hid_t base_id, int ndims, const hsize_t dim[/* ndims */],
H5T_t *dt = NULL; /* new array data type */
int i; /* local index variable */
hid_t ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Tarray_create, FAIL);
H5TRACE4("i","iIs*h*Is",base_id,ndims,dim,perm);
@@ -210,7 +210,7 @@ H5Tget_array_ndims(hid_t type_id)
{
H5T_t *dt = NULL; /* pointer to array data type */
int ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Tget_array_ndims, FAIL);
H5TRACE1("Is","i",type_id);
@@ -231,7 +231,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_array_ndims
*
- * Purpose: Private function for H5T_get_array_ndims. Query the number
+ * Purpose: Private function for H5T_get_array_ndims. Query the number
* of dimensions for an array datatype.
*
* Return: Success: Number of dimensions of the array datatype
@@ -248,7 +248,7 @@ int
H5T_get_array_ndims(H5T_t *dt)
{
int ret_value; /* return value */
-
+
FUNC_ENTER_NOAPI(H5T_get_array_ndims, FAIL);
assert(dt);
@@ -282,7 +282,7 @@ H5Tget_array_dims(hid_t type_id, hsize_t dims[], int perm[])
{
H5T_t *dt = NULL; /* pointer to array data type */
int ret_value; /* return value */
-
+
FUNC_ENTER_API(H5Tget_array_dims, FAIL);
H5TRACE3("Is","i*h*Is",type_id,dims,perm);
@@ -303,7 +303,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_array_dims
*
- * Purpose: Private function for H5T_get_array_dims. Query the sizes
+ * Purpose: Private function for H5T_get_array_dims. Query the sizes
* of dimensions for an array datatype.
*
* Return: Success: Number of dimensions of the array type
@@ -321,19 +321,19 @@ H5T_get_array_dims(H5T_t *dt, hsize_t dims[], int perm[])
{
int ret_value; /* return value */
int i; /* Local index variable */
-
+
FUNC_ENTER_NOAPI(H5T_get_array_dims, FAIL);
assert(dt);
assert(dt->shared->type==H5T_ARRAY);
/* Retrieve the sizes of the dimensions */
- if(dims)
+ if(dims)
for(i=0; i<dt->shared->u.array.ndims; i++)
dims[i]=dt->shared->u.array.dim[i];
/* Retrieve the dimension permutations */
- if(perm)
+ if(perm)
for(i=0; i<dt->shared->u.array.ndims; i++)
perm[i]=dt->shared->u.array.perm[i];
diff --git a/src/H5Tbit.c b/src/H5Tbit.c
index 087a927..02bb694 100644
--- a/src/H5Tbit.c
+++ b/src/H5Tbit.c
@@ -57,7 +57,7 @@ H5T_bit_copy (uint8_t *dst, size_t dst_offset, const uint8_t *src,
d_idx = (int)dst_offset / 8;
src_offset %= 8;
dst_offset %= 8;
-
+
/*
* Get things rolling. This means copying bits until we're aligned on a
* source byte. This the following example, five bits are copied to the
@@ -93,7 +93,7 @@ H5T_bit_copy (uint8_t *dst, size_t dst_offset, const uint8_t *src,
}
size -= nbits;
}
-
+
/*
* The middle bits. We are aligned on a source byte which needs to be
* copied to two (or one in the degenerate case) destination bytes.
@@ -109,7 +109,7 @@ H5T_bit_copy (uint8_t *dst, size_t dst_offset, const uint8_t *src,
* +---------------+---------------+
* dst[d_idx+1] dst[d_idx]
*
- *
+ *
* Calculate shifts and masks. See diagrams below. MASK_LO in this
* example is 0x1f (the low five bits) and MASK_HI is 0xe0 (the high three
* bits). SHIFT is three since the source must be shifted right three bits
@@ -118,7 +118,7 @@ H5T_bit_copy (uint8_t *dst, size_t dst_offset, const uint8_t *src,
shift = (int)dst_offset;
mask_lo = (1<<(8-shift))-1;
mask_hi = (~mask_lo) & 0xff;
-
+
for (/*void*/; size>8; size-=8, d_idx++, s_idx++) {
if (shift) {
dst[d_idx+0] &= ~(mask_lo<<shift);
@@ -177,7 +177,7 @@ H5T_bit_get_d (uint8_t *buf, size_t offset, size_t size)
hsize_t val=0;
size_t i, hs;
hsize_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOFUNC(H5T_bit_get_d);
assert (8*sizeof(val)>=size);
@@ -224,7 +224,7 @@ void
H5T_bit_set_d (uint8_t *buf, size_t offset, size_t size, hsize_t val)
{
size_t i, hs;
-
+
assert (8*sizeof(val)>=size);
switch (H5T_native_order_g) {
@@ -282,7 +282,7 @@ H5T_bit_set (uint8_t *buf, size_t offset, size_t size, hbool_t value)
}
size -= nbits;
}
-
+
/* The middle bytes */
while (size>=8) {
buf[idx++] = value ? 0xff : 0x00;
@@ -307,7 +307,7 @@ H5T_bit_set (uint8_t *buf, size_t offset, size_t size, hbool_t value)
* of a bit vector. The region begins at OFFSET and continues
* for SIZE bits, but the region can be searched from the least
* significat end toward the most significant end(H5T_BIT_LSB
- * as DIRECTION), or from the most significant end to the least
+ * as DIRECTION), or from the most significant end to the least
* significant end(H5T_BIT_MSB as DIRECTION).
*
* Return: Success: The position of the bit found, relative to
@@ -342,7 +342,7 @@ H5T_bit_find (uint8_t *buf, size_t offset, size_t size, H5T_sdir_t direction,
/* Calculate index */
idx = (ssize_t)(offset / 8);
offset %= 8;
-
+
/* Beginning */
if (offset) {
for (iu=offset; iu<8 && size>0; iu++, size--) {
@@ -374,7 +374,7 @@ H5T_bit_find (uint8_t *buf, size_t offset, size_t size, H5T_sdir_t direction,
/* Calculate index */
idx = (ssize_t)((offset+size-1) / 8);
offset %= 8;
-
+
/* Beginning */
if (size>8-offset && (offset+size)%8) {
for (iu=(offset+size)%8; iu>0; --iu, --size) {
@@ -403,7 +403,7 @@ H5T_bit_find (uint8_t *buf, size_t offset, size_t size, H5T_sdir_t direction,
}
break;
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -412,10 +412,10 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_bit_inc
*
- * Purpose: Increment part of a bit field by adding 1. The bit field
+ * Purpose: Increment part of a bit field by adding 1. The bit field
* starts with bit position START and is SIZE bits long.
*
- * Return: Success: The carry-out value. One if overflows,
+ * Return: Success: The carry-out value. One if overflows,
* zero otherwise.
*
* Failure: Negative
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c
index 22b8b50..eebaf6f 100644
--- a/src/H5Tcommit.c
+++ b/src/H5Tcommit.c
@@ -39,7 +39,7 @@ NAME
H5T_init_commit_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_commit_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -77,7 +77,7 @@ H5Tcommit(hid_t loc_id, const char *name, hid_t type_id)
H5G_entry_t *loc = NULL;
H5T_t *type = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Tcommit, FAIL)
H5TRACE3("e","isi",loc_id,name,type_id);
@@ -118,7 +118,7 @@ H5T_commit (H5G_entry_t *loc, const char *name, H5T_t *type, hid_t dxpl_id)
{
H5F_t *file = NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5T_commit)
HDassert (loc);
@@ -164,7 +164,7 @@ H5T_commit (H5G_entry_t *loc, const char *name, H5T_t *type, hid_t dxpl_id)
if(H5FO_insert(type->ent.file, type->ent.header, type->shared)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINSERT, FAIL, "can't insert datatype into list of open objects")
- /* Mark datatype as being on memory now because this datatype may be still used in
+ /* Mark datatype as being on memory now because this datatype may be still used in
* memory after committed to disk. So we need to change its size back. */
if (H5T_vlen_mark(type, NULL, H5T_VLEN_MEMORY)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "cannot mark datatype in memory")
@@ -205,7 +205,7 @@ H5Tcommitted(hid_t type_id)
{
H5T_t *type = NULL;
htri_t ret_value; /* Return value */
-
+
FUNC_ENTER_API(H5Tcommitted, FAIL)
H5TRACE1("t","i",type_id);
diff --git a/src/H5Tcompound.c b/src/H5Tcompound.c
index 37c79ed..62681ce 100644
--- a/src/H5Tcompound.c
+++ b/src/H5Tcompound.c
@@ -41,7 +41,7 @@ NAME
H5T_init_compound_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_compound_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -104,7 +104,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_offset
*
- * Purpose: Private function for H5Tget_member_offset. Returns the byte
+ * Purpose: Private function for H5Tget_member_offset. Returns the byte
* offset of the beginning of a member with respect to the
* beginning of the compound datatype datum.
*
@@ -221,7 +221,7 @@ H5Tget_member_type(hid_t type_id, unsigned membno)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to retrieve member type")
if ((ret_value = H5I_register(H5I_DATATYPE, memb_dt)) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable register datatype atom")
-
+
done:
if(ret_value<0) {
if(memb_dt!=NULL)
@@ -236,17 +236,17 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_type
*
- * Purpose: Private function for H5Tget_member_type. Returns the data
+ * Purpose: Private function for H5Tget_member_type. Returns the data
* type of the specified member.
*
* Return: Success: A copy of the member datatype;
* modifying the returned datatype does not
* modify the member type.
*
- * Failure: NULL
+ * Failure: NULL
*
* Programmer: Raymond Lu
- * October 8, 2002
+ * October 8, 2002
*
* Modifications:
*
@@ -261,11 +261,11 @@ H5T_get_member_type(const H5T_t *dt, unsigned membno)
assert(dt);
assert(membno < dt->shared->u.compnd.nmembs);
-
+
/* Copy datatype into an atom */
if (NULL == (ret_value = H5T_copy(dt->shared->u.compnd.memb[membno].type, H5T_COPY_REOPEN)))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "unable to copy member datatype")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -296,7 +296,7 @@ H5T_get_member_size(const H5T_t *dt, unsigned membno)
assert(dt);
assert(membno < dt->shared->u.compnd.nmembs);
-
+
/* Value */
ret_value = dt->shared->u.compnd.memb[membno].type->shared->size;
@@ -390,7 +390,7 @@ H5Tpack(hid_t type_id)
/* Pack */
if (H5T_pack(dt) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to pack compound datatype")
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -420,7 +420,7 @@ H5T_insert(const H5T_t *parent, const char *name, size_t offset, const H5T_t *me
unsigned idx, i;
size_t total_size;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_insert, FAIL)
/* check args */
@@ -572,7 +572,7 @@ H5T_pack(const H5T_t *dt)
dt->shared->u.compnd.packed=TRUE;
} /* end if */
} /* end if */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 0317bbd..f08c510 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -147,15 +147,15 @@ H5FL_BLK_DEFINE_STATIC(array_seq);
*
* D_MAX: The maximum possible destination value. Source values which
* are larger than D_MAX generate overflows.
- *
+ *
* The macros are implemented with a generic programming technique, similar
* to templates in C++. The macro which defines the "core" part of the
* conversion (which actually moves the data from the source to the destination)
* is invoked inside the H5T_CONV "template" macro by "gluing" it together,
* which allows the core conversion macro to be invoked as necessary.
- *
+ *
* The generic "core" macros are: (others are specific to particular conversion)
- *
+ *
* Suffix Description
* ------ -----------
* xX: Generic Conversion where the destination is at least as
@@ -578,7 +578,7 @@ H5T_conv_noop(hid_t UNUSED src_id, hid_t UNUSED dst_id, H5T_cdata_t *cdata,
case H5T_CONV_FREE:
break;
-
+
default:
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
}
@@ -675,43 +675,43 @@ H5T_conv_order_opt(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
case 2:
for (/*void*/; nelmts>=20; nelmts-=20) {
H5_SWAP_BYTES(buf, 0, 1); /* 0 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 1 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 2 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 3 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 4 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 5 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 6 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 7 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 8 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 9 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 10 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 11 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 12 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 13 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 14 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 15 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 16 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 17 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 18 */
- buf += buf_stride;
+ buf += buf_stride;
H5_SWAP_BYTES(buf, 0, 1); /* 19 */
buf += buf_stride;
}
@@ -1142,7 +1142,7 @@ H5T_conv_b_b(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
} else if (src->shared->size>=dst->shared->size) {
double olap_d = HDceil((double)(dst->shared->size)/
(double)(src->shared->size-dst->shared->size));
-
+
olap = (size_t)olap_d;
sp = dp = (uint8_t*)buf;
direction = 1;
@@ -1179,7 +1179,7 @@ H5T_conv_b_b(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
(sp<dp && sp+src->shared->size<=dp));
}
#endif
-
+
/*
* Put the data in little endian order so our loops aren't so
* complicated. We'll do all the conversion stuff assuming
@@ -1266,7 +1266,7 @@ H5T_conv_b_b(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
dp += direction * dst->shared->size;
}
}
-
+
break;
default:
@@ -1276,7 +1276,7 @@ H5T_conv_b_b(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
done:
FUNC_LEAVE_NOAPI(ret_value);
}
-
+
/*-------------------------------------------------------------------------
* Function: H5T_conv_struct_init
@@ -1314,9 +1314,9 @@ H5T_conv_struct_init (H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata, hid_t dxpl_id)
H5T_t *type = NULL;
hid_t tid;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5T_conv_struct_init);
-
+
if (!priv) {
/*
* Allocate private data structure and arrays.
@@ -1411,7 +1411,7 @@ done:
}
-/*-------------------------------------------------------------------------
+/*-------------------------------------------------------------------------
* Function: H5T_conv_struct
*
* Purpose: Converts between compound data types. This is a soft
@@ -1422,7 +1422,7 @@ done:
* If sizeof detination type <= sizeof source type then
* Convert member to destination type;
* Move member as far left as possible;
- *
+ *
* For I=NELMTS..1 do
* If not destination type then
* Convert member to destination type;
@@ -1625,7 +1625,7 @@ H5T_conv_struct(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
/* Some other command we don't know about yet.*/
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -1646,7 +1646,7 @@ done:
* Move memb to BKG buffer for all elements
* Else
* Move member as far left as possible for all elements
- *
+ *
* For each member of the struct (in reverse order)
* If not destination type then
* Convert member to destination type for all elements
@@ -1674,7 +1674,7 @@ done:
* all of the field1's, then all field2's, etc. This can
* drastically reduce the number of calls to H5T_convert() and
* thereby eliminate most of the conversion constant overhead.
- *
+ *
* Robb Matzke, 2000-05-17
* Added the BKG_STRIDE argument to fix a design bug. If
* BUF_STRIDE and BKG_STRIDE are both non-zero then each
@@ -1726,7 +1726,7 @@ H5T_conv_struct_opt(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
HGOTO_ERROR (H5E_DATATYPE, H5E_CANTINIT, FAIL, "unable to initialize conversion data");
priv = (H5T_conv_struct_t *)(cdata->priv);
src2dst = priv->src2dst;
-
+
/*
* If the destination type is not larger than the source type then
* this conversion function is guaranteed to work (provided all
@@ -1800,7 +1800,7 @@ H5T_conv_struct_opt(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
H5T_sort_value(src, NULL);
H5T_sort_value(dst, NULL);
- /*
+ /*
* Calculate strides. If BUF_STRIDE is non-zero then convert one
* data element at every BUF_STRIDE bytes through the main buffer
* (BUF), leaving the result of each conversion at the same
@@ -1892,7 +1892,7 @@ H5T_conv_struct_opt(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
/* Some other command we don't know about yet.*/
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
@@ -1924,7 +1924,7 @@ H5T_conv_enum_init(H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata)
unsigned length; /*nelmts in map array */
unsigned i, j; /*counters */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5T_conv_enum_init);
cdata->need_bkg = H5T_BKG_NO;
@@ -1960,7 +1960,7 @@ H5T_conv_enum_init(H5T_t *src, H5T_t *dst, H5T_cdata_t *cdata)
*
* A: The source data type size matches one of our native data type
* sizes.
- *
+ *
* B: After casting the source value bit pattern to a native type
* the size of the range of values is less than 20% larger than
* the number of values.
@@ -2067,7 +2067,7 @@ H5T_conv_enum(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
size_t i; /*counters */
H5T_enum_struct_t *priv = (H5T_enum_struct_t*)(cdata->priv);
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_conv_enum, FAIL);
switch (cdata->command) {
@@ -2115,7 +2115,7 @@ H5T_conv_enum(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
* conversion algorithm, which is turned on by non-zero priv->length */
H5T_sort_name(dst, NULL);
if (!priv->length) H5T_sort_value(src, NULL);
-
+
/*
* Direction of conversion.
*/
@@ -2204,7 +2204,7 @@ done:
*
* For every VL struct in the main buffer:
* 1. Allocate space for temporary dst VL data (reuse buffer
- * if possible)
+ * if possible)
* 2. Copy VL data from src buffer into dst buffer
* 3. Convert VL data into dst representation
* 4. Allocate buffer in dst heap
@@ -2226,9 +2226,9 @@ done:
* destination values are packed.
*
* Raymond Lu, 26 June, 2002
- * Background buffer is used for freeing heap objects storing
- * old data. At this moment, it only frees the first level of
- * VL datatype. It doesn't handle nested VL datatypes.
+ * Background buffer is used for freeing heap objects storing
+ * old data. At this moment, it only frees the first level of
+ * VL datatype. It doesn't handle nested VL datatypes.
*
*-------------------------------------------------------------------------
*/
@@ -2343,7 +2343,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
if ((tmp_buf=H5FL_BLK_MALLOC(vlen_seq,tmp_buf_size))==NULL)
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
} /* end if */
-
+
/* Get the allocation info */
if(H5T_vlen_get_alloc_info(dxpl_id,&vl_alloc_info)<0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTGET, FAIL, "unable to retrieve VL allocation info");
@@ -2416,7 +2416,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
dst_size=seq_len*dst_base_size;
/* Check if conversion buffer is large enough, resize if
- * necessary */
+ * necessary */
if(conv_buf_size<MAX(src_size,dst_size)) {
/* Only allocate conversion buffer in H5T_VLEN_MIN_CONF_BUF_SIZE increments */
conv_buf_size=((MAX(src_size,dst_size)/H5T_VLEN_MIN_CONF_BUF_SIZE)+1)*H5T_VLEN_MIN_CONF_BUF_SIZE;
@@ -2439,7 +2439,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
HGOTO_ERROR (H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for type conversion");
} /* end if */
- /* If we are writing and there is a nested VL type, read
+ /* If we are writing and there is a nested VL type, read
* the sequence into the background buffer */
if(nested) {
uint8_t *tmp=b;
@@ -2516,7 +2516,7 @@ H5T_conv_vlen(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
default: /* Some other command we don't know about yet.*/
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
} /* end switch */
-
+
done:
/* If the conversion buffer doesn't need to be freed, reset its pointer */
if(write_to_file && noop_conv)
@@ -2678,7 +2678,7 @@ H5T_conv_array(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
default: /* Some other command we don't know about yet.*/
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
} /* end switch */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
} /* end H5T_conv_array() */
@@ -2724,7 +2724,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
ssize_t sfirst; /*a signed version of `first' */
size_t i; /*Local index variables */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_conv_i_i, FAIL);
switch (cdata->command) {
@@ -2742,7 +2742,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "destination size is too large");
cdata->need_bkg = H5T_BKG_NO;
break;
-
+
case H5T_CONV_FREE:
break;
@@ -2764,7 +2764,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
} else if (src->shared->size>=dst->shared->size) {
double olap_d = HDceil((double)(dst->shared->size)/
(double)(src->shared->size-dst->shared->size));
-
+
olap = (size_t)olap_d;
sp = dp = (uint8_t*)buf;
direction = 1;
@@ -2799,7 +2799,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
assert ((dp<sp && dp+dst->shared->size<=sp) || (sp<dp && sp+src->shared->size<=dp));
}
#endif
-
+
/*
* Put the data in little endian order so our loops aren't so
* complicated. We'll do all the conversion stuff assuming
@@ -2828,7 +2828,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
* Set the destination to zero.
*/
H5T_bit_set (d, dst->shared->u.atomic.offset, dst->shared->u.atomic.prec, FALSE);
-
+
} else if (H5T_SGN_NONE==src->shared->u.atomic.u.i.sign &&
H5T_SGN_NONE==dst->shared->u.atomic.u.i.sign) {
/*
@@ -2851,7 +2851,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_bit_copy (d, dst->shared->u.atomic.offset, s, src->shared->u.atomic.offset,
dst->shared->u.atomic.prec);
}
-
+
} else if (H5T_SGN_2==src->shared->u.atomic.u.i.sign &&
H5T_SGN_NONE==dst->shared->u.atomic.u.i.sign) {
/*
@@ -2880,7 +2880,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_bit_copy (d, dst->shared->u.atomic.offset, s, src->shared->u.atomic.offset,
dst->shared->u.atomic.prec);
}
-
+
} else if (H5T_SGN_NONE==src->shared->u.atomic.u.i.sign &&
H5T_SGN_2==dst->shared->u.atomic.u.i.sign) {
/*
@@ -2914,7 +2914,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
ssize_t sfz = H5T_bit_find (s, src->shared->u.atomic.offset,
src->shared->u.atomic.prec-1, H5T_BIT_MSB, FALSE);
size_t fz = (size_t)sfz;
-
+
if (sfz>=0 && fz+1>=dst->shared->u.atomic.prec) {
/*overflow*/
if (!H5T_overflow_g || (H5T_overflow_g)(src_id, dst_id, s, d)<0) {
@@ -2927,7 +2927,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
} else {
H5T_bit_copy (d, dst->shared->u.atomic.offset, s, src->shared->u.atomic.offset, dst->shared->u.atomic.prec);
}
-
+
} else {
/*
* Source and destination are both signed but the source
@@ -2993,7 +2993,7 @@ H5T_conv_i_i (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
dp += direction * dst->shared->size;
}
}
-
+
break;
default:
@@ -3062,7 +3062,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
size_t i; /*miscellaneous counters */
size_t implied; /*destination implied bits */
herr_t ret_value=SUCCEED; /*return value */
-
+
FUNC_ENTER_NOAPI(H5T_conv_f_f, FAIL);
switch (cdata->command) {
@@ -3142,7 +3142,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
(sp<dp && sp+src_p->shared->size<=dp));
}
#endif
-
+
/*
* Put the data in little endian order so our loops aren't so
* complicated. We'll do all the conversion stuff assuming
@@ -3175,9 +3175,9 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_bit_copy (d, dst.u.f.sign, s, src.u.f.sign, 1);
H5T_bit_set (d, dst.u.f.epos, dst.u.f.esize, TRUE);
H5T_bit_set (d, dst.u.f.mpos, dst.u.f.msize, FALSE);
- /*If the destination no implied mantissa bit, we'll need to set
+ /*If the destination no implied mantissa bit, we'll need to set
*the 1st bit of mantissa to 1. The Intel-Linux long double is
- *this case.*/
+ *this case.*/
if (H5T_NORM_NONE==dst.u.f.norm)
H5T_bit_set (d, dst.u.f.mpos+dst.u.f.msize-1, 1, TRUE);
goto padding;
@@ -3186,14 +3186,14 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
H5T_BIT_LSB, TRUE)<0 && H5T_bit_find (s, src.u.f.epos, src.u.f.esize,
H5T_BIT_LSB, FALSE)<0) {
/*This is a special case for the source of no implied mantissa bit.
- *If the exponent bits are all 1s and only the 1st bit of mantissa
+ *If the exponent bits are all 1s and only the 1st bit of mantissa
*is set to 1. It's infinity. The Intel-Linux "long double" is this case.*/
/* +Inf or -Inf */
H5T_bit_copy (d, dst.u.f.sign, s, src.u.f.sign, 1);
H5T_bit_set (d, dst.u.f.epos, dst.u.f.esize, TRUE);
H5T_bit_set (d, dst.u.f.mpos, dst.u.f.msize, FALSE);
- /*If the destination no implied mantissa bit, we'll need to set
- *the 1st bit of mantissa to 1.*/
+ /*If the destination no implied mantissa bit, we'll need to set
+ *the 1st bit of mantissa to 1.*/
if (H5T_NORM_NONE==dst.u.f.norm)
H5T_bit_set (d, dst.u.f.mpos+dst.u.f.msize-1, 1, TRUE);
goto padding;
@@ -3218,7 +3218,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
if(expo==0)
denormalized=TRUE;
-
+
/*
* Set markers for the source mantissa, excluding the leading `1'
* (might be implied).
@@ -3240,7 +3240,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
assert("normalization method not implemented yet" && 0);
HDabort();
}
-
+
/*
* The sign for the destination is the same as the sign for the
* source in all cases.
@@ -3339,7 +3339,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
implied = 2;
}
} else if(H5T_bit_get_d(s, mpos+bitno-1, 1) && denormalized)
- /*For either source or destination, denormalized value doesn't increment carry.*/
+ /*For either source or destination, denormalized value doesn't increment carry.*/
H5T_bit_inc(s, mpos+bitno-1, 1+msize-bitno);
}
else
@@ -3365,7 +3365,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
}
if (mrsh+msize>=dst.u.f.msize) {
H5T_bit_copy(d, dst.u.f.mpos,
- s, (mpos+msize+mrsh-dst.u.f.msize),
+ s, (mpos+msize+mrsh-dst.u.f.msize),
dst.u.f.msize-mrsh);
} else {
H5T_bit_copy(d, dst.u.f.mpos+dst.u.f.msize-(mrsh+msize),
@@ -3374,7 +3374,7 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
FALSE);
}
}
-
+
/* Write the exponent */
if (carry) {
expo++;
@@ -3452,9 +3452,9 @@ H5T_conv_f_f (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
dp += direction * dst_p->shared->size;
}
}
-
+
break;
-
+
default:
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
}
@@ -3496,7 +3496,7 @@ H5T_conv_s_s (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
uint8_t *s, *sp, *d, *dp; /*src and dst traversal pointers*/
uint8_t *dbuf=NULL; /*temp buf for overlap convers. */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_conv_s_s, FAIL);
switch (cdata->command) {
@@ -3556,7 +3556,7 @@ H5T_conv_s_s (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
/* Allocate the overlap buffer */
if (NULL==(dbuf=H5MM_malloc(dst->shared->size)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for string conversion");
-
+
/* The conversion loop. */
for (elmtno=0; elmtno<nelmts; elmtno++) {
@@ -3583,7 +3583,7 @@ H5T_conv_s_s (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
(sp<dp && sp+src->shared->size<=dp));
}
#endif
-
+
/* Copy characters from source to destination */
switch (src->shared->u.atomic.u.s.pad) {
case H5T_STR_NULLTERM:
@@ -3634,12 +3634,12 @@ H5T_conv_s_s (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata, size_t nelmts,
d[nchars++] = '\0';
d[dst->shared->size-1] = '\0';
break;
-
+
case H5T_STR_NULLPAD:
while (nchars<dst->shared->size)
d[nchars++] = '\0';
break;
-
+
case H5T_STR_SPACEPAD:
while (nchars<dst->shared->size)
d[nchars++] = ' ';
@@ -4367,7 +4367,7 @@ H5T_conv_ushort_schar(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(H5T_conv_ushort_schar, FAIL);
-
+
H5T_CONV_Us(USHORT, SCHAR, unsigned short, signed char, -, SCHAR_MAX);
done:
@@ -4433,7 +4433,7 @@ H5T_conv_short_ushort(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(H5T_conv_short_ushort, FAIL);
-
+
H5T_CONV_su(SHORT, USHORT, short, unsigned short, -, -);
done:
@@ -4994,7 +4994,7 @@ H5T_conv_uint_uchar(hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(H5T_conv_uint_uchar, FAIL);
-
+
H5T_CONV_Uu(UINT, UCHAR, unsigned, unsigned char, -, UCHAR_MAX);
done:
@@ -6757,7 +6757,7 @@ H5T_conv_i32le_f64le (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
if (NULL==(src=H5I_object(src_id)) ||
NULL==H5I_object(dst_id))
HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type");
-
+
s = (uint8_t*)buf + (buf_stride?buf_stride:4)*(nelmts-1);
d = (uint8_t*)buf + (buf_stride?buf_stride:8)*(nelmts-1);
for (elmtno=0; elmtno<nelmts; elmtno++) {
@@ -6792,7 +6792,7 @@ H5T_conv_i32le_f64le (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
default:
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unsupported integer sign method");
}
-
+
/*
* Where is the most significant bit that is set? We could do
* this in a loop, but testing it this way might be faster.
@@ -6845,7 +6845,7 @@ H5T_conv_i32le_f64le (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
exponent = (mbits - 1) + 1023;
d[7] = (sign<<7) | ((exponent>>4) & 0x7f);
d[6] = (exponent & 0x0f) << 4;
-
+
/*
* The mantissa.
*/
@@ -6997,7 +6997,7 @@ H5T_conv_i32le_f64le (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
d[5] = s[0];
d[4] = d[3] = d[2] = d[1] = d[0] = 0;
break;
-
+
case 12:
d[6] |= ((s[1]<<1) | (s[0]>>7)) & 0x0f;
d[5] = (s[0]<<1);
@@ -7088,7 +7088,7 @@ H5T_conv_i32le_f64le (hid_t src_id, hid_t dst_id, H5T_cdata_t *cdata,
/* Some other command we don't know about yet.*/
HGOTO_ERROR (H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "unknown conversion command");
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value);
}
diff --git a/src/H5Tcset.c b/src/H5Tcset.c
index 1c86b96..bc687ac 100644
--- a/src/H5Tcset.c
+++ b/src/H5Tcset.c
@@ -34,7 +34,7 @@ NAME
H5T_init_cset_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_cset_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -57,7 +57,7 @@ H5T_init_cset_interface(void)
* Purpose: HDF5 is able to distinguish between character sets of
* different nationalities and to convert between them to the
* extent possible.
- *
+ *
* Return: Success: The character set of a string type.
*
* Failure: H5T_CSET_ERROR (Negative)
@@ -87,11 +87,11 @@ H5Tget_cset(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_STRING(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, H5T_CSET_ERROR, "operation not defined for data type class")
-
+
/* result */
if(H5T_IS_FIXED_STRING(dt->shared))
ret_value = dt->shared->u.atomic.u.s.cset;
- else
+ else
ret_value = dt->shared->u.vlen.cset;
done:
@@ -137,11 +137,11 @@ H5Tset_cset(hid_t type_id, H5T_cset_t cset)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_STRING(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for data type class")
-
+
/* Commit */
if(H5T_IS_FIXED_STRING(dt->shared))
dt->shared->u.atomic.u.s.cset = cset;
- else
+ else
dt->shared->u.vlen.cset = cset;
done:
diff --git a/src/H5Tenum.c b/src/H5Tenum.c
index 4f36578..f99258a 100644
--- a/src/H5Tenum.c
+++ b/src/H5Tenum.c
@@ -46,7 +46,7 @@ NAME
H5T_init_enum_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_enum_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -86,7 +86,7 @@ H5Tenum_create(hid_t parent_id)
H5T_t *parent = NULL; /*base integer data type */
H5T_t *dt = NULL; /*new enumeration data type */
hid_t ret_value; /*return value */
-
+
FUNC_ENTER_API(H5Tenum_create, FAIL)
H5TRACE1("i","i",parent_id);
@@ -109,16 +109,16 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_enum_create
*
- * Purpose: Private function for H5Tenum_create. Create a new
+ * Purpose: Private function for H5Tenum_create. Create a new
* enumeration data type based on the specified
* TYPE, which must be an integer type.
*
* Return: Success: new enumeration data type
*
- * Failure: NULL
+ * Failure: NULL
*
* Programmer: Raymond Lu
- * October 9, 2002
+ * October 9, 2002
*
* Modifications:
*
@@ -128,7 +128,7 @@ H5T_t *
H5T_enum_create(const H5T_t *parent)
{
H5T_t *ret_value; /*new enumeration data type */
-
+
FUNC_ENTER_NOAPI(H5T_enum_create, NULL)
assert(parent);
@@ -177,7 +177,7 @@ H5Tenum_insert(hid_t type, const char *name, const void *value)
{
H5T_t *dt=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Tenum_insert, FAIL)
H5TRACE3("e","isx",type,name,value);
@@ -226,7 +226,7 @@ H5T_enum_insert(const H5T_t *dt, const char *name, const void *value)
char **names=NULL;
uint8_t *values=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_enum_insert, FAIL)
assert(dt);
@@ -287,7 +287,7 @@ H5Tget_member_value(hid_t type, unsigned membno, void *value/*out*/)
{
H5T_t *dt=NULL;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_API(H5Tget_member_value, FAIL)
H5TRACE3("e","iIux",type,membno,value);
@@ -310,7 +310,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_value
*
- * Purpose: Private function for H5T_get_member_value. Return the
+ * Purpose: Private function for H5T_get_member_value. Return the
* value for an enumeration data type member.
*
* Return: Success: non-negative with the member value copied
@@ -319,7 +319,7 @@ done:
* Failure: negative, VALUE memory is undefined.
*
* Programmer: Raymond Lu
- * October 9, 2002
+ * October 9, 2002
*
* Modifications:
*
@@ -329,7 +329,7 @@ herr_t
H5T_get_member_value(const H5T_t *dt, unsigned membno, void *value/*out*/)
{
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_get_member_value, FAIL)
assert(dt);
@@ -427,7 +427,7 @@ H5T_enum_nameof(const H5T_t *dt, const void *value, char *name/*out*/, size_t si
int cmp=(-1); /*comparison result */
H5T_t *copied_dt = NULL; /*do sorting in copied datatype */
char *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_enum_nameof, NULL)
/* Check args */
@@ -557,7 +557,7 @@ H5T_enum_valueof(const H5T_t *dt, const char *name, void *value/*out*/)
int cmp=(-1); /*comparison result */
H5T_t *copied_dt = NULL; /*do sorting in copied datatype */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5T_enum_valueof, FAIL)
/* Check args */
diff --git a/src/H5Tfields.c b/src/H5Tfields.c
index 813690c..a453e57 100644
--- a/src/H5Tfields.c
+++ b/src/H5Tfields.c
@@ -35,7 +35,7 @@ NAME
H5T_init_fields_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_fields_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -87,7 +87,7 @@ H5Tget_nmembers(hid_t type_id)
if((ret_value = H5T_get_nmembers(dt))<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "cannot return member number")
-
+
done:
FUNC_LEAVE_API(ret_value)
}
@@ -96,7 +96,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_nmembers
*
- * Purpose: Private function for H5Tget_nmembers. Determines how many
+ * Purpose: Private function for H5Tget_nmembers. Determines how many
* members DTYPE has. The type must be either a compound data
* type or an enumeration datatype.
*
@@ -106,8 +106,8 @@ done:
*
* Errors:
*
- * Programmer: Raymond Lu
- * October 8, 2002
+ * Programmer: Raymond Lu
+ * October 8, 2002
*
* Modifications:
*
@@ -128,7 +128,7 @@ H5T_get_nmembers(const H5T_t *dt)
ret_value = (int)dt->shared->u.enumer.nmembs;
else
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "operation not supported for type class")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -178,9 +178,9 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_member_name
*
- * Purpose: Private function for H5Tget_member_name. Returns the name
+ * Purpose: Private function for H5Tget_member_name. Returns the name
* of a member of a compound or enumeration datatype. Members
- * are stored in no particular order with numbers 0 through
+ * are stored in no particular order with numbers 0 through
* N-1 where N is the value returned by H5Tget_nmembers().
*
* Return: Success: Ptr to a string allocated with malloc(). The
@@ -189,7 +189,7 @@ done:
* Failure: NULL
*
* Programmer: Raymond Lu
- * October 9, 2002
+ * October 9, 2002
*
* Modifications:
*-------------------------------------------------------------------------
@@ -215,7 +215,7 @@ H5T_get_member_name(H5T_t const *dt, unsigned membno)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, NULL, "invalid member number")
ret_value = H5MM_xstrdup(dt->shared->u.enumer.name[membno]);
break;
-
+
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "operation not supported for type class")
} /*lint !e788 All appropriate cases are covered */
@@ -229,10 +229,10 @@ done:
* Function: H5Tget_member_index
*
* Purpose: Returns the index of a member in a compound or enumeration
- * datatype by given name.Members are stored in no particular
- * order with numbers 0 through N-1 where N is the value
+ * datatype by given name.Members are stored in no particular
+ * order with numbers 0 through N-1 where N is the value
* returned by H5Tget_nmembers().
- *
+ *
* Return: Success: index of the member if exists.
* Failure: -1.
*
@@ -265,7 +265,7 @@ H5Tget_member_index(hid_t type_id, const char *name)
if(!HDstrcmp(dt->shared->u.compnd.memb[i].name, name))
HGOTO_DONE((int)i)
}
- break;
+ break;
case H5T_ENUM:
for(i=0; i< dt->shared->u.enumer.nmembs; i++) {
if(!HDstrcmp(dt->shared->u.enumer.name[i], name))
@@ -364,7 +364,7 @@ H5T_sort_value(const H5T_t *dt, int *map)
HDmemcpy(dt->shared->u.enumer.value+j*size,
dt->shared->u.enumer.value+(j+1)*size, size);
HDmemcpy(dt->shared->u.enumer.value+(j+1)*size, tbuf, size);
-
+
/* Swap map */
if (map) {
int x = map[j];
@@ -386,7 +386,7 @@ H5T_sort_value(const H5T_t *dt, int *map)
#endif
}
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -449,7 +449,7 @@ H5T_sort_name(const H5T_t *dt, int *map)
#ifndef NDEBUG
/* I never trust a sort :-) -RPM */
for (i=0; i<nmembs-1; i++) {
- assert(HDstrcmp(dt->shared->u.compnd.memb[i].name,
+ assert(HDstrcmp(dt->shared->u.compnd.memb[i].name,
dt->shared->u.compnd.memb[i+1].name)<0);
}
#endif
@@ -493,7 +493,7 @@ H5T_sort_name(const H5T_t *dt, int *map)
#endif
}
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
diff --git a/src/H5Tfixed.c b/src/H5Tfixed.c
index 4219377..1d0817e 100644
--- a/src/H5Tfixed.c
+++ b/src/H5Tfixed.c
@@ -34,7 +34,7 @@ NAME
H5T_init_fixed_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_fixed_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -80,7 +80,7 @@ H5Tget_sign(hid_t type_id)
/* Check args */
if (NULL == (dt = H5I_object_verify(type_id,H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, H5T_SGN_ERROR, "not an integer datatype")
-
+
ret_value = H5T_get_sign(dt);
done:
@@ -91,7 +91,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_sign
*
- * Purpose: Private function for H5Tget_sign. Retrieves the sign type
+ * Purpose: Private function for H5Tget_sign. Retrieves the sign type
* for an integer type.
*
* Return: Success: The sign type.
@@ -121,7 +121,7 @@ H5T_get_sign(H5T_t const *dt)
/* Check args */
if (H5T_INTEGER!=dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5T_SGN_ERROR, "operation not defined for datatype class")
-
+
/* Sign */
ret_value = dt->shared->u.atomic.u.i.sign;
@@ -169,7 +169,7 @@ H5Tset_sign(hid_t type_id, H5T_sign_t sign)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_INTEGER!=dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
-
+
/* Commit */
dt->shared->u.atomic.u.i.sign = sign;
diff --git a/src/H5Tfloat.c b/src/H5Tfloat.c
index dbf0cb0..e216606 100644
--- a/src/H5Tfloat.c
+++ b/src/H5Tfloat.c
@@ -34,7 +34,7 @@ NAME
H5T_init_float_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_float_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -92,7 +92,7 @@ H5Tget_fields(hid_t type_id, size_t *spos/*out*/,
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
-
+
/* Get values */
if (spos) *spos = dt->shared->u.atomic.u.f.sign;
if (epos) *epos = dt->shared->u.atomic.u.f.epos;
@@ -115,7 +115,7 @@ done:
*
* Fields are not allowed to extend beyond the number of bits of
* precision, nor are they allowed to overlap with one another.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -124,7 +124,7 @@ done:
* Modifications:
* Robb Matzke, 22 Dec 1998
* Also works for derived datatypes.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
@@ -152,7 +152,7 @@ H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize,
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "mantissa bit field size/location is invalid")
if (spos >= dt->shared->u.atomic.prec)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "sign location is not valid")
-
+
/* Check for overlap */
if (spos >= epos && spos < epos + esize)
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "sign bit appears within exponent field")
@@ -161,7 +161,7 @@ H5Tset_fields(hid_t type_id, size_t spos, size_t epos, size_t esize,
if ((mpos < epos && mpos + msize > epos) ||
(epos < mpos && epos + esize > mpos))
HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "exponent and mantissa fields overlap")
-
+
/* Commit */
dt->shared->u.atomic.u.f.sign = spos;
dt->shared->u.atomic.u.f.epos = epos;
@@ -207,7 +207,7 @@ H5Tget_ebias(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, 0, "operation not defined for datatype class")
-
+
/* bias */
H5_ASSIGN_OVERFLOW(ret_value,dt->shared->u.atomic.u.f.ebias,uint64_t,size_t);
@@ -294,7 +294,7 @@ H5Tget_norm(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5T_NORM_ERROR, "operation not defined for datatype class")
-
+
/* norm */
ret_value = dt->shared->u.atomic.u.f.norm;
@@ -340,7 +340,7 @@ H5Tset_norm(hid_t type_id, H5T_norm_t norm)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
-
+
/* Commit */
dt->shared->u.atomic.u.f.norm = norm;
@@ -386,7 +386,7 @@ H5Tget_inpad(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, H5T_PAD_ERROR, "operation not defined for datatype class")
-
+
/* pad */
ret_value = dt->shared->u.atomic.u.f.pad;
@@ -434,7 +434,7 @@ H5Tset_inpad(hid_t type_id, H5T_pad_t pad)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_FLOAT != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for datatype class")
-
+
/* Commit */
dt->shared->u.atomic.u.f.pad = pad;
diff --git a/src/H5Tnative.c b/src/H5Tnative.c
index ecae777..09a80af 100644
--- a/src/H5Tnative.c
+++ b/src/H5Tnative.c
@@ -31,11 +31,11 @@
#include "H5Tpkg.h" /* Datatypes */
/* Static local functions */
-static H5T_t *H5T_get_native_type(H5T_t *dt, H5T_direction_t direction,
+static H5T_t *H5T_get_native_type(H5T_t *dt, H5T_direction_t direction,
size_t *struct_align, size_t *offset, size_t *comp_size);
-static H5T_t *H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
+static H5T_t *H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
size_t *struct_align, size_t *offset, size_t *comp_size);
-static H5T_t *H5T_get_native_float(size_t size, H5T_direction_t direction,
+static H5T_t *H5T_get_native_float(size_t size, H5T_direction_t direction,
size_t *struct_align, size_t *offset, size_t *comp_size);
static herr_t H5T_cmp_offset(size_t *comp_size, size_t *offset, size_t elem_size,
size_t nelems, size_t align, size_t *struct_align);
@@ -46,7 +46,7 @@ NAME
H5T_init_native_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_native_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -66,9 +66,9 @@ H5T_init_native_interface(void)
/*-------------------------------------------------------------------------
* Function: H5Tget_native_type
*
- * Purpose: High-level API to return the native type of a datatype.
- * The native type is chosen by matching the size and class of
- * querried datatype from the following native premitive
+ * Purpose: High-level API to return the native type of a datatype.
+ * The native type is chosen by matching the size and class of
+ * querried datatype from the following native premitive
* datatypes:
* H5T_NATIVE_CHAR H5T_NATIVE_UCHAR
* H5T_NATIVE_SHORT H5T_NATIVE_USHORT
@@ -80,16 +80,16 @@ H5T_init_native_interface(void)
* H5T_NATIVE_DOUBLE
* H5T_NATIVE_LDOUBLE
*
- * Compound, array, enum, and VL types all choose among these
+ * Compound, array, enum, and VL types all choose among these
* types for theire members. Time, Bifield, Opaque, Reference
* types are only copy out.
- *
+ *
* Return: Success: Returns the native data type if successful.
*
* Failure: negative
*
* Programmer: Raymond Lu
- * Oct 3, 2002
+ * Oct 3, 2002
*
* Modifications:
*
@@ -110,7 +110,7 @@ H5Tget_native_type(hid_t type_id, H5T_direction_t direction)
if(NULL==(dt=H5I_object_verify(type_id, H5I_DATATYPE)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a data type")
- if(direction!=H5T_DIR_DEFAULT && direction!=H5T_DIR_ASCEND
+ if(direction!=H5T_DIR_DEFAULT && direction!=H5T_DIR_ASCEND
&& direction!=H5T_DIR_DESCEND)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not valid direction value")
@@ -119,7 +119,7 @@ H5Tget_native_type(hid_t type_id, H5T_direction_t direction)
if((ret_value=H5I_register(H5I_DATATYPE, new_dt)) < 0)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTREGISTER, FAIL, "unable to register data type")
-
+
done:
/* Error cleanup */
if(ret_value<0) {
@@ -127,30 +127,30 @@ done:
if(H5T_close(new_dt)<0)
HDONE_ERROR(H5E_DATATYPE, H5E_CLOSEERROR, FAIL, "unable to release datatype")
} /* end if */
-
+
FUNC_LEAVE_API(ret_value)
}
/*-------------------------------------------------------------------------
* Function: H5T_get_native_type
- *
+ *
* Purpose: Returns the native type of a datatype.
- *
+ *
* Return: Success: Returns the native data type if successful.
- *
+ *
* Failure: negative
- *
+ *
* Programmer: Raymond Lu
* Oct 3, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static H5T_t*
H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_align, size_t *offset, size_t *comp_size)
-{
+{
H5T_t *dt; /* Datatype to make native */
H5T_class_t h5_class; /* Class of datatype to make native */
size_t size; /* Size of datatype to make native */
@@ -164,15 +164,15 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
H5T_t *ret_value; /* Return value */
FUNC_ENTER_NOAPI(H5T_get_native_type, NULL)
-
- assert(dtype);
+
+ assert(dtype);
if((h5_class = H5T_get_class(dtype, FALSE))==H5T_NO_CLASS)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a valid class")
-
+
if((size = H5T_get_size(dtype))==0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a valid size")
-
+
switch(h5_class) {
case H5T_INTEGER:
{
@@ -182,12 +182,12 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a valid signess")
prec = dtype->shared->u.atomic.prec;
-
+
if((ret_value = H5T_get_native_integer(prec, sign, direction, struct_align, offset, comp_size))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot retrieve integer type")
}
break;
-
+
case H5T_FLOAT:
if((ret_value = H5T_get_native_float(size, direction, struct_align, offset, comp_size))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot retrieve float type")
@@ -202,14 +202,14 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
/* Update size, offset and compound alignment for parent. */
if(H5T_cmp_offset(comp_size, offset, sizeof(char *), 1, H5T_POINTER_COMP_ALIGN_g, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
- } else {
+ } else {
/* Update size, offset and compound alignment for parent. */
if(H5T_cmp_offset(comp_size, offset, sizeof(char), size, H5T_NATIVE_SCHAR_COMP_ALIGN_g, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
}
break;
- /* These 2 types will be supported in the future. Simply return "not supported"
+ /* These 2 types will be supported in the future. Simply return "not supported"
* message for now.*/
case H5T_TIME:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "time type is not supported yet")
@@ -234,21 +234,21 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
if((ret_value=H5T_copy(dtype, H5T_COPY_TRANSIENT))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot retrieve float type")
-
+
/* Decide if the data type is object or dataset region reference. */
if(NULL==(dt=H5I_object(H5T_STD_REF_OBJ_g)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a data type")
not_equal = H5T_cmp(ret_value, dt, FALSE);
/* Update size, offset and compound alignment for parent. */
- if(!not_equal) {
+ if(!not_equal) {
align = H5T_HOBJREF_COMP_ALIGN_g;
ref_size = sizeof(hobj_ref_t);
} else {
align = H5T_HDSETREGREF_COMP_ALIGN_g;
ref_size = sizeof(hdset_reg_ref_t);
}
-
+
if(H5T_cmp_offset(comp_size, offset, ref_size, 1, align, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
}
@@ -259,14 +259,14 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
H5T_t *memb_type; /* Datatype of member */
H5T_t **memb_list; /* List of compound member IDs */
size_t *memb_offset; /* List of member offsets in compound type, including member size and alignment */
- size_t children_size=0;/* Total size of compound members */
+ size_t children_size=0;/* Total size of compound members */
size_t children_st_align=0; /* The max alignment among compound members. This'll be the compound alignment */
char **comp_mname; /* List of member names in compound type */
if((snmemb = H5T_get_nmembers(dtype))<=0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "compound data type doesn't have any member")
H5_ASSIGN_OVERFLOW(nmemb,snmemb,int,unsigned);
-
+
if((memb_list = (H5T_t**)H5MM_malloc(nmemb*sizeof(H5T_t*)))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot allocate memory")
if((memb_offset = (size_t*)H5MM_calloc(nmemb*sizeof(size_t)))==NULL)
@@ -274,43 +274,43 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
if((comp_mname = (char**)H5MM_malloc(nmemb*sizeof(char*)))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot allocate memory")
- /* Construct child compound type and retrieve a list of their IDs, offsets, total size, and alignment for compound type. */
+ /* Construct child compound type and retrieve a list of their IDs, offsets, total size, and alignment for compound type. */
for(i=0; i<nmemb; i++) {
if((memb_type = H5T_get_member_type(dtype, i))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "member type retrieval failed")
-
+
if((comp_mname[i] = H5T_get_member_name(dtype, i))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "member type retrieval failed")
-
+
if((memb_list[i] = H5T_get_native_type(memb_type, direction, &children_st_align, &(memb_offset[i]), &children_size))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "member identifier retrieval failed")
if(H5T_close(memb_type)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot close datatype")
}
-
+
/* The alignment for whole compound type */
if(children_st_align && children_size % children_st_align)
children_size += children_st_align-(children_size % children_st_align);
- /* Construct new compound type based on native type */
+ /* Construct new compound type based on native type */
if((new_type=H5T_create(H5T_COMPOUND, children_size))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot create a compound type")
- /* Insert members for the new compound type */
+ /* Insert members for the new compound type */
for(i=0; i<nmemb; i++) {
if(H5T_insert(new_type, comp_mname[i], memb_offset[i], memb_list[i])<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot insert member to compound datatype")
}
-
+
/* Update size, offset and compound alignment for parent. */
if(offset)
*offset = *comp_size;
if(struct_align && *struct_align < children_st_align)
*struct_align = children_st_align;
*comp_size += children_size;
-
- /* Close member data type */
+
+ /* Close member data type */
for(i=0; i<nmemb; i++) {
if(H5T_close(memb_list[i])<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot close datatype")
@@ -318,12 +318,12 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
/* Free member names in list */
H5MM_xfree(comp_mname[i]);
}
-
+
/* Free lists for members */
H5MM_xfree(memb_list);
H5MM_xfree(memb_offset);
H5MM_xfree(comp_mname);
-
+
ret_value = new_type;
}
break;
@@ -333,7 +333,7 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
char *memb_name; /* Enum's member name */
void *memb_value, *tmp_memb_value; /* Enum's member value */
hid_t super_type_id, nat_super_type_id;
-
+
/* Don't need to do anything special for alignment, offset since the ENUM type usually is integer. */
/* Retrieve base type for enumarate type */
@@ -346,17 +346,17 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot register datatype")
if((nat_super_type_id=H5I_register(H5I_DATATYPE, nat_super_type))<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot register datatype")
-
+
/* Allocate room for the enum values */
if((tmp_memb_value = H5MM_calloc(H5T_get_size(super_type)))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot allocate memory")
if((memb_value = H5MM_calloc(H5T_get_size(nat_super_type)))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot allocate memory")
- /* Construct new enum type based on native type */
+ /* Construct new enum type based on native type */
if((new_type=H5T_enum_create(nat_super_type))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "unable to create enum type")
-
+
/* Retrieve member info and insert members into new enum type */
if((snmemb = H5T_get_nmembers(dtype))<=0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "enumarate data type doesn't have any member")
@@ -367,10 +367,10 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
if(H5T_get_member_value(dtype, i, tmp_memb_value)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot get member value")
HDmemcpy(memb_value, tmp_memb_value, H5T_get_size(super_type));
-
+
if(H5Tconvert(super_type_id, nat_super_type_id, 1, memb_value, NULL, H5P_DEFAULT)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot get member value")
-
+
if(H5T_enum_insert(new_type, memb_name, memb_value)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot insert member")
H5MM_xfree(memb_name);
@@ -384,7 +384,7 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
/* Close super type */
if(H5Tclose(super_type_id)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot close datatype")
-
+
ret_value = new_type;
}
break;
@@ -395,9 +395,9 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
unsigned array_rank; /* Array's rank */
hsize_t *dims = NULL; /* Dimension sizes for array */
hsize_t nelems = 1;
- size_t super_offset=0;
- size_t super_size=0;
- size_t super_align=0;
+ size_t super_offset=0;
+ size_t super_size=0;
+ size_t super_align=0;
/* Retrieve dimension information for array data type */
if((sarray_rank=H5T_get_array_ndims(dtype))<=0)
@@ -411,7 +411,7 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
/* Retrieve base type for array type */
if((super_type=H5T_get_super(dtype))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "unable to get parent type for enumarate type")
- if((nat_super_type = H5T_get_native_type(super_type, direction, &super_align,
+ if((nat_super_type = H5T_get_native_type(super_type, direction, &super_align,
&super_offset, &super_size))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "parent native type retrieval failed")
@@ -420,19 +420,19 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
HGOTO_ERROR(H5E_ARGS, H5E_CLOSEERROR, NULL, "cannot close datatype")
/* Create a new array type based on native type */
- if((new_type=H5T_array_create(nat_super_type, sarray_rank, dims, NULL))==NULL)
+ if((new_type=H5T_array_create(nat_super_type, sarray_rank, dims, NULL))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "unable to create array type")
/* Close base type */
if(H5T_close(nat_super_type)<0)
HGOTO_ERROR(H5E_ARGS, H5E_CLOSEERROR, NULL, "cannot close datatype")
-
+
for(i=0; i<array_rank; i++)
- nelems *= dims[i];
+ nelems *= dims[i];
H5_CHECK_OVERFLOW(nelems,hsize_t,size_t);
if(H5T_cmp_offset(comp_size, offset, super_size, (size_t)nelems, super_align, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
-
+
H5MM_xfree(dims);
ret_value = new_type;
}
@@ -442,7 +442,7 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
{
size_t vl_align = 0;
size_t vl_size = 0;
- size_t super_size=0;
+ size_t super_size=0;
/* Retrieve base type for array type */
if((super_type=H5T_get_super(dtype))==NULL)
@@ -457,29 +457,29 @@ H5T_get_native_type(H5T_t *dtype, H5T_direction_t direction, size_t *struct_alig
HGOTO_ERROR(H5E_ARGS, H5E_CLOSEERROR, NULL, "cannot close datatype")
/* Create a new array type based on native type */
- if((new_type=H5T_vlen_create(nat_super_type))==NULL)
+ if((new_type=H5T_vlen_create(nat_super_type))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "unable to create VL type")
-
+
/* Close base type */
if(H5T_close(nat_super_type)<0)
HGOTO_ERROR(H5E_ARGS, H5E_CLOSEERROR, NULL, "cannot close datatype")
-
+
/* Update size, offset and compound alignment for parent compound type directly. */
vl_align = H5T_HVL_COMP_ALIGN_g;
vl_size = sizeof(hvl_t);
-
+
if(H5T_cmp_offset(comp_size, offset, vl_size, 1, vl_align, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
-
+
ret_value = new_type;
}
- break;
+ break;
case H5T_NO_CLASS:
case H5T_NCLASSES:
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "data type doesn't match any native type")
- }
+ }
done:
/* Error cleanup */
@@ -495,29 +495,29 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_native_integer
- *
+ *
* Purpose: Returns the native integer type of a datatype.
- *
+ *
* Return: Success: Returns the native data type if successful.
- *
+ *
* Failure: negative
- *
+ *
* Programmer: Raymond Lu
* Oct 3, 2002
- *
+ *
* Modifications: Pedro Vicente
* Sep 4, 2004
* Choose the type based on the precision; this is to support cases
* like the Cray SV1, where the size of short is 8 but precision is 32
* (e.g an INT (size 8, prec 64) would be converted to a SHORT
* (size 8, prec 32) if the size was the deciding factor)
- *
+ *
*-------------------------------------------------------------------------
*/
static H5T_t*
-H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
+H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
size_t *struct_align, size_t *offset, size_t *comp_size)
-{
+{
H5T_t *dt; /* Appropriate native datatype to copy */
hid_t tid=(-1); /* Datatype ID of appropriate native datatype */
size_t align=0; /* Alignment necessary for native datatype */
@@ -537,66 +537,66 @@ H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
if(direction == H5T_DIR_DEFAULT || direction == H5T_DIR_ASCEND) {
if(prec<=H5Tget_precision(H5T_NATIVE_SCHAR)) {
match=H5T_NATIVE_INT_MATCH_CHAR;
- native_size = sizeof(char);
+ native_size = sizeof(char);
} else if(prec<=H5Tget_precision(H5T_NATIVE_SHORT)) {
match=H5T_NATIVE_INT_MATCH_SHORT;
- native_size = sizeof(short);
+ native_size = sizeof(short);
} else if(prec<=H5Tget_precision(H5T_NATIVE_INT)) {
match=H5T_NATIVE_INT_MATCH_INT;
- native_size = sizeof(int);
+ native_size = sizeof(int);
} else if(prec<=H5Tget_precision(H5T_NATIVE_LONG)) {
match=H5T_NATIVE_INT_MATCH_LONG;
- native_size = sizeof(long);
+ native_size = sizeof(long);
} else if(prec<=H5Tget_precision(H5T_NATIVE_LLONG)) {
match=H5T_NATIVE_INT_MATCH_LLONG;
- native_size = sizeof(long_long);
+ native_size = sizeof(long_long);
} else { /* If no native type matches the querried datatype, simply choose the type of biggest size. */
match=H5T_NATIVE_INT_MATCH_LLONG;
- native_size = sizeof(long_long);
+ native_size = sizeof(long_long);
}
} else if(direction == H5T_DIR_DESCEND) {
- if(prec>=H5Tget_precision(H5T_NATIVE_LLONG)) {
+ if(prec>=H5Tget_precision(H5T_NATIVE_LLONG)) {
match=H5T_NATIVE_INT_MATCH_LLONG;
- native_size = sizeof(long_long);
+ native_size = sizeof(long_long);
} else if(prec>=H5Tget_precision(H5T_NATIVE_LONG)) {
if(prec==H5Tget_precision(H5T_NATIVE_LONG)) {
match=H5T_NATIVE_INT_MATCH_LONG;
- native_size = sizeof(long);
+ native_size = sizeof(long);
} else {
match=H5T_NATIVE_INT_MATCH_LLONG;
- native_size = sizeof(long_long);
+ native_size = sizeof(long_long);
}
}
else if(prec>=H5Tget_precision(H5T_NATIVE_INT)) {
if(prec==H5Tget_precision(H5T_NATIVE_INT)) {
match=H5T_NATIVE_INT_MATCH_INT;
- native_size = sizeof(int);
+ native_size = sizeof(int);
} else {
match=H5T_NATIVE_INT_MATCH_LONG;
- native_size = sizeof(long);
+ native_size = sizeof(long);
}
}
else if(prec>=H5Tget_precision(H5T_NATIVE_SHORT)) {
if(prec==H5Tget_precision(H5T_NATIVE_SHORT)) {
match=H5T_NATIVE_INT_MATCH_SHORT;
- native_size = sizeof(short);
+ native_size = sizeof(short);
} else {
match=H5T_NATIVE_INT_MATCH_INT;
- native_size = sizeof(int);
+ native_size = sizeof(int);
}
}
else if(prec>=H5Tget_precision(H5T_NATIVE_SCHAR)) {
if(prec==H5Tget_precision(H5T_NATIVE_SCHAR)) {
match=H5T_NATIVE_INT_MATCH_CHAR;
- native_size = sizeof(char);
+ native_size = sizeof(char);
} else {
match=H5T_NATIVE_INT_MATCH_SHORT;
- native_size = sizeof(short);
+ native_size = sizeof(short);
}
}
else { /* If no native type matches the queried datatype, simply choose the type of smallest size. */
match=H5T_NATIVE_INT_MATCH_CHAR;
- native_size = sizeof(char);
+ native_size = sizeof(char);
}
}
@@ -607,50 +607,50 @@ H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
tid = H5T_NATIVE_SCHAR;
else
tid = H5T_NATIVE_UCHAR;
-
- align = H5T_NATIVE_SCHAR_COMP_ALIGN_g;
+
+ align = H5T_NATIVE_SCHAR_COMP_ALIGN_g;
break;
-
+
case H5T_NATIVE_INT_MATCH_SHORT:
if(sign==H5T_SGN_2)
tid = H5T_NATIVE_SHORT;
- else
+ else
tid = H5T_NATIVE_USHORT;
- align = H5T_NATIVE_SHORT_COMP_ALIGN_g;
+ align = H5T_NATIVE_SHORT_COMP_ALIGN_g;
break;
-
+
case H5T_NATIVE_INT_MATCH_INT:
if(sign==H5T_SGN_2)
tid = H5T_NATIVE_INT;
- else
+ else
tid = H5T_NATIVE_UINT;
- align = H5T_NATIVE_INT_COMP_ALIGN_g;
+ align = H5T_NATIVE_INT_COMP_ALIGN_g;
break;
-
+
case H5T_NATIVE_INT_MATCH_LONG:
if(sign==H5T_SGN_2)
tid = H5T_NATIVE_LONG;
- else
+ else
tid = H5T_NATIVE_ULONG;
- align = H5T_NATIVE_LONG_COMP_ALIGN_g;
+ align = H5T_NATIVE_LONG_COMP_ALIGN_g;
break;
-
+
case H5T_NATIVE_INT_MATCH_LLONG:
if(sign==H5T_SGN_2)
tid = H5T_NATIVE_LLONG;
- else
+ else
tid = H5T_NATIVE_ULLONG;
- align = H5T_NATIVE_LLONG_COMP_ALIGN_g;
+ align = H5T_NATIVE_LLONG_COMP_ALIGN_g;
break;
-
+
case H5T_NATIVE_INT_MATCH_UNKNOWN:
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "Unknown native integer match")
} /* end switch */
-
+
/* Create new native type */
assert(tid>=0);
if(NULL==(dt=H5I_object(tid)))
@@ -658,11 +658,11 @@ H5T_get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
if((ret_value=H5T_copy(dt, H5T_COPY_TRANSIENT))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot copy type")
-
+
/* compute size and offset of compound type member. */
if(H5T_cmp_offset(comp_size, offset, native_size, 1, align, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -671,23 +671,23 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_get_native_float
- *
+ *
* Purpose: Returns the native floatt type of a datatype.
- *
+ *
* Return: Success: Returns the native data type if successful.
- *
+ *
* Failure: negative
- *
+ *
* Programmer: Raymond Lu
* Oct 3, 2002
- *
+ *
* Modifications:
- *
+ *
*-------------------------------------------------------------------------
*/
static H5T_t*
H5T_get_native_float(size_t size, H5T_direction_t direction, size_t *struct_align, size_t *offset, size_t *comp_size)
-{
+{
H5T_t *dt=NULL; /* Appropriate native datatype to copy */
hid_t tid=(-1); /* Datatype ID of appropriate native datatype */
size_t align=0; /* Alignment necessary for native datatype */
@@ -703,47 +703,47 @@ H5T_get_native_float(size_t size, H5T_direction_t direction, size_t *struct_alig
FUNC_ENTER_NOAPI(H5T_get_native_float, NULL)
assert(size>0);
-
- if(direction == H5T_DIR_DEFAULT || direction == H5T_DIR_ASCEND) {
+
+ if(direction == H5T_DIR_DEFAULT || direction == H5T_DIR_ASCEND) {
if(size<=sizeof(float)) {
match=H5T_NATIVE_FLOAT_MATCH_FLOAT;
- native_size = sizeof(float);
+ native_size = sizeof(float);
} else if(size<=sizeof(double)) {
match=H5T_NATIVE_FLOAT_MATCH_DOUBLE;
- native_size = sizeof(double);
+ native_size = sizeof(double);
} else if(size<=sizeof(long double)) {
match=H5T_NATIVE_FLOAT_MATCH_LDOUBLE;
- native_size = sizeof(long double);
+ native_size = sizeof(long double);
} else { /* If not match, return the biggest datatype */
match=H5T_NATIVE_FLOAT_MATCH_LDOUBLE;
native_size = sizeof(long double);
- }
+ }
} else {
if(size>=sizeof(long double)) {
match=H5T_NATIVE_FLOAT_MATCH_LDOUBLE;
- native_size = sizeof(long double);
+ native_size = sizeof(long double);
} else if(size>=sizeof(double)) {
if(size==sizeof(double)) {
match=H5T_NATIVE_FLOAT_MATCH_DOUBLE;
- native_size = sizeof(double);
+ native_size = sizeof(double);
} else {
match=H5T_NATIVE_FLOAT_MATCH_LDOUBLE;
native_size = sizeof(long double);
- }
+ }
}
else if(size>=sizeof(float)) {
if(size==sizeof(float)) {
match=H5T_NATIVE_FLOAT_MATCH_FLOAT;
- native_size = sizeof(float);
+ native_size = sizeof(float);
} else {
match=H5T_NATIVE_FLOAT_MATCH_DOUBLE;
native_size = sizeof(double);
- }
- }
+ }
+ }
else {
match=H5T_NATIVE_FLOAT_MATCH_FLOAT;
native_size = sizeof(float);
- }
+ }
}
/* Set the appropriate native floating point information */
@@ -767,18 +767,18 @@ H5T_get_native_float(size_t size, H5T_direction_t direction, size_t *struct_alig
default:
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "Unknown native floating-point match")
} /* end switch */
-
+
/* Create new native type */
assert(tid>=0);
if(NULL==(dt=H5I_object(tid)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "not a data type")
if((ret_value=H5T_copy(dt, H5T_COPY_TRANSIENT))==NULL)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot retrieve float type")
-
+
/* compute offset of compound type member. */
if(H5T_cmp_offset(comp_size, offset, native_size, 1, align, struct_align)<0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, NULL, "cannot compute compound offset")
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
@@ -787,23 +787,23 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_cmp_offset
*
- * Purpose: This function is only for convenience. It computes the
+ * Purpose: This function is only for convenience. It computes the
* compound type size, offset of the member being considered
* and the alignment for the whole compound type.
*
- * Return: Success: Non-negative value.
+ * Return: Success: Non-negative value.
*
- * Failure: Negative value.
+ * Failure: Negative value.
*
* Programmer: Raymond Lu
- * December 10, 2002
+ * December 10, 2002
*
* Modifications:
*
*-------------------------------------------------------------------------
*/
static herr_t
-H5T_cmp_offset(size_t *comp_size, size_t *offset, size_t elem_size,
+H5T_cmp_offset(size_t *comp_size, size_t *offset, size_t elem_size,
size_t nelems, size_t align, size_t *struct_align)
{
herr_t ret_value = SUCCEED;
@@ -818,7 +818,7 @@ H5T_cmp_offset(size_t *comp_size, size_t *offset, size_t elem_size,
} else
*offset = *comp_size;
- /* compute size of compound type member. */
+ /* compute size of compound type member. */
*comp_size += nelems*elem_size;
}
diff --git a/src/H5Toffset.c b/src/H5Toffset.c
index 6090851..8cf278f 100644
--- a/src/H5Toffset.c
+++ b/src/H5Toffset.c
@@ -37,7 +37,7 @@ NAME
H5T_init_offset_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_offset_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -104,7 +104,7 @@ H5Tget_offset(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_ATOMIC(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
-
+
/* Offset */
ret_value = (int)dt->shared->u.atomic.offset;
@@ -139,7 +139,7 @@ done:
* the value from hanging over the edge of the data type.
*
* The offset of an H5T_STRING cannot be set to anything but
- * zero.
+ * zero.
*
* Return: Non-negative on success/Negative on failure
*
@@ -208,7 +208,7 @@ done:
* the value from hanging over the edge of the data type.
*
* The offset of an H5T_STRING cannot be set to anything but
- * zero.
+ * zero.
*
* Return: Non-negative on success/Negative on failure
*
@@ -250,7 +250,7 @@ H5T_set_offset(const H5T_t *dt, size_t offset)
dt->shared->size = (offset + dt->shared->u.atomic.prec + 7) / 8;
dt->shared->u.atomic.offset = offset;
}
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
diff --git a/src/H5Topaque.c b/src/H5Topaque.c
index 0121957..eb14d58 100644
--- a/src/H5Topaque.c
+++ b/src/H5Topaque.c
@@ -35,7 +35,7 @@ NAME
H5T_init_opaque_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_opaque_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -128,7 +128,7 @@ H5Tget_tag(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (H5T_OPAQUE != dt->shared->type)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, NULL, "operation not defined for data type class")
-
+
/* result */
if (NULL==(ret_value=H5MM_strdup(dt->shared->u.opaque.tag)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, NULL, "memory allocation failed")
diff --git a/src/H5Torder.c b/src/H5Torder.c
index 6d9a713..0628609 100644
--- a/src/H5Torder.c
+++ b/src/H5Torder.c
@@ -34,7 +34,7 @@ NAME
H5T_init_order_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_order_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
diff --git a/src/H5Tpad.c b/src/H5Tpad.c
index 3a59bca..96d456a 100644
--- a/src/H5Tpad.c
+++ b/src/H5Tpad.c
@@ -34,7 +34,7 @@ NAME
H5T_init_pad_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_pad_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -85,7 +85,7 @@ H5Tget_pad(hid_t type_id, H5T_pad_t *lsb/*out*/, H5T_pad_t *msb/*out*/)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_ATOMIC(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for specified data type")
-
+
/* Get values */
if (lsb)
*lsb = dt->shared->u.atomic.lsb_pad;
@@ -110,7 +110,7 @@ done:
* Modifications:
* Robb Matzke, 22 Dec 1998
* Also works with derived data types.
- *
+ *
*-------------------------------------------------------------------------
*/
herr_t
diff --git a/src/H5Tpkg.h b/src/H5Tpkg.h
index 3c19277..d655a5c 100644
--- a/src/H5Tpkg.h
+++ b/src/H5Tpkg.h
@@ -162,8 +162,8 @@ typedef struct H5T_vlen_t {
H5T_vlen_type_t type; /* Type of VL data in buffer */
H5T_vlen_loc_t loc; /* Location of VL data in buffer */
H5T_cset_t cset; /* For VL string. character set */
- H5T_str_t pad; /* For VL string. space or null padding of
- * extra bytes */
+ H5T_str_t pad; /* For VL string. space or null padding of
+ * extra bytes */
H5F_t *f; /* File ID (if VL data is on disk) */
H5T_vlen_getptrfunc_t getptr; /* Function to get VL sequence pointer */
H5T_vlen_getlenfunc_t getlen; /* Function to get VL sequence size (in element units, not bytes) */
diff --git a/src/H5Tprecis.c b/src/H5Tprecis.c
index 9b2a0b4..2a68915 100644
--- a/src/H5Tprecis.c
+++ b/src/H5Tprecis.c
@@ -37,7 +37,7 @@ NAME
H5T_init_precis_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_precis_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -92,7 +92,7 @@ H5Tget_precision(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_ATOMIC(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, 0, "operation not defined for specified datatype")
-
+
/* Precision */
ret_value = dt->shared->u.atomic.prec;
@@ -260,7 +260,7 @@ H5T_set_precision(const H5T_t *dt, size_t prec)
else
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "operation not defined for specified datatype")
} /* end else */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
}
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h
index 4d7136f..b2137c6 100644
--- a/src/H5Tpublic.h
+++ b/src/H5Tpublic.h
@@ -535,7 +535,7 @@ H5_DLL hid_t H5Tget_member_type(hid_t type_id, unsigned membno);
H5_DLL herr_t H5Tget_member_value(hid_t type_id, unsigned membno, void *value/*out*/);
H5_DLL H5T_cset_t H5Tget_cset(hid_t type_id);
H5_DLL htri_t H5Tis_variable_str(hid_t type_id);
-H5_DLL hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction);
+H5_DLL hid_t H5Tget_native_type(hid_t type_id, H5T_direction_t direction);
/* Setting property values */
H5_DLL herr_t H5Tset_size(hid_t type_id, size_t size);
diff --git a/src/H5Tstrpad.c b/src/H5Tstrpad.c
index 1c8ce2f..2c9b7d6 100644
--- a/src/H5Tstrpad.c
+++ b/src/H5Tstrpad.c
@@ -34,7 +34,7 @@ NAME
H5T_init_strpad_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_strpad_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -58,7 +58,7 @@ H5T_init_strpad_interface(void)
* programming language: C usually null terminates strings while
* Fortran left-justifies and space-pads strings. This property
* defines the storage mechanism for the string.
- *
+ *
* Return: Success: The character set of a string type.
*
* Failure: H5T_STR_ERROR (Negative)
@@ -88,7 +88,7 @@ H5Tget_strpad(hid_t type_id)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_STRING(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, H5T_STR_ERROR, "operation not defined for datatype class")
-
+
/* result */
if(H5T_IS_FIXED_STRING(dt->shared))
ret_value = dt->shared->u.atomic.u.s.pad;
@@ -149,7 +149,7 @@ H5Tset_strpad(hid_t type_id, H5T_str_t strpad)
dt = dt->shared->parent; /*defer to parent*/
if (!H5T_IS_STRING(dt->shared))
HGOTO_ERROR(H5E_DATATYPE, H5E_UNSUPPORTED, FAIL, "operation not defined for datatype class")
-
+
/* Commit */
if(H5T_IS_FIXED_STRING(dt->shared))
dt->shared->u.atomic.u.s.pad = strpad;
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index 081ba68..9a11e9c 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -75,7 +75,7 @@ NAME
H5T_init_vlen_interface -- Initialize interface-specific information
USAGE
herr_t H5T_init_vlen_interface()
-
+
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
@@ -115,7 +115,7 @@ H5Tvlen_create(hid_t base_id)
H5T_t *base = NULL; /*base datatype */
H5T_t *dt = NULL; /*new datatype */
hid_t ret_value; /*return value */
-
+
FUNC_ENTER_API(H5Tvlen_create, FAIL)
H5TRACE1("i","i",base_id);
@@ -158,7 +158,7 @@ H5T_vlen_create(const H5T_t *base)
{
H5T_t *dt = NULL; /*new VL datatype */
H5T_t *ret_value; /*return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5T_vlen_create)
/* Check args */
@@ -201,7 +201,7 @@ done:
*
* Purpose: Sets the location of a VL datatype to be either on disk or in memory
*
- * Return:
+ * Return:
* One of two values on success:
* TRUE - If the location of any vlen types changed
* FALSE - If the location of any vlen types is the same
@@ -273,7 +273,7 @@ H5T_vlen_set_loc(const H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
/* Mark this type as being stored on disk */
dt->shared->u.vlen.loc=H5T_VLEN_DISK;
- /*
+ /*
* Size of element on disk is 4 bytes for the length, plus the size
* of an address in this file, plus 4 bytes for the size of a heap
* ID. Memory size is different
@@ -833,7 +833,7 @@ H5T_vlen_disk_read(H5F_t *f, hid_t dxpl_id, void *_vl, void *buf, size_t UNUSED
/* Skip the length of the sequence */
vl += 4;
-
+
/* Get the heap information */
H5F_addr_decode(f,(const uint8_t **)&vl,&(hobjid.addr));
INT32DECODE(vl,hobjid.idx);
@@ -884,7 +884,7 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, const H5T_vlen_alloc_info_t UNUSED
assert(vl);
assert(seq_len==0 || buf);
assert(f);
-
+
/* Free heap object for old data. */
if(bg!=NULL) {
H5HG_t bg_hobjid; /* "Background" VL info sequence's ID info */
@@ -906,7 +906,7 @@ H5T_vlen_disk_write(H5F_t *f, hid_t dxpl_id, const H5T_vlen_alloc_info_t UNUSED
/* Set the length of the sequence */
UINT32ENCODE(vl, seq_len);
-
+
/* Write the VL information to disk (allocates space also) */
len=(seq_len*base_size);
if(H5HG_insert(f,dxpl_id,len,buf,&hobjid)<0)
@@ -948,7 +948,7 @@ H5T_vlen_disk_setnull(H5F_t *f, hid_t dxpl_id, void *_vl, void *_bg)
/* check parameters */
assert(f);
assert(vl);
-
+
/* Free heap object for old data. */
if(bg!=NULL) {
H5HG_t bg_hobjid; /* "Background" VL info sequence's ID info */
@@ -970,7 +970,7 @@ H5T_vlen_disk_setnull(H5F_t *f, hid_t dxpl_id, void *_vl, void *_bg)
/* Set the length of the sequence */
UINT32ENCODE(vl, seq_len);
-
+
/* Encode the "nil" heap pointer information */
H5F_addr_encode(f,&vl,(haddr_t)0);
INT32ENCODE(vl,0);
@@ -989,7 +989,7 @@ done:
herr_t H5T_vlen_reclaim(elem,dt)
void *elem; IN/OUT: Pointer to the dataset element
H5T_t *dt; IN: Datatype of dataset element
-
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1001,7 +1001,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-static herr_t
+static herr_t
H5T_vlen_reclaim_recurse(void *elem, const H5T_t *dt, H5MM_free_t free_func, void *free_info)
{
unsigned i; /* local index variable */
@@ -1101,7 +1101,7 @@ done:
unsigned ndim; IN: Number of dimensions in dataspace
hsize_t *point; IN: Coordinate location of element in dataspace
void *op_data IN: Operator data
-
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1114,7 +1114,7 @@ done:
REVISION LOG
--------------------------------------------------------------------------*/
/* ARGSUSED */
-herr_t
+herr_t
H5T_vlen_reclaim(void *elem, hid_t type_id, unsigned UNUSED ndim, const hsize_t UNUSED *point, void *op_data)
{
H5T_vlen_alloc_info_t *vl_alloc_info = (H5T_vlen_alloc_info_t *)op_data; /* VL allocation info from iterator */
@@ -1147,8 +1147,8 @@ done:
USAGE
herr_t H5T_vlen_get_alloc_info(dxpl_id,vl_alloc_info)
hid_t dxpl_id; IN: Data transfer property list to query
- H5T_vlen_alloc_info_t *vl_alloc_info; IN/OUT: Pointer to VL allocation information to fill
-
+ H5T_vlen_alloc_info_t *vl_alloc_info; IN/OUT: Pointer to VL allocation information to fill
+
RETURNS
SUCCEED/FAIL
DESCRIPTION
@@ -1162,7 +1162,7 @@ done:
EXAMPLES
REVISION LOG
--------------------------------------------------------------------------*/
-herr_t
+herr_t
H5T_vlen_get_alloc_info(hid_t dxpl_id, H5T_vlen_alloc_info_t **vl_alloc_info)
{
H5P_genplist_t *plist; /* DX property list */
@@ -1207,7 +1207,7 @@ done:
H5T_t *dt; IN/OUT: Pointer to the datatype to mark
H5F_t *dt; IN: Pointer to the file the datatype is in
H5T_vlen_type_t loc IN: location of VL type
-
+
RETURNS
One of two values on success:
TRUE - If the location of any vlen types changed
@@ -1249,7 +1249,7 @@ H5T_vlen_mark(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "Unable to set VL location");
if(vlen_changed>0)
ret_value=vlen_changed;
-
+
/* Check if the field changed size */
if(old_size != dt->shared->parent->shared->size) {
/* Adjust the size of the array */
@@ -1263,7 +1263,7 @@ H5T_vlen_mark(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
if(dt->shared->force_conv) {
/* Sort the fields based on offsets */
H5T_sort_value(dt,NULL);
-
+
for (i=0; i<dt->shared->u.compnd.nmembs; i++) {
/* Apply the accumulated size change to the offset of the field */
dt->shared->u.compnd.memb[i].offset += accum_change;
@@ -1279,7 +1279,7 @@ H5T_vlen_mark(H5T_t *dt, H5F_t *f, H5T_vlen_loc_t loc)
HGOTO_ERROR(H5E_DATATYPE, H5E_CANTINIT, FAIL, "Unable to set VL location");
if(vlen_changed>0)
ret_value=vlen_changed;
-
+
/* Check if the field changed size */
if(old_size != dt->shared->u.compnd.memb[i].type->shared->size) {
/* Adjust the size of the member */
diff --git a/src/H5V.c b/src/H5V.c
index 7b2c33f..4e46573 100644
--- a/src/H5V.c
+++ b/src/H5V.c
@@ -438,7 +438,7 @@ done:
* will be filled with VAL begins at byte offset OFFSET[] from
* the minimum corner of BUF and continues for SIZE[] bytes in
* each dimension.
- *
+ *
* Return: Non-negative on success/Negative on failure
*
* Programmer: Robb Matzke
@@ -545,7 +545,7 @@ H5V_hyper_copy(unsigned n, const hsize_t *_size,
hsize_t dst_start, src_start; /*offset to start at */
hsize_t elmt_size = 1; /*element size in bytes */
herr_t ret_value; /*return status */
-#ifndef NDEBUG
+#ifndef NDEBUG
unsigned u;
#endif
@@ -1190,7 +1190,7 @@ H5V_array_calc(hsize_t offset, unsigned n, const hsize_t *total_size, hsize_t *c
* a "chunk index" for the chunk that the coordinate offset is
* located in.
*
- * The chunk index starts at 0 and increases according to the
+ * The chunk index starts at 0 and increases according to the
* fastest changing dimension, then the next fastest, etc.
*
* For example, with a 3x5 chunk size and 6 chunks in the fastest
diff --git a/src/H5Z.c b/src/H5Z.c
index 3bcb2d3..cc653b8 100644
--- a/src/H5Z.c
+++ b/src/H5Z.c
@@ -167,7 +167,7 @@ H5Z_term_interface (void)
/* Print the statistics */
HDfprintf (H5DEBUG(Z),
" %s%-15s %10Hd %10Hd %8.2f %8.2f %8.2f "
- "%10s\n", dir?"<":">", comment,
+ "%10s\n", dir?"<":">", comment,
H5Z_stat_table_g[i].stats[dir].total,
H5Z_stat_table_g[i].stats[dir].errors,
H5Z_stat_table_g[i].stats[dir].timer.utime,
@@ -304,7 +304,7 @@ H5Z_register (const H5Z_class_t *cls)
{
size_t i;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_register, FAIL)
assert (cls);
@@ -411,7 +411,7 @@ H5Z_unregister (H5Z_filter_t id)
{
size_t i; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_unregister,FAIL)
assert (id>=0 && id<=H5Z_FILTER_MAX);
@@ -420,7 +420,7 @@ H5Z_unregister (H5Z_filter_t id)
for (i=0; i<H5Z_table_used_g; i++)
if (H5Z_table_g[i].id==id)
break;
-
+
/* Fail if filter not found */
if (i>=H5Z_table_used_g)
HGOTO_ERROR(H5E_PLINE, H5E_NOTFOUND, FAIL, "filter is not registered")
@@ -471,7 +471,7 @@ H5Zfilter_avail(H5Z_filter_t id)
ret_value=TRUE;
break;
} /* end if */
-
+
done:
FUNC_LEAVE_API(ret_value)
} /* end H5Zfilter_avail() */
@@ -501,7 +501,7 @@ static herr_t
H5Z_prelude_callback(hid_t dcpl_id, hid_t type_id, H5Z_prelude_type_t prelude_type)
{
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI_NOINIT(H5Z_prelude_callback)
assert (H5I_GENPROP_LST==H5I_get_type(dcpl_id));
@@ -554,7 +554,7 @@ H5Z_prelude_callback(hid_t dcpl_id, hid_t type_id, H5Z_prelude_type_t prelude_ty
(void)H5S_close(space);
HGOTO_ERROR (H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register dataspace ID")
} /* end if */
-
+
/* Iterate over filters */
for (u=0; u<dcpl_pline.nused; u++) {
H5Z_class_t *fclass; /* Individual filter information */
@@ -694,7 +694,7 @@ herr_t
H5Z_set_local (hid_t dcpl_id, hid_t type_id)
{
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_set_local,FAIL)
assert (H5I_GENPROP_LST==H5I_get_type(dcpl_id));
@@ -730,7 +730,7 @@ H5Z_modify(const H5O_pline_t *pline, H5Z_filter_t filter, unsigned flags,
size_t idx; /* Index of filter in pipeline */
size_t i; /* Local index variable */
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_modify, FAIL)
assert(pline);
@@ -791,7 +791,7 @@ H5Z_append(H5O_pline_t *pline, H5Z_filter_t filter, unsigned flags,
{
size_t idx, i;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_append, FAIL)
assert(pline);
@@ -816,7 +816,7 @@ H5Z_append(H5O_pline_t *pline, H5Z_filter_t filter, unsigned flags,
pline->nalloc = x.nalloc;
pline->filter = x.filter;
}
-
+
/* Add the new filter to the pipeline */
idx = pline->nused;
pline->filter[idx].id = filter;
@@ -941,7 +941,7 @@ done:
herr_t
H5Z_pipeline(const H5O_pline_t *pline, unsigned flags,
unsigned *filter_mask/*in,out*/, H5Z_EDC_t edc_read,
- H5Z_cb_t cb_struct, size_t *nbytes/*in,out*/,
+ H5Z_cb_t cb_struct, size_t *nbytes/*in,out*/,
size_t *buf_size/*in,out*/, void **buf/*in,out*/)
{
size_t i, idx, new_nbytes;
@@ -954,9 +954,9 @@ H5Z_pipeline(const H5O_pline_t *pline, unsigned flags,
unsigned failed = 0;
unsigned tmp_flags;
herr_t ret_value=SUCCEED; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_pipeline, FAIL)
-
+
assert(0==(flags & ~((unsigned)H5Z_FLAG_INVMASK)));
assert(filter_mask);
assert(nbytes && *nbytes>0);
@@ -967,7 +967,7 @@ H5Z_pipeline(const H5O_pline_t *pline, unsigned flags,
if (pline && (flags & H5Z_FLAG_REVERSE)) { /* Read */
for (i=pline->nused; i>0; --i) {
idx = i-1;
-
+
if (*filter_mask & ((unsigned)1<<idx)) {
failed |= (unsigned)1 << idx;
continue;/*filter excluded*/
@@ -982,7 +982,7 @@ H5Z_pipeline(const H5O_pline_t *pline, unsigned flags,
#endif
tmp_flags=flags|(pline->filter[idx].flags);
tmp_flags|=(edc_read== H5Z_DISABLE_EDC) ? H5Z_FLAG_SKIP_EDC : 0;
- new_nbytes = (fclass->filter)(tmp_flags, pline->filter[idx].cd_nelmts,
+ new_nbytes = (fclass->filter)(tmp_flags, pline->filter[idx].cd_nelmts,
pline->filter[idx].cd_values, *nbytes, buf_size, buf);
#ifdef H5Z_DEBUG
@@ -1073,7 +1073,7 @@ H5Z_filter_info(const H5O_pline_t *pline, H5Z_filter_t filter)
{
size_t idx; /* Index of filter in pipeline */
H5Z_filter_info_t *ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_filter_info, NULL)
assert(pline);
@@ -1134,7 +1134,7 @@ H5Z_all_filters_avail(const H5O_pline_t *pline)
if(j==H5Z_table_used_g)
HGOTO_DONE(FALSE)
} /* end for */
-
+
done:
FUNC_LEAVE_NOAPI(ret_value)
} /* end H5Z_all_filters_avail() */
@@ -1144,8 +1144,8 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Z_delete
*
- * Purpose: Delete filter FILTER from pipeline PLINE;
- * deletes all filters if FILTER is H5Z_FILTER_NONE
+ * Purpose: Delete filter FILTER from pipeline PLINE;
+ * deletes all filters if FILTER is H5Z_FILTER_NONE
*
* Return: Non-negative on success/Negative on failure
*
@@ -1210,7 +1210,7 @@ H5Z_delete(H5O_pline_t *pline, H5Z_filter_t filter)
done:
FUNC_LEAVE_NOAPI(ret_value)
-}
+}
/*-------------------------------------------------------------------------
* Function: H5Zget_filter_info
@@ -1246,8 +1246,8 @@ herr_t H5Zget_filter_info(H5Z_filter_t filter, unsigned int *filter_config_flags
}
else
*filter_config_flags = H5Z_FILTER_CONFIG_DECODE_ENABLED | H5Z_FILTER_CONFIG_ENCODE_ENABLED;
-
- /* Make sure the filter exists */
+
+ /* Make sure the filter exists */
if (H5Z_find(filter) == NULL)
*filter_config_flags = 0;
}
diff --git a/src/H5Zdeflate.c b/src/H5Zdeflate.c
index dd752ae..8a0e54e 100644
--- a/src/H5Zdeflate.c
+++ b/src/H5Zdeflate.c
@@ -54,7 +54,7 @@ const H5Z_class_t H5Z_DEFLATE[1] = {{
* libz
*
* Return: Success: Size of buffer filtered
- * Failure: 0
+ * Failure: 0
*
* Programmer: Robb Matzke
* Thursday, April 16, 1998
@@ -71,7 +71,7 @@ H5Z_filter_deflate (unsigned flags, size_t cd_nelmts,
void *outbuf = NULL; /* Pointer to new buffer */
int status; /* Status from zlib operation */
size_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_filter_deflate, 0)
/* Check arguments */
@@ -128,7 +128,7 @@ H5Z_filter_deflate (unsigned flags, size_t cd_nelmts,
}
} /* end else */
} while(status==Z_OK);
-
+
/* Free the input buffer */
H5MM_xfree(*buf);
@@ -152,7 +152,7 @@ H5Z_filter_deflate (unsigned flags, size_t cd_nelmts,
uLongf z_dst_nbytes = (uLongf)H5Z_DEFLATE_SIZE_ADJUST(nbytes);
uLong z_src_nbytes = (uLong)nbytes;
int aggression; /* Compression aggression setting */
-
+
/* Set the compression aggression level */
H5_ASSIGN_OVERFLOW(aggression,cd_values[0],unsigned,int);
diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c
index 541e4af..35873a3 100644
--- a/src/H5Zfletcher32.c
+++ b/src/H5Zfletcher32.c
@@ -49,7 +49,7 @@ const H5Z_class_t H5Z_FLETCHER32[1] = {{
*
* Purpose: Implement an Fletcher32 Checksum using 1's complement.
*
- * Return: Success: Fletcher32 value
+ * Return: Success: Fletcher32 value
*
* Failure: Can't fail
*
@@ -117,7 +117,7 @@ H5Z_filter_fletcher32_compute(void *_src, size_t len)
* Purpose: Implement an I/O filter of Fletcher32 Checksum
*
* Return: Success: Size of buffer filtered
- * Failure: 0
+ * Failure: 0
*
* Programmer: Raymond Lu
* Jan 3, 2003
@@ -125,20 +125,20 @@ H5Z_filter_fletcher32_compute(void *_src, size_t len)
* Modifications:
* Raymond Lu
* July 8, 2005
- * There was a bug in the calculating code of the Fletcher32
- * checksum in the library before v1.6.3. The checksum
+ * There was a bug in the calculating code of the Fletcher32
+ * checksum in the library before v1.6.3. The checksum
* value wasn't consistent between big-endian and little-endian
- * systems. This bug was fixed in Release 1.6.3. However,
- * after fixing the bug, the checksum value is no longer the
- * same as before on little-endian system. We'll check both
- * the correct checksum and the wrong checksum to be consistent
- * with Release 1.6.2 and before.
+ * systems. This bug was fixed in Release 1.6.3. However,
+ * after fixing the bug, the checksum value is no longer the
+ * same as before on little-endian system. We'll check both
+ * the correct checksum and the wrong checksum to be consistent
+ * with Release 1.6.2 and before.
*
*-------------------------------------------------------------------------
*/
/* ARGSUSED */
static size_t
-H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned UNUSED cd_values[],
+H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned UNUSED cd_values[],
size_t nbytes, size_t *buf_size, void **buf)
{
void *outbuf = NULL; /* Pointer to new buffer */
@@ -148,11 +148,11 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
uint8_t c[4];
uint8_t tmp;
size_t ret_value; /* Return value */
-
+
FUNC_ENTER_NOAPI(H5Z_filter_fletcher32, 0)
assert(sizeof(uint32_t)>=4);
-
+
if (flags & H5Z_FLAG_REVERSE) { /* Read */
/* Do checksum if it's enabled for read; otherwise skip it
* to save performance. */
@@ -169,20 +169,20 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
/* Compute checksum (can't fail) */
fletcher = H5Z_filter_fletcher32_compute(src,src_nbytes);
- /* The reversed checksum. There was a bug in the calculating code of
- * the Fletcher32 checksum in the library before v1.6.3. The checksum
- * value wasn't consistent between big-endian and little-endian systems.
- * This bug was fixed in Release 1.6.3. However, after fixing the bug,
- * the checksum value is no longer the same as before on little-endian
- * system. We'll check both the correct checksum and the wrong
- * checksum to be consistent with Release 1.6.2 and before.
- */
+ /* The reversed checksum. There was a bug in the calculating code of
+ * the Fletcher32 checksum in the library before v1.6.3. The checksum
+ * value wasn't consistent between big-endian and little-endian systems.
+ * This bug was fixed in Release 1.6.3. However, after fixing the bug,
+ * the checksum value is no longer the same as before on little-endian
+ * system. We'll check both the correct checksum and the wrong
+ * checksum to be consistent with Release 1.6.2 and before.
+ */
HDmemcpy(c, &fletcher, 4);
tmp = c[1];
c[1] = c[0];
c[0] = tmp;
-
+
tmp = c[3];
c[3] = c[2];
c[2] = tmp;
@@ -193,7 +193,7 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
if(stored_fletcher != fletcher && stored_fletcher != reversed_fletcher)
HGOTO_ERROR(H5E_STORAGE, H5E_READERROR, 0, "data error detected by Fletcher32 checksum")
}
-
+
/* Set return values */
/* (Re-use the input buffer, just note that the size is smaller by the size of the checksum) */
ret_value = nbytes-FLETCHER_LEN;
@@ -202,10 +202,10 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
/* Compute checksum (can't fail) */
fletcher = H5Z_filter_fletcher32_compute(src,nbytes);
-
+
if (NULL==(dst=outbuf=H5MM_malloc(nbytes+FLETCHER_LEN)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "unable to allocate Fletcher32 checksum destination buffer")
-
+
/* Copy raw data */
HDmemcpy((void*)dst, (void*)(*buf), nbytes);
@@ -220,7 +220,7 @@ H5Z_filter_fletcher32 (unsigned flags, size_t UNUSED cd_nelmts, const unsigned U
*buf_size = nbytes + FLETCHER_LEN;
*buf = outbuf;
outbuf = NULL;
- ret_value = *buf_size;
+ ret_value = *buf_size;
}
done:
diff --git a/src/H5Zprivate.h b/src/H5Zprivate.h
index 5ee02ec..f4530f2 100644
--- a/src/H5Zprivate.h
+++ b/src/H5Zprivate.h
@@ -51,7 +51,7 @@ H5_DLL herr_t H5Z_modify(const struct H5O_pline_t *pline, H5Z_filter_t filter,
H5_DLL herr_t H5Z_pipeline(const struct H5O_pline_t *pline,
unsigned flags, unsigned *filter_mask/*in,out*/,
H5Z_EDC_t edc_read, H5Z_cb_t cb_struct,
- size_t *nbytes/*in,out*/, size_t *buf_size/*in,out*/,
+ size_t *nbytes/*in,out*/, size_t *buf_size/*in,out*/,
void **buf/*in,out*/);
H5_DLL H5Z_class_t *H5Z_find(H5Z_filter_t id);
H5_DLL herr_t H5Z_can_apply(hid_t dcpl_id, hid_t type_id);
diff --git a/src/H5Zpublic.h b/src/H5Zpublic.h
index f8189b2..7443a90 100644
--- a/src/H5Zpublic.h
+++ b/src/H5Zpublic.h
@@ -53,7 +53,7 @@ typedef int H5Z_filter_t;
* include directly due to the duplication of various symbols with the zlib.h
* header file] */
#define H5_SZIP_ALLOW_K13_OPTION_MASK 1
-#define H5_SZIP_CHIP_OPTION_MASK 2
+#define H5_SZIP_CHIP_OPTION_MASK 2
#define H5_SZIP_EC_OPTION_MASK 4
#define H5_SZIP_NN_OPTION_MASK 32
#define H5_SZIP_MAX_PIXELS_PER_BLOCK 32
@@ -64,7 +64,7 @@ typedef enum H5Z_EDC_t {
H5Z_DISABLE_EDC = 0,
H5Z_ENABLE_EDC = 1,
H5Z_NO_EDC = 2 /* must be the last */
-} H5Z_EDC_t;
+} H5Z_EDC_t;
/* Bit flags for H5Zget_filter_info */
#define H5Z_FILTER_CONFIG_ENCODE_ENABLED (0x0001)
@@ -97,18 +97,18 @@ extern "C" {
* in the dataset creation property list are called
* with the dataset's dataset creation property list, the dataset's datatype and
* a dataspace describing a chunk (for chunked dataset storage).
- *
+ *
* The "can_apply" callback must determine if the combination of the dataset
* creation property list setting, the datatype and the dataspace represent a
* valid combination to apply this filter to. For example, some cases of
* invalid combinations may involve the filter not operating correctly on
* certain datatypes (or certain datatype sizes), or certain sizes of the chunk
* dataspace.
- *
+ *
* The "can_apply" callback can be the NULL pointer, in which case, the library
* will assume that it can apply to any combination of dataset creation
* property list values, datatypes and dataspaces.
- *
+ *
* The "can_apply" callback returns positive a valid combination, zero for an
* invalid combination and negative for an error.
*/
@@ -122,16 +122,16 @@ typedef herr_t (*H5Z_can_apply_func_t)(hid_t dcpl_id, hid_t type_id, hid_t space
* list passed in to H5Dcreate) and the datatype ID passed in to H5Dcreate
* (which is not copied and should not be modified) and a dataspace describing
* the chunk (for chunked dataset storage) (which should also not be modified).
- *
+ *
* The "set_local" callback must set any parameters that are specific to this
* dataset, based on the combination of the dataset creation property list
* values, the datatype and the dataspace. For example, some filters perform
* different actions based on different datatypes (or datatype sizes) or
* different number of dimensions or dataspace sizes.
- *
+ *
* The "set_local" callback can be the NULL pointer, in which case, the library
* will assume that there are no dataset-specific settings for this filter.
- *
+ *
* The "set_local" callback must return non-negative on success and negative
* for an error.
*/
diff --git a/src/H5Zshuffle.c b/src/H5Zshuffle.c
index 5556283..baee603 100644
--- a/src/H5Zshuffle.c
+++ b/src/H5Zshuffle.c
@@ -99,7 +99,7 @@ done:
* each other and putting them together will increase compression.
*
* Return: Success: Size of buffer filtered
- * Failure: 0
+ * Failure: 0
*
* Programmer: Kent Yang
* Wednesday, November 13, 2002
@@ -111,7 +111,7 @@ done:
*-------------------------------------------------------------------------
*/
static size_t
-H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
+H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
size_t nbytes, size_t *buf_size, void **buf)
{
void *dest = NULL; /* Buffer to deposit [un]shuffled bytes into */
@@ -195,7 +195,7 @@ H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
#undef DUFF_GUTS
} /* end for */
- /* Add leftover to the end of data */
+ /* Add leftover to the end of data */
if(leftover>0) {
/* Adjust back to end of shuffled bytes */
_dest -= (bytesoftype - 1); /*lint !e794 _dest is initialized */
@@ -250,7 +250,7 @@ H5Z_filter_shuffle(unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
#undef DUFF_GUTS
} /* end for */
- /* Add leftover to the end of data */
+ /* Add leftover to the end of data */
if(leftover>0) {
/* Adjust back to end of shuffled bytes */
_src -= (bytesoftype - 1); /*lint !e794 _src is initialized */
diff --git a/src/H5Zszip.c b/src/H5Zszip.c
index 662429b..878e5f8 100644
--- a/src/H5Zszip.c
+++ b/src/H5Zszip.c
@@ -128,7 +128,7 @@ done:
* of any shape and size with only one restriction: the number
* of elements in the chunk has to be not less than number
* of elements (pixels) in the block (cd_values[H5Z_SZIP_PARM_PPB]
- * parameter).
+ * parameter).
* Elena Pourmal, July 20, 2004
*
*-------------------------------------------------------------------------
@@ -187,8 +187,8 @@ H5Z_set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id)
/* (Use the chunk's fastest changing dimension size) */
assert(ndims>0);
scanline=dims[ndims-1];
-
- /* Adjust scanline if it is smaller than number of pixels per block or
+
+ /* Adjust scanline if it is smaller than number of pixels per block or
if it is bigger than maximum pixels per scanline, or there are more than
SZ_MAX_BLOCKS_PER_SCANLINE blocks per scanline */
@@ -196,12 +196,12 @@ H5Z_set_local_szip(hid_t dcpl_id, hid_t type_id, hid_t space_id)
if(scanline<cd_values[H5Z_SZIP_PARM_PPB]) {
hssize_t npoints; /* Number of points in the dataspace */
- /* Get number of elements for the dataspace; use
+ /* Get number of elements for the dataspace; use
total number of elements in the chunk to define the new 'scanline' size */
if ((npoints=H5Sget_simple_extent_npoints(space_id))<0)
HGOTO_ERROR(H5E_PLINE, H5E_CANTGET, FAIL, "unable to get number of points in the dataspace")
if(npoints<cd_values[H5Z_SZIP_PARM_PPB])
- HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "pixels per block greater than total number of elements in the chunk")
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "pixels per block greater than total number of elements in the chunk")
scanline = MIN((cd_values[H5Z_SZIP_PARM_PPB] * SZ_MAX_BLOCKS_PER_SCANLINE), npoints);
}
else {
@@ -250,7 +250,7 @@ done:
* libsz
*
* Return: Success: Size of buffer filtered
- * Failure: 0
+ * Failure: 0
*
* Programmer: Kent Yang
* Tuesday, April 1, 2003
@@ -262,7 +262,7 @@ done:
*-------------------------------------------------------------------------
*/
static size_t
-H5Z_filter_szip (unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
+H5Z_filter_szip (unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
size_t nbytes, size_t *buf_size, void **buf)
{
size_t ret_value = 0; /* Return value */
@@ -302,7 +302,7 @@ H5Z_filter_szip (unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
newbuf = *buf;
UINT32DECODE(newbuf,stored_nalloc);
H5_ASSIGN_OVERFLOW(nalloc,stored_nalloc,uint32_t,size_t);
-
+
/* Allocate space for the uncompressed buffer */
if(NULL==(outbuf = H5MM_malloc(nalloc)))
HGOTO_ERROR(H5E_RESOURCE, H5E_NOSPACE, 0, "memory allocation failed for szip decompression")
@@ -350,7 +350,7 @@ H5Z_filter_szip (unsigned flags, size_t cd_nelmts, const unsigned cd_values[],
ret_value = size_out+4;
}
-done:
+done:
if(outbuf)
H5MM_xfree(outbuf);
FUNC_LEAVE_NOAPI(ret_value)
diff --git a/src/H5detect.c b/src/H5detect.c
index ead747a..e765913 100644
--- a/src/H5detect.c
+++ b/src/H5detect.c
@@ -46,7 +46,7 @@ static const char *FileHeader = "\n\
* features which aren't available. We're not
* running on a Vax or other machine with mixed
* endianess.
- *
+ *
* Modifications:
*
*-------------------------------------------------------------------------
@@ -75,10 +75,10 @@ typedef struct detected_t {
size_t comp_align; /*alignment for structure */
} detected_t;
-/* This structure holds structure alignment for pointers, hvl_t, hobj_ref_t,
+/* This structure holds structure alignment for pointers, hvl_t, hobj_ref_t,
* hdset_reg_ref_t */
typedef struct malign_t {
- const char *name;
+ const char *name;
size_t comp_align; /*alignment for structure */
} malign_t;
@@ -86,7 +86,7 @@ typedef struct malign_t {
static detected_t d_g[MAXDETECT];
static malign_t m_g[MAXDETECT];
static volatile int nd_g = 0, na_g = 0;
-
+
static void print_results(int nd, detected_t *d, int na, malign_t *m);
static void iprint(detected_t *);
static int byte_cmp(int, void *, void *);
@@ -127,7 +127,7 @@ static void
precision (detected_t *d)
{
int n;
-
+
if (0==d->msize) {
/*
* An integer. The permutation can have negative values at the
@@ -322,7 +322,7 @@ precision (detected_t *d)
* Function: DETECT_M
*
* Purpose: This macro takes only miscellaneous structures or pointer
- * (pointer, hvl_t, hobj_ref_t, hdset_reg_ref_t). It
+ * (pointer, hvl_t, hobj_ref_t, hdset_reg_ref_t). It
* constructs the names and decides the alignment in structure.
*
* Return: void
@@ -462,7 +462,7 @@ sigsegv_handler(int UNUSED signo)
signal(SIGSEGV, sigsegv_handler);
longjmp(jbuf_g, 1);
}
-
+
/*-------------------------------------------------------------------------
* Function: sigbus_handler
@@ -487,7 +487,7 @@ sigbus_handler(int UNUSED signo)
signal(SIGBUS, sigbus_handler);
longjmp(jbuf_g, 1);
}
-
+
/*-------------------------------------------------------------------------
* Function: print_results
@@ -549,7 +549,7 @@ H5TN_init_interface(void)\n\
break;
}
}
-
+
/* Print a comment to describe this section of definitions. */
printf("\n /*\n");
iprint(d+i);
@@ -614,10 +614,10 @@ H5TN_init_interface(void)\n\
d[i].varname, (unsigned long)(d[i].align));
/* Variables for alignment of compound datatype */
- if(!strcmp(d[i].varname, "SCHAR") || !strcmp(d[i].varname, "SHORT") ||
- !strcmp(d[i].varname, "INT") || !strcmp(d[i].varname, "LONG") ||
- !strcmp(d[i].varname, "LLONG") || !strcmp(d[i].varname, "FLOAT") ||
- !strcmp(d[i].varname, "DOUBLE") || !strcmp(d[i].varname, "LDOUBLE")) {
+ if(!strcmp(d[i].varname, "SCHAR") || !strcmp(d[i].varname, "SHORT") ||
+ !strcmp(d[i].varname, "INT") || !strcmp(d[i].varname, "LONG") ||
+ !strcmp(d[i].varname, "LLONG") || !strcmp(d[i].varname, "FLOAT") ||
+ !strcmp(d[i].varname, "DOUBLE") || !strcmp(d[i].varname, "LDOUBLE")) {
printf(" H5T_NATIVE_%s_COMP_ALIGN_g = %lu;\n",
d[i].varname, (unsigned long)(d[i].comp_align));
}
@@ -632,7 +632,7 @@ H5TN_init_interface(void)\n\
printf("\n /* Structure alignment for pointers, hvl_t, hobj_ref_t, hdset_reg_ref_t */\n");
for(j=0; j<na; j++)
printf(" H5T_%s_COMP_ALIGN_g = %lu;\n", misc_align[j].name, (unsigned long)(misc_align[j].comp_align));
-
+
printf("\
\n\
done:\n\
@@ -875,7 +875,7 @@ fix_order(int n, int first, int last, int *perm, const char **mesg)
* order bits than the mantissa and that the most significant
* bit of the mantissa is next to the least signficant bit
* of the exponent.
- *
+ *
*
* Return: Success: Non-zero if the most significant bit
* of the mantissa is discarded (ie, the
@@ -932,7 +932,7 @@ imp_bit(int n, int *perm, void *_a, void *_b)
*
* Return: Success: The exponent bias.
*
- * Failure:
+ * Failure:
*
* Programmer: Robb Matzke
* matzke@llnl.gov
@@ -1067,7 +1067,7 @@ bit.\n";
* The FQDM of this host or the empty string.
*/
#ifdef H5_HAVE_GETHOSTNAME
-#ifdef WIN32
+#ifdef WIN32
/* windows DLL cannot recognize gethostname, so turn off on windows for the time being!
KY, 2003-1-14 */
host_name[0] = '\0';
@@ -1079,7 +1079,7 @@ bit.\n";
#else
host_name[0] = '\0';
#endif
-
+
/*
* The file header: warning, copyright notice, build information.
*/
@@ -1134,7 +1134,7 @@ detect_C89_integers(void)
{
DETECT_I(signed char, SCHAR, d_g[nd_g]); nd_g++;
DETECT_I(unsigned char, UCHAR, d_g[nd_g]); nd_g++;
- DETECT_I(short, SHORT, d_g[nd_g]); nd_g++;
+ DETECT_I(short, SHORT, d_g[nd_g]); nd_g++;
DETECT_I(unsigned short, USHORT, d_g[nd_g]); nd_g++;
DETECT_I(int, INT, d_g[nd_g]); nd_g++;
DETECT_I(unsigned int, UINT, d_g[nd_g]); nd_g++;
@@ -1314,7 +1314,7 @@ detect_C99_integers64(void)
#if H5_SIZEOF_UINT_FAST64_T>0
DETECT_I(uint_fast64_t, UINT_FAST64, d_g[nd_g]); nd_g++;
#endif
-
+
#if H5_SIZEOF_LONG_LONG>0
DETECT_I(long_long, LLONG, d_g[nd_g]); nd_g++;
DETECT_I(unsigned long_long, ULLONG, d_g[nd_g]); nd_g++;
@@ -1437,7 +1437,7 @@ detect_alignments(void)
int
main(void)
{
-
+
#if defined(H5_HAVE_SETSYSINFO) && defined(SSI_NVPAIRS)
#if defined(UAC_NOPRINT) && defined(UAC_SIGBUS)
/*
@@ -1453,7 +1453,7 @@ main(void)
}
#endif
#endif
-
+
print_header();
/* C89 integer types */
@@ -1470,8 +1470,8 @@ main(void)
/* Detect structure alignment */
detect_alignments();
-
+
print_results (nd_g, d_g, na_g, m_g);
-
+
return 0;
}
diff --git a/src/H5private.h b/src/H5private.h
index 2b0e9e7..f7c2050 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -175,11 +175,11 @@
#endif /* H5_HAVE_DMALLOC_H */
/*
- * NT doesn't define SIGBUS, but since NT only runs on processors
- * that do not have alignment constraints a SIGBUS would never be
- * raised, so we just replace it with SIGILL (which also should
- * never be raised by the hdf5 library).
- */
+ * NT doesn't define SIGBUS, but since NT only runs on processors
+ * that do not have alignment constraints a SIGBUS would never be
+ * raised, so we just replace it with SIGILL (which also should
+ * never be raised by the hdf5 library).
+ */
#ifndef SIGBUS
# define SIGBUS SIGILL
#endif
@@ -669,7 +669,7 @@ typedef off_t h5_stat_size_t;
#define HDlog10(X) log10(X)
#define HDlongjmp(J,N) longjmp(J,N)
#ifdef WIN32
- #ifdef __MWERKS__
+ #ifdef __MWERKS__
#define HDlseek(F,O,W) lseek(F,O,W)
#else /*MSVS */
#define HDlseek(F,O,W) _lseeki64(F,O,W)
@@ -866,7 +866,7 @@ H5_DLL int64_t HDstrtoll (const char *s, const char **rest, int base);
#define HDstrdup(S) _strdup(S)
#else /* WIN32 */
-#if !defined strdup && !defined H5_HAVE_STRDUP
+#if !defined strdup && !defined H5_HAVE_STRDUP
extern char *strdup(const char *s);
#endif
@@ -941,7 +941,7 @@ extern H5_debug_t H5_debug_g;
* Programmer: Robb Matzke
*
* Modifications:
- *-------------------------------------------------------------------------
+ *-------------------------------------------------------------------------
*/
#ifdef H5_DEBUG_API
#define H5TRACE_DECL const char *RTYPE=NULL; \
@@ -1227,10 +1227,10 @@ static herr_t H5_INTERFACE_INIT_FUNC(void);
* initialized.
* - functions which are called during library shutdown, since we don't
* want to re-initialize the library.
- *
+ *
* This macro is used for functions which fit the above categories _and_
* also don't use the 'FUNC' variable (i.e. don't push errors on the error stack)
- *
+ *
*/
#define FUNC_ENTER_NOAPI_NOINIT_NOFUNC(func_name) { \
FUNC_ENTER_COMMON_NOFUNC(func_name,!H5_IS_API(#func_name)); \
@@ -1241,10 +1241,10 @@ static herr_t H5_INTERFACE_INIT_FUNC(void);
* Use this macro for non-API functions which fall into these categories:
* - functions which shouldn't push their name on the function stack
* (so far, just the H5FS routines themselves)
- *
+ *
* This macro is used for functions which fit the above categories _and_
* also don't use the 'FUNC' variable (i.e. don't push errors on the error stack)
- *
+ *
*/
#define FUNC_ENTER_NOAPI_NOFUNC_NOFS(func_name) { \
FUNC_ENTER_COMMON_NOFUNC(func_name,!H5_IS_API(#func_name)); \
diff --git a/src/H5public.h b/src/H5public.h
index 3c7f8de..e57e7f5 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -43,8 +43,8 @@
# include <stdint.h> /*for C9x types */
#endif
#endif
-#ifdef H5_HAVE_INTTYPES_H
-# include <inttypes.h> /* For uint64_t on some platforms */
+#ifdef H5_HAVE_INTTYPES_H
+# include <inttypes.h> /* For uint64_t on some platforms */
#endif
#ifdef H5_HAVE_STDDEF_H
# include <stddef.h>
@@ -203,7 +203,7 @@ typedef ssize_t hssize_t;
# define H5_PRINTF_HADDR_FMT "%lu"
#elif H5_SIZEOF_HADDR_T ==H5_SIZEOF_LONG_LONG
# define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u"
-#elif H5_SIZEOF_HADDR_T ==H5_SIZEOF___INT64
+#elif H5_SIZEOF_HADDR_T ==H5_SIZEOF___INT64
# define H5_PRINTF_HADDR_FMT "%"H5_PRINTF_LL_WIDTH"u"
#else
# error "nothing appropriate for H5_PRINTF_HADDR_FMT"