diff options
Diffstat (limited to 'nsprpub/pr/tests/depend.c')
-rw-r--r-- | nsprpub/pr/tests/depend.c | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/nsprpub/pr/tests/depend.c b/nsprpub/pr/tests/depend.c index 6df38c113f..f3689bc460 100644 --- a/nsprpub/pr/tests/depend.c +++ b/nsprpub/pr/tests/depend.c @@ -7,15 +7,15 @@ ** 1996 - Netscape Communications Corporation ** ** -** Name: depend.c +** Name: depend.c ** Description: Test to enumerate the dependencies * ** Modification History: ** 14-May-97 AGarcia- Converted the test to accomodate the debug_mode flag. -** The debug mode will print all of the printfs associated with this test. -** The regress mode will be the default mode. Since the regress tool limits +** The debug mode will print all of the printfs associated with this test. +** The regress mode will be the default mode. Since the regress tool limits ** the output to a one line status:PASS or FAIL,all of the printf statements -** have been handled with an if (debug_mode) statement. +** have been handled with an if (debug_mode) statement. ***********************************************************************/ #include "prinit.h" @@ -35,13 +35,16 @@ static void PrintVersion( static const char *tabs = {" "}; tab *= 2; - if (tab > len) tab = len; + if (tab > len) { + tab = len; + } printf("%s", &tabs[len - tab]); printf("%s ", msg); printf("%s ", info->id); printf("%d.%d", info->major, info->minor); - if (0 != info->patch) + if (0 != info->patch) { printf(".p%d", info->patch); + } printf("\n"); } /* PrintDependency */ @@ -77,9 +80,15 @@ static const PRVersionInfo *HackExportInfo(void) static const PRDependencyInfo *DummyImports( const PRDependencyInfo *previous) { - if (NULL == previous) return &dummy_imports[0]; - else if (&dummy_imports[0] == previous) return &dummy_imports[1]; - else if (&dummy_imports[1] == previous) return NULL; + if (NULL == previous) { + return &dummy_imports[0]; + } + else if (&dummy_imports[0] == previous) { + return &dummy_imports[1]; + } + else if (&dummy_imports[1] == previous) { + return NULL; + } } /* DummyImports */ static const PRVersionInfo *DummyLibVersion(void) @@ -112,8 +121,10 @@ int main(int argc, char **argv) const char *buildDate = __DATE__, *buildTime = __TIME__; printf("Depend.c build time is %s %s\n", buildDate, buildTime); - - if (NULL != info) ChaseDependents(info, tab); + + if (NULL != info) { + ChaseDependents(info, tab); + } return 0; } /* main */ |