summaryrefslogtreecommitdiffstats
path: root/src/H5Gprivate.h
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-01-16 22:23:43 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-01-16 22:23:43 (GMT)
commitc2c94c31878dc42926661c9cb7e71be620196fc1 (patch)
treeee9ce2ae309882348dc1eafc1d105b5e6646605e /src/H5Gprivate.h
parent903e677366a86ea385d5cfe1241f3f53132941de (diff)
downloadhdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.zip
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.gz
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.bz2
[svn-r157] Reformatted code with indent...
Diffstat (limited to 'src/H5Gprivate.h')
-rw-r--r--src/H5Gprivate.h98
1 files changed, 49 insertions, 49 deletions
diff --git a/src/H5Gprivate.h b/src/H5Gprivate.h
index 69b2ef9..da07587 100644
--- a/src/H5Gprivate.h
+++ b/src/H5Gprivate.h
@@ -1,16 +1,16 @@
/*-------------------------------------------------------------------------
- * Copyright (C) 1997 National Center for Supercomputing Applications.
+ * Copyright (C) 1997 National Center for Supercomputing Applications.
* All rights reserved.
*
*-------------------------------------------------------------------------
*
- * Created: H5Gprivate.h
- * Jul 11 1997
- * Robb Matzke <matzke@llnl.gov>
+ * Created: H5Gprivate.h
+ * Jul 11 1997
+ * Robb Matzke <matzke@llnl.gov>
*
- * Purpose: Library-visible declarations.
+ * Purpose: Library-visible declarations.
*
- * Modifications:
+ * Modifications:
*
*-------------------------------------------------------------------------
*/
@@ -30,20 +30,20 @@
# undef H5G_DEBUG
#endif
-#define H5G_NODE_MAGIC "SNOD" /*symbol table node magic number */
-#define H5G_NODE_SIZEOF_MAGIC 4 /*sizeof symbol node magic number */
-#define H5G_NO_CHANGE (-1) /*see H5G_ent_modified() */
+#define H5G_NODE_MAGIC "SNOD" /*symbol table node magic number */
+#define H5G_NODE_SIZEOF_MAGIC 4 /*sizeof symbol node magic number */
+#define H5G_NO_CHANGE (-1) /*see H5G_ent_modified() */
/*
* The disk size for a symbol table entry...
*/
-#define H5G_SIZEOF_SCRATCH 24
-#define H5G_SIZEOF_ENTRY(F) \
- (H5F_SIZEOF_SIZE(F) + /*offset of name into heap */ \
- H5F_SIZEOF_ADDR(F) + /*address of object header */ \
- 4 + /*entry type */ \
- H5G_SIZEOF_SCRATCH) /*scratch pad space */
-
+#define H5G_SIZEOF_SCRATCH 24
+#define H5G_SIZEOF_ENTRY(F) \
+ (H5F_SIZEOF_SIZE(F) + /*offset of name into heap */ \
+ H5F_SIZEOF_ADDR(F) + /*address of object header */ \
+ 4 + /*entry type */ \
+ H5G_SIZEOF_SCRATCH) /*scratch pad space */
+
/*
* Various types of object header information can be cached in a symbol
* table entry (it's normal home is the object header to which the entry
@@ -51,10 +51,10 @@
* symbol table entry.
*/
typedef enum H5G_type_t {
- H5G_NOTHING_CACHED =0, /*nothing is cached, must be 0 */
- H5G_CACHED_STAB =1, /*symbol table, `stab' */
-
- H5G_NCACHED =2 /*THIS MUST BE LAST */
+ H5G_NOTHING_CACHED = 0, /*nothing is cached, must be 0 */
+ H5G_CACHED_STAB = 1, /*symbol table, `stab' */
+
+ H5G_NCACHED = 2 /*THIS MUST BE LAST */
} H5G_type_t;
/*
@@ -65,10 +65,10 @@ typedef enum H5G_type_t {
* H5G_ent_decode(), H5G_ent_encode(), and H5G_ent_debug() as well.
*/
typedef union H5G_cache_t {
- struct {
- haddr_t btree_addr; /*file address of symbol table B-tree */
- haddr_t heap_addr; /*file address of stab name heap */
- } stab;
+ struct {
+ haddr_t btree_addr; /*file address of symbol table B-tree */
+ haddr_t heap_addr; /*file address of stab name heap */
+ } stab;
} H5G_cache_t;
/*
@@ -78,12 +78,12 @@ typedef union H5G_cache_t {
* points.
*/
typedef struct H5G_entry_t {
- hbool_t dirty; /*entry out-of-date? */
- size_t name_off; /*offset of name within name heap */
- haddr_t header; /*file address of object header */
- H5G_type_t type; /*type of information cached */
- H5G_cache_t cache; /*cached data from object header */
- H5F_t *file; /*file to which this obj hdr belongs */
+ hbool_t dirty; /*entry out-of-date? */
+ size_t name_off; /*offset of name within name heap */
+ haddr_t header; /*file address of object header */
+ H5G_type_t type; /*type of information cached */
+ H5G_cache_t cache; /*cached data from object header */
+ H5F_t *file; /*file to which this obj hdr belongs */
} H5G_entry_t;
typedef struct H5G_t H5G_t;
@@ -92,35 +92,35 @@ typedef struct H5G_t H5G_t;
* Library prototypes... These are the ones that other packages routinely
* call.
*/
-H5G_t *H5G_create (H5F_t *f, const char *name, size_t size_hint);
-H5G_t *H5G_open (H5F_t *f, const char *name);
-H5G_t *H5G_reopen (H5G_t *grp);
-herr_t H5G_close (H5G_t *grp);
-herr_t H5G_set (H5F_t *f, H5G_t *grp);
-herr_t H5G_push (H5F_t *f, H5G_t *grp);
-herr_t H5G_pop (H5F_t *f);
-herr_t H5G_insert (const char *name, H5G_entry_t *ent);
-herr_t H5G_find (H5F_t *f, const char *name, H5G_entry_t *grp_ent/*out*/,
- H5G_entry_t *ent/*out*/);
-herr_t H5G_ent_encode (H5F_t *f, uint8 **pp, H5G_entry_t *ent);
-herr_t H5G_ent_decode (H5F_t *f, const uint8 **pp, H5G_entry_t *ent/*out*/);
+H5G_t *H5G_create(H5F_t *f, const char *name, size_t size_hint);
+H5G_t *H5G_open(H5F_t *f, const char *name);
+H5G_t *H5G_reopen(H5G_t *grp);
+herr_t H5G_close(H5G_t *grp);
+herr_t H5G_set(H5F_t *f, H5G_t *grp);
+herr_t H5G_push(H5F_t *f, H5G_t *grp);
+herr_t H5G_pop(H5F_t *f);
+herr_t H5G_insert(const char *name, H5G_entry_t *ent);
+herr_t H5G_find(H5F_t *f, const char *name, H5G_entry_t *grp_ent /*out */ ,
+ H5G_entry_t *ent /*out */ );
+herr_t H5G_ent_encode(H5F_t *f, uint8 **pp, H5G_entry_t *ent);
+herr_t H5G_ent_decode(H5F_t *f, const uint8 **pp, H5G_entry_t *ent /*out */ );
/*
* These functions operate on symbol table nodes.
*/
-herr_t H5G_node_debug (H5F_t *f, const haddr_t *addr, FILE *stream,
- intn indent, intn fwidth, const haddr_t *heap);
+herr_t H5G_node_debug(H5F_t *f, const haddr_t *addr, FILE * stream,
+ intn indent, intn fwidth, const haddr_t *heap);
/*
* These functions operate on symbol table entries. They're used primarily
* in the H5O package where header messages are cached in symbol table
* entries. The subclasses of H5O probably don't need them though.
*/
-H5G_entry_t *H5G_ent_calloc (H5G_entry_t *init);
-H5G_cache_t *H5G_ent_cache (H5G_entry_t *ent, H5G_type_t *cache_type);
-herr_t H5G_ent_modified (H5G_entry_t *ent, H5G_type_t cache_type);
-herr_t H5G_ent_debug (H5F_t *f, H5G_entry_t *ent, FILE *stream,
- intn indent, intn fwidth);
+H5G_entry_t *H5G_ent_calloc(H5G_entry_t *init);
+H5G_cache_t *H5G_ent_cache(H5G_entry_t *ent, H5G_type_t *cache_type);
+herr_t H5G_ent_modified(H5G_entry_t *ent, H5G_type_t cache_type);
+herr_t H5G_ent_debug(H5F_t *f, H5G_entry_t *ent, FILE * stream,
+ intn indent, intn fwidth);
#endif