diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-10-16 15:40:37 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-10-16 15:40:37 (GMT) |
commit | 80f20333264434b449ba014161899a6d7b522b98 (patch) | |
tree | 0188b179ec625f3aeea1ee349e7dc53b1598c283 /src/H5Fprivate.h | |
parent | 194c45d07d5fd876e6ada1e27148035f223a0e29 (diff) | |
download | hdf5-80f20333264434b449ba014161899a6d7b522b98.zip hdf5-80f20333264434b449ba014161899a6d7b522b98.tar.gz hdf5-80f20333264434b449ba014161899a6d7b522b98.tar.bz2 |
[svn-r764] Changes since 19981014
----------------------
./bin/trace
./src/H5.c
./src/H5F.c
./src/H5Fprivate.h
./src/H5Fpublic.h
Added a `scope' argument to H5Fflush() which should be either
H5F_SCOPE_LOCAL or H5F_SCOPE_GLOBAL and determines which files
are flushed (just the specified file or the entire virtual
file).
./src/H5F.c
Added reference counts to the H5F_t struct so we get the
correct behavior between H5Funmount() and H5Fclose().
./src/H5O.c
Fixed a memory leak that happens during error handling.
./test/cmpd_dset.c
./test/unlink.c
Fixed a memory leak.
./test/mount.c
Enabled the H5Fclose() test.
Diffstat (limited to 'src/H5Fprivate.h')
-rw-r--r-- | src/H5Fprivate.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/H5Fprivate.h b/src/H5Fprivate.h index 004c411..4b42665 100644 --- a/src/H5Fprivate.h +++ b/src/H5Fprivate.h @@ -476,6 +476,7 @@ typedef struct H5F_file_t { * pointers to shared H5F_file_t structs. */ typedef struct H5F_t { + uintn nrefs; /* Reference count */ uintn intent; /* The flags passed to H5F_open()*/ char *name; /* Name used to open file */ H5F_file_t *shared; /* The shared file info */ @@ -490,9 +491,11 @@ typedef struct H5F_t { : H5F_SIZEOF_ADDR(f)==2 ? UINT16ENCODE(p,o) \ : H5FPencode_unusual_offset(f,&(p),(uint8 *)&(o))) #else /* NOT_YET */ -#define H5F_ENCODE_OFFSET(f,p,o) switch(H5F_SIZEOF_ADDR(f)) { case 4: UINT32ENCODE(p,o); break;\ - case 8: UINT64ENCODE(p,o); break;\ - case 2: UINT16ENCODE(p,o); break;} +#define H5F_ENCODE_OFFSET(f,p,o) switch(H5F_SIZEOF_ADDR(f)) { \ + case 4: UINT32ENCODE(p,o); break; \ + case 8: UINT64ENCODE(p,o); break; \ + case 2: UINT16ENCODE(p,o); break; \ +} #endif /* NOT_YET */ #define H5F_DECODE_OFFSET(f,p,o) \ |