forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up mirror VFD code in utils dir (HDFGroup#3121)
* Remove dead code * Replace mybzero with memset * Replace hbool_t/TRUE/FALSE with bool/true/false
- Loading branch information
Showing
5 changed files
with
24 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,8 @@ | |
* [email protected]. * | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
||
/* Common operations for "remote" processes for the Mirror VFD. | ||
* | ||
* Jacob Smith, 2020-03-06 | ||
/* | ||
* Common operations for "remote" processes for the mirror VFD | ||
*/ | ||
|
||
#include "mirror_remote.h" | ||
|
@@ -31,19 +30,19 @@ mirror_log(struct mirror_log_info *info, unsigned int level, const char *format, | |
{ | ||
FILE *stream = MIRROR_LOG_DEFAULT_STREAM; | ||
unsigned int verbosity = MIRROR_LOG_DEFAULT_VERBOSITY; | ||
hbool_t custom = FALSE; | ||
bool custom = false; | ||
|
||
if (info != NULL && info->magic == MIRROR_LOG_INFO_MAGIC) { | ||
stream = info->stream; | ||
verbosity = info->verbosity; | ||
custom = TRUE; | ||
custom = true; | ||
} | ||
|
||
if (level == V_NONE) { | ||
return; | ||
} | ||
else if (level <= verbosity) { | ||
if (custom == TRUE && info->prefix[0] != '\0') { | ||
if (custom == true && info->prefix[0] != '\0') { | ||
HDfprintf(stream, "%s", info->prefix); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,8 @@ | |
* [email protected]. * | ||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | ||
|
||
/* Common definitions for "remote" processes for the Mirror VFD. | ||
* | ||
* Jacob Smith, 2020-03-06 | ||
/* | ||
* Common definitions for "remote" processes for the mirror VFD | ||
*/ | ||
|
||
#include "hdf5.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters