summaryrefslogtreecommitdiffstats
path: root/src/H5public.h
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-02-23 04:29:56 (GMT)
committerGitHub <noreply@github.com>2021-02-23 04:29:56 (GMT)
commitc17b4b93d680340af2b3f2c026f2c03c3baeb33a (patch)
treee4ec3b490205d7707251b902657282fe06a4230d /src/H5public.h
parent5ed255a607d604b45e92b06548682ae9b716535d (diff)
downloadhdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.zip
hdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.tar.gz
hdf5-c17b4b93d680340af2b3f2c026f2c03c3baeb33a.tar.bz2
Fixed many -Wreserved-id-macro warnings by fixing header guard spelling (#361)
* Fixed many -Wreserved-id-macro warnings by fixing header guard spelling Removed leading underscore(s) from header guard spelling. Used 2 regexes: ` _H5(.*)_H` ` __H5(.*)_H` Applied case-insensitively to only .h files. * Modified scripts that generate header files to not use underscore prefix Interestingly, there was already no leading underscore in the trailing comment at the end of the file * Fixed remaining -Wreserved-id-macro warning not caught by regex
Diffstat (limited to 'src/H5public.h')
-rw-r--r--src/H5public.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5public.h b/src/H5public.h
index 145348b..b319550 100644
--- a/src/H5public.h
+++ b/src/H5public.h
@@ -14,16 +14,16 @@
/*
* This file contains public declarations for the HDF5 module.
*/
-#ifndef _H5public_H
-#define _H5public_H
+#ifndef H5public_H
+#define H5public_H
/* Include files for public use... */
/*
* Since H5pubconf.h is a generated header file, it is messy to try
- * to put a #ifndef _H5pubconf_H ... #endif guard in it.
+ * to put a #ifndef H5pubconf_H ... #endif guard in it.
* HDF5 has set an internal rule that it is being included here.
* Source files should NOT include H5pubconf.h directly but include
- * it via H5public.h. The #ifndef _H5public_H guard above would
+ * it via H5public.h. The #ifndef H5public_H guard above would
* prevent repeated include.
*/
#include "H5pubconf.h" /* From configure */
@@ -849,4 +849,4 @@ H5_DLL void *H5resize_memory(void *mem, size_t size);
#ifdef __cplusplus
}
#endif
-#endif /* _H5public_H */
+#endif /* H5public_H */