Skip to content

Commit

Permalink
Header cleanup in C library (HDFGroup#4154)
Browse files Browse the repository at this point in the history
* Ensure H5FL header is included everywhere

* Ensure H5SL header is included everywhere

* Ensure H5MM header is included everywhere
  • Loading branch information
derobins authored and brtnfld committed Mar 18, 2024
1 parent 9552eba commit 78aad21
Show file tree
Hide file tree
Showing 59 changed files with 79 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/H5AC.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* Files */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Pprivate.h" /* Property lists */
#include "H5SLprivate.h" /* Skip Lists */

Expand Down
2 changes: 2 additions & 0 deletions src/H5ACmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@
#include "H5Cprivate.h" /* Cache */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Fpkg.h" /* Files */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */

#ifdef H5_HAVE_PARALLEL

Expand Down
2 changes: 2 additions & 0 deletions src/H5ACproxy_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
#include "H5private.h" /* Generic Functions */
#include "H5ACpkg.h" /* Metadata cache */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5Adense.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Apkg.h" /* Attributes */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MMprivate.h" /* Memory management */
#include "H5Opkg.h" /* Object headers */
#include "H5SMprivate.h" /* Shared object header messages */
Expand Down
1 change: 1 addition & 0 deletions src/H5Aint.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Apkg.h" /* Attributes */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Opkg.h" /* Object headers */
Expand Down
1 change: 1 addition & 0 deletions src/H5B.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
#include "H5Bpkg.h" /* B-link trees */
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5B2.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MMprivate.h" /* Memory management */

/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5B2hdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
Expand Down
1 change: 1 addition & 0 deletions src/H5B2int.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */

Expand Down
1 change: 1 addition & 0 deletions src/H5B2internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */

/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5B2leaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5B2pkg.h" /* v2 B-trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5Bcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Bpkg.h" /* B-link trees */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MMprivate.h" /* Memory management */

/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5C.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5CS.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5CSprivate.h" /* Function stack */
#include "H5Eprivate.h" /* Error handling */
#include "H5MMprivate.h" /* Memory management */

#ifdef H5_HAVE_CODESTACK

Expand Down
1 change: 1 addition & 0 deletions src/H5Cdbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "H5ACprivate.h" /* Metadata Cache */
#include "H5Cpkg.h" /* Cache */
#include "H5Eprivate.h" /* Error Handling */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
2 changes: 2 additions & 0 deletions src/H5Centry.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* Files */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5Cint.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* Files */
#include "H5MFprivate.h" /* File memory management */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5Cmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "H5Fpkg.h" /* Files */
#include "H5FDprivate.h" /* File drivers */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */

#ifdef H5_HAVE_PARALLEL
/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5Dchunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#include "H5MMprivate.h" /* Memory management */
#include "H5MFprivate.h" /* File memory management */
#include "H5PBprivate.h" /* Page Buffer */
#include "H5SLprivate.h" /* Skip Lists */
#include "H5VMprivate.h" /* Vector and array functions */

/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5Dint.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "H5Iprivate.h" /* IDs */
#include "H5Lprivate.h" /* Links */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */
#include "H5VLprivate.h" /* Virtual Object Layer */
#include "H5VMprivate.h" /* Vector Functions */

Expand Down
1 change: 1 addition & 0 deletions src/H5Dmpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "H5Oprivate.h" /* Object headers */
#include "H5Pprivate.h" /* Property lists */
#include "H5Sprivate.h" /* Dataspaces */
#include "H5SLprivate.h" /* Skip Lists */
#include "H5VMprivate.h" /* Vector */

#ifdef H5_HAVE_PARALLEL
Expand Down
1 change: 1 addition & 0 deletions src/H5EAhdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5EApkg.h" /* Extensible Arrays */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
Expand Down
1 change: 1 addition & 0 deletions src/H5FAhdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FApkg.h" /* Fixed Arrays */
#include "H5FLprivate.h" /* Free Lists */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5FO.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "H5FLprivate.h" /* Free lists */
#include "H5FOprivate.h" /* File objects */
#include "H5Oprivate.h" /* Object headers */
#include "H5SLprivate.h" /* Skip Lists */

/* Private typedefs */

Expand Down
2 changes: 2 additions & 0 deletions src/H5FS.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5FSpkg.h" /* File free space */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */

/****************/
/* Local Macros */
Expand Down
1 change: 1 addition & 0 deletions src/H5FScache.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "H5FSpkg.h" /* File free space */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
#include "H5SLprivate.h" /* Skip Lists */
#include "H5VMprivate.h" /* Vectors and arrays */

/****************/
Expand Down
2 changes: 2 additions & 0 deletions src/H5FSsection.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5FSpkg.h" /* File free space */
#include "H5MFprivate.h" /* File memory management */
#include "H5SLprivate.h" /* Skip Lists */
#include "H5VMprivate.h" /* Vectors and arrays */

/****************/
Expand Down
1 change: 1 addition & 0 deletions src/H5Faccum.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5FDprivate.h" /* File drivers */
#include "H5MMprivate.h" /* Memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
Expand Down
2 changes: 2 additions & 0 deletions src/H5Fefc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
#include "H5CXprivate.h" /* API Contexts */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MMprivate.h" /* Memory management */
#include "H5Pprivate.h" /* Property lists */
#include "H5SLprivate.h" /* Skip Lists */

/* Special values for the "tag" field below */
#define H5F_EFC_TAG_DEFAULT (-1)
Expand Down
7 changes: 4 additions & 3 deletions src/H5Ffake.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
#include "H5Fmodule.h" /* This source code file is part of the H5F module */

/* Packages needed by this file... */
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */

/* PRIVATE PROTOTYPES */

Expand Down
1 change: 1 addition & 0 deletions src/H5Fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gprivate.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
#include "H5MFprivate.h" /* File memory management */
Expand Down
1 change: 1 addition & 0 deletions src/H5Fsuper.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FDprivate.h" /* File drivers */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Iprivate.h" /* IDs */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
Expand Down
1 change: 1 addition & 0 deletions src/H5Gcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gpkg.h" /* Groups */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5Gint.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5FOprivate.h" /* File objects */
#include "H5Gpkg.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
Expand Down
1 change: 1 addition & 0 deletions src/H5Goh.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gpkg.h" /* Groups */
#include "H5Iprivate.h" /* IDs */
#include "H5Opkg.h" /* Object headers */
Expand Down
1 change: 1 addition & 0 deletions src/H5Groot.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fpkg.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gpkg.h" /* Groups */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5HF.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5HFcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
Expand Down
1 change: 1 addition & 0 deletions src/H5HFdblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MFprivate.h" /* File memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
Expand Down
1 change: 1 addition & 0 deletions src/H5HFhdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
Expand Down
1 change: 1 addition & 0 deletions src/H5HFiblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MFprivate.h" /* File memory management */
#include "H5VMprivate.h" /* Vectors and arrays */
Expand Down
1 change: 1 addition & 0 deletions src/H5HFiter.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5VMprivate.h" /* Vectors and arrays */

Expand Down
1 change: 1 addition & 0 deletions src/H5HFsection.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
/***********/
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HFpkg.h" /* Fractal heaps */
#include "H5MMprivate.h" /* Memory management */

Expand Down
1 change: 1 addition & 0 deletions src/H5HG.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HGpkg.h" /* Global heaps */
#include "H5MFprivate.h" /* File memory management */
#include "H5MMprivate.h" /* Memory management */
Expand Down
1 change: 1 addition & 0 deletions src/H5HGcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "H5private.h" /* Generic Functions */
#include "H5Eprivate.h" /* Error handling */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5HGpkg.h" /* Global heaps */
#include "H5MMprivate.h" /* Memory management */

Expand Down
Loading

0 comments on commit 78aad21

Please sign in to comment.