diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2011-07-20 02:25:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2011-07-20 02:25:35 (GMT) |
commit | cc3bdaa6d905f21d3c9387e811270ce9f03dced0 (patch) | |
tree | 1668b4b5dd73d318a36d8ca689b3d0749819186e /src/H5G.c | |
parent | c021348b268169d25efb5f5f975e65da79c15a8d (diff) | |
download | hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.zip hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.gz hdf5-cc3bdaa6d905f21d3c9387e811270ce9f03dced0.tar.bz2 |
[svn-r21130] Description:
Bring r21126 from trunk to 1.8 branch:
Clean up some compiler warnings, but mainly an interim checkin on the
path of reducing code coupling in the library by removing most of the places
which were accessing H5F package definitions.
Tested on:
Mac OS X/32 10.6.8 (amazon) w/debug
FreeBSD/32 8.2 (loyalty) w/debug
FreeBSD/64 8.2 (freedom) w/debug
Linux/32 2.6 (jam) w/debug
Linux/64 2.6 (koala) w/debug
Linux/64 2.6 (heiwa) w/debug
Diffstat (limited to 'src/H5G.c')
-rw-r--r-- | src/H5G.c | 50 |
1 files changed, 41 insertions, 9 deletions
@@ -75,27 +75,41 @@ *------------------------------------------------------------------------- */ -#define H5F_PACKAGE /*suppress error about including H5Fpkg */ +/****************/ +/* Module Setup */ +/****************/ + #define H5G_PACKAGE /*suppress error about including H5Gpkg */ /* Interface initialization */ #define H5_INTERFACE_INIT_FUNC H5G_init_interface -/* Packages needed by this file... */ + +/***********/ +/* Headers */ +/***********/ #include "H5private.h" /* Generic Functions */ #include "H5ACprivate.h" /* Metadata cache */ #include "H5Eprivate.h" /* Error handling */ -#include "H5Fpkg.h" /* File access */ +#include "H5Fprivate.h" /* File access */ +#include "H5FOprivate.h" /* File objects */ #include "H5Gpkg.h" /* Groups */ #include "H5Iprivate.h" /* IDs */ #include "H5Lprivate.h" /* Links */ #include "H5MMprivate.h" /* Memory management */ #include "H5Pprivate.h" /* Property lists */ -/* Local macros */ + +/****************/ +/* Local Macros */ +/****************/ + #define H5G_RESERVED_ATOMS 0 -/* Local typedefs */ + +/******************/ +/* Local Typedefs */ +/******************/ /* User data for path traversal routine for "insertion file" routine */ typedef struct { @@ -126,10 +140,21 @@ typedef struct { } H5G_iter_visit_ud_t; -/* Package variables */ +/********************/ +/* Package Typedefs */ +/********************/ + +/********************/ +/* Local Prototypes */ +/********************/ -/* Local variables */ +static herr_t H5G_open_oid(H5G_t *grp, hid_t dxpl_id); + + +/*********************/ +/* Package Variables */ +/*********************/ /* Declare a free list to manage the H5G_t struct */ H5FL_DEFINE(H5G_t); @@ -139,8 +164,15 @@ H5FL_DEFINE(H5G_shared_t); H5FL_DEFINE(H5_obj_t); -/* Private prototypes */ -static herr_t H5G_open_oid(H5G_t *grp, hid_t dxpl_id); +/*****************************/ +/* Library Private Variables */ +/*****************************/ + + +/*******************/ +/* Local Variables */ +/*******************/ + /*------------------------------------------------------------------------- |