summaryrefslogtreecommitdiffstats
path: root/src/H5Gpkg.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/H5Gpkg.h
parent903e677366a86ea385d5cfe1241f3f53132941de (diff)
downloadhdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.zip
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.gz
hdf5-c2c94c31878dc42926661c9cb7e71be620196fc1.tar.bz2
[svn-r157] Reformatted code with indent...
Diffstat (limited to 'src/H5Gpkg.h')
-rw-r--r--src/H5Gpkg.h80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/H5Gpkg.h b/src/H5Gpkg.h
index 08e8156..b1aaed1 100644
--- a/src/H5Gpkg.h
+++ b/src/H5Gpkg.h
@@ -5,9 +5,9 @@
* Programmer: Robb Matzke <matzke@llnl.gov>
* Thursday, September 18, 1997
*
- * Purpose: This file contains declarations which are visible
- * only within the H5G package. Source files outside the
- * H5G package should include H5Gprivate.h instead.
+ * Purpose: This file contains declarations which are visible
+ * only within the H5G package. Source files outside the
+ * H5G package should include H5Gprivate.h instead.
*/
#ifndef H5G_PACKAGE
#error "Do not include this file outside the H5G package!"
@@ -19,8 +19,8 @@
#include <H5ACprivate.h>
#include <H5Gprivate.h>
-#define H5G_NODE_VERS 1 /*symbol table node version number */
-#define H5G_SIZE_HINT 1024 /*default root grp size hint */
+#define H5G_NODE_VERS 1 /*symbol table node version number */
+#define H5G_SIZE_HINT 1024 /*default root grp size hint */
#define H5G_NODE_K(F) ((F)->shared->create_parms.sym_leaf_k)
#define H5G_NODE_SIZEOF_HDR(F) (H5G_NODE_SIZEOF_MAGIC + 4)
#define H5G_DEFAULT_ROOT_SIZE 32
@@ -32,9 +32,9 @@
* table or group.
*/
typedef struct H5G_node_t {
- hbool_t dirty; /*has cache been modified? */
- int nsyms; /*number of symbols */
- H5G_entry_t *entry; /*array of symbol table entries */
+ hbool_t dirty; /*has cache been modified? */
+ int nsyms; /*number of symbols */
+ H5G_entry_t *entry; /*array of symbol table entries */
} H5G_node_t;
/*
@@ -42,7 +42,7 @@ typedef struct H5G_node_t {
* nodes consists of this structure...
*/
typedef struct H5G_node_key_t {
- size_t offset; /*offset into heap for name */
+ size_t offset; /*offset into heap for name */
} H5G_node_key_t;
/*
@@ -50,8 +50,8 @@ typedef struct H5G_node_key_t {
* above the H5G layer.
*/
struct H5G_t {
- int nref; /*open reference count */
- H5G_entry_t ent; /*info about the group */
+ int nref; /*open reference count */
+ H5G_entry_t ent; /*info about the group */
};
/*
@@ -60,8 +60,8 @@ struct H5G_t {
* current working group is the root object.
*/
typedef struct H5G_cwgstk_t {
- H5G_t *grp; /*a handle to an open group */
- struct H5G_cwgstk_t *next; /*next item (earlier) on stack */
+ H5G_t *grp; /*a handle to an open group */
+ struct H5G_cwgstk_t *next; /*next item (earlier) on stack */
} H5G_cwgstk_t;
/*
@@ -69,8 +69,8 @@ typedef struct H5G_cwgstk_t {
* H5G_node layer through the B-tree layer.
*/
typedef enum H5G_oper_t {
- H5G_OPER_FIND =0, /*find a symbol */
- H5G_OPER_INSERT =1 /*insert a new symbol */
+ H5G_OPER_FIND = 0, /*find a symbol */
+ H5G_OPER_INSERT = 1 /*insert a new symbol */
} H5G_oper_t;
/*
@@ -80,13 +80,13 @@ typedef enum H5G_oper_t {
*/
typedef struct H5G_bt_ud1_t {
- /* downward */
- H5G_oper_t operation; /*what operation to perform */
- const char *name; /*points to temporary memory */
- haddr_t heap_addr; /*symbol table heap address */
+ /* downward */
+ H5G_oper_t operation; /*what operation to perform */
+ const char *name; /*points to temporary memory */
+ haddr_t heap_addr; /*symbol table heap address */
- /* downward for INSERT, upward for FIND */
- H5G_entry_t ent; /*entry to insert into table */
+ /* downward for INSERT, upward for FIND */
+ H5G_entry_t ent; /*entry to insert into table */
} H5G_bt_ud1_t;
@@ -96,21 +96,21 @@ typedef struct H5G_bt_ud1_t {
*/
typedef struct H5G_bt_ud2_t {
- /* downward */
- H5G_entry_t *entry; /*array of entries, alloc'd by caller */
- char **name; /*array of string ptrs, allocd by caller*/
- intn maxentries; /*size of the ADDR and NAME arrays */
- haddr_t heap_addr; /*heap address */
+ /* downward */
+ H5G_entry_t *entry; /*array of entries, alloc'd by caller */
+ char **name; /*array of string ptrs, allocd by caller */
+ intn maxentries; /*size of the ADDR and NAME arrays */
+ haddr_t heap_addr; /*heap address */
+
+ /* upward */
+ intn nsyms; /*num. symbols processed */
- /* upward */
- intn nsyms; /*num. symbols processed */
-
} H5G_bt_ud2_t;
/*
* This is the class identifier to give to the B-tree functions.
*/
-extern H5B_class_t H5B_SNODE[1];
+extern H5B_class_t H5B_SNODE[1];
/* The cache subclass */
extern const H5AC_class_t H5AC_SNODE[1];
@@ -120,19 +120,19 @@ extern const H5AC_class_t H5AC_SNODE[1];
* functions that understand names are exported to the rest of
* the library and appear in H5Gprivate.h.
*/
-herr_t H5G_stab_create (H5F_t *f, size_t size_hint, H5G_entry_t *ent/*out*/);
-herr_t H5G_stab_find (H5G_entry_t *grp_ent, const char *name,
- H5G_entry_t *obj_ent/*out*/);
-herr_t H5G_stab_insert (H5G_entry_t *grp_ent, const char *name,
- H5G_entry_t *obj_ent);
-intn H5G_stab_list (H5G_entry_t *self, intn maxentries,
- char *names[]/*out*/, H5G_entry_t entries[]/*out*/);
+herr_t H5G_stab_create(H5F_t *f, size_t size_hint, H5G_entry_t *ent /*out */ );
+herr_t H5G_stab_find(H5G_entry_t *grp_ent, const char *name,
+ H5G_entry_t *obj_ent /*out */ );
+herr_t H5G_stab_insert(H5G_entry_t *grp_ent, const char *name,
+ H5G_entry_t *obj_ent);
+intn H5G_stab_list(H5G_entry_t *self, intn maxentries,
+ char *names[] /*out */ , H5G_entry_t entries[] /*out */ );
/*
* Functions that understand symbol table entries.
*/
-herr_t H5G_ent_decode_vec (H5F_t *f, const uint8 **pp, H5G_entry_t *ent,
- intn n);
-herr_t H5G_ent_encode_vec (H5F_t *f, uint8 **pp, H5G_entry_t *ent, intn n);
+herr_t H5G_ent_decode_vec(H5F_t *f, const uint8 **pp, H5G_entry_t *ent,
+ intn n);
+herr_t H5G_ent_encode_vec(H5F_t *f, uint8 **pp, H5G_entry_t *ent, intn n);
#endif