Skip to content

Commit

Permalink
Remove useless headers from HDF5 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Mar 15, 2024
1 parent e913eee commit d650deb
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 26 deletions.
2 changes: 0 additions & 2 deletions src/H5A.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/****************/

#include "H5Amodule.h" /* This source code file is part of the H5A module */
#define H5O_FRIEND /* Suppress error about including H5Opkg */

/***********/
/* Headers */
Expand All @@ -26,7 +25,6 @@
#include "H5Eprivate.h" /* Error handling */
#include "H5ESprivate.h" /* Event Sets */
#include "H5Iprivate.h" /* IDs */
#include "H5Opkg.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspace functions */
#include "H5VLprivate.h" /* Virtual Object Layer */

Expand Down
1 change: 0 additions & 1 deletion src/H5ACprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include "H5private.h" /* Generic Functions */
#include "H5Cprivate.h" /* Cache */
#include "H5Fprivate.h" /* File access */
#include "H5Pprivate.h" /* Property lists */
#include "H5SLprivate.h" /* Skip lists */

/* Global metadata tag values */
Expand Down
1 change: 0 additions & 1 deletion src/H5Aprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
/* Private headers needed by this file */
#include "H5Gprivate.h" /* Groups */
#include "H5Oprivate.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspace */
#include "H5Tprivate.h" /* Datatypes */

/**************************/
Expand Down
2 changes: 0 additions & 2 deletions src/H5Dpkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
#include "H5Dprivate.h"

/* Other private headers needed by this file */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5B2private.h" /* v2 B-trees */
#include "H5Fprivate.h" /* File access */
#include "H5FLprivate.h" /* Free Lists */
#include "H5Gprivate.h" /* Groups */
#include "H5SLprivate.h" /* Skip lists */
#include "H5Tprivate.h" /* Datatypes */
Expand Down
6 changes: 2 additions & 4 deletions src/H5Dprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#include "H5Dpublic.h"

/* Private headers needed by this file */
#include "H5FDprivate.h" /* File drivers */
#include "H5Oprivate.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspaces */
#include "H5Zprivate.h" /* Data filters */
#include "H5Oprivate.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspaces */

/**************************/
/* Library Private Macros */
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: 0 additions & 1 deletion src/H5FApkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

/* Other private headers needed by this file */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5FLprivate.h" /* Free Lists */

/**************************/
/* Package Private Macros */
Expand Down
1 change: 0 additions & 1 deletion src/H5FDprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "H5FDdevelop.h"

/* Private headers needed by this file */
#include "H5Pprivate.h" /* Property lists */
#include "H5Sprivate.h" /* Dataspaces */

/*
Expand Down
1 change: 0 additions & 1 deletion src/H5Gprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

/* Private headers needed by this file */
#include "H5private.h" /* Generic Functions */
#include "H5Bprivate.h" /* B-trees */
#include "H5Fprivate.h" /* File access */
#include "H5RSprivate.h" /* Reference-counted strings */

Expand Down
1 change: 1 addition & 0 deletions src/H5HLpkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "H5HLprivate.h"

/* Other private headers needed by this file */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5FLprivate.h" /* Free lists */

/*****************************/
Expand Down
5 changes: 2 additions & 3 deletions src/H5HLprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
#define H5HLprivate_H

/* Private headers needed by this file. */
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5Fprivate.h" /* File access */
#include "H5private.h" /* Generic Functions */
#include "H5Fprivate.h" /* File access */

#define H5HL_ALIGN(X) ((((unsigned)X) + 7) & (unsigned)(~0x07)) /* align on 8-byte boundary */

Expand Down
5 changes: 0 additions & 5 deletions src/H5Mprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
/* Include package's public header */
#include "H5Mpublic.h"

/* Private headers needed by this file */
#include "H5Oprivate.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspaces */
#include "H5Zprivate.h" /* Data filters */

/**************************/
/* Library Private Macros */
/**************************/
Expand Down
3 changes: 3 additions & 0 deletions src/H5Oprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ typedef struct H5O_fill_t H5O_fill_t;
/* Private headers needed by this file */
#include "H5private.h" /* Generic Functions */
#include "H5ACprivate.h" /* Metadata cache */
#include "H5Bprivate.h"
#include "H5B2private.h"
#include "H5Fprivate.h" /* File access */
#include "H5HGprivate.h" /* Global Heaps */
#include "H5SLprivate.h" /* Skip lists */
#include "H5Tprivate.h" /* Datatype functions */
#include "H5UCprivate.h"
#include "H5VLprivate.h" /* Virtual Object Layer */
#include "H5Zprivate.h" /* I/O pipeline filters */

Expand Down
1 change: 0 additions & 1 deletion src/H5Rpkg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

/* Other private headers needed by this file */
#include "H5Fprivate.h" /* Files */
#include "H5Gprivate.h" /* Groups */
#include "H5Oprivate.h" /* Object headers */
#include "H5Sprivate.h" /* Dataspaces */

Expand Down
2 changes: 0 additions & 2 deletions src/H5Sprivate.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
/* Private headers needed by this file */
#include "H5private.h" /* Generic Functions */
#include "H5Fprivate.h" /* Files */
#include "H5Gprivate.h" /* Groups */
#include "H5Pprivate.h" /* Property lists */
#include "H5Tprivate.h" /* Datatypes */

/* Forward references of package typedefs */
Expand Down
2 changes: 1 addition & 1 deletion src/H5VLconnector.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include "H5Dpublic.h" /* Datasets */
#include "H5ESpublic.h" /* Event Stack */
#include "H5Fpublic.h" /* Files */
#include "H5Gpublic.h"
#include "H5Ipublic.h" /* IDs */
#include "H5Lpublic.h" /* Links */
#include "H5Opublic.h" /* Objects */
#include "H5Rpublic.h" /* References */
#include "H5VLpublic.h" /* Virtual Object Layer */

/*****************/
Expand Down
3 changes: 2 additions & 1 deletion src/H5VLnative.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
#define H5VLnative_H

/* Public headers needed by this file */
#include "H5Apublic.h" /* Attributes */
#include "H5Apublic.h" /* Attributes */
#include "H5Gpublic.h"
#include "H5VLpublic.h" /* Virtual Object Layer */

/*****************/
Expand Down

0 comments on commit d650deb

Please sign in to comment.