mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
update NSPR to 4.24 and keep NSPR Bug 1586070 and win64 patch intact.
This commit is contained in:
parent
dd094ae552
commit
0b9855b841
487 changed files with 42933 additions and 48679 deletions
|
|
@ -20,7 +20,7 @@ int main(int argc, char **argv)
|
|||
PR_ExplodeTime(now, PR_LocalTimeParameters, &tod);
|
||||
|
||||
if (PR_FormatTime(buffer, sizeof(buffer),
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod) != 0) {
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod) != 0) {
|
||||
printf("%s\n", buffer);
|
||||
} else {
|
||||
fprintf(stderr, "PR_FormatTime(buffer) failed\n");
|
||||
|
|
@ -29,21 +29,21 @@ int main(int argc, char **argv)
|
|||
|
||||
small_buffer[0] = '?';
|
||||
if (PR_FormatTime(small_buffer, sizeof(small_buffer),
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod) == 0) {
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod) == 0) {
|
||||
if (small_buffer[0] != '\0') {
|
||||
fprintf(stderr, "PR_FormatTime(small_buffer) did not output "
|
||||
"an empty string on failure\n");
|
||||
"an empty string on failure\n");
|
||||
return 1;
|
||||
}
|
||||
printf("%s\n", small_buffer);
|
||||
} else {
|
||||
fprintf(stderr, "PR_FormatTime(small_buffer) succeeded "
|
||||
"unexpectedly\n");
|
||||
"unexpectedly\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
(void)PR_FormatTimeUSEnglish(buffer, sizeof(buffer),
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod);
|
||||
"%a %b %d %H:%M:%S %Z %Y", &tod);
|
||||
printf("%s\n", buffer);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue