update NSPR to 4.24 and keep NSPR Bug 1586070 and win64 patch intact.

This commit is contained in:
Roy Tam 2020-01-03 13:34:04 +08:00
commit 0b9855b841
487 changed files with 42933 additions and 48679 deletions

View file

@ -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 */