Formatting, and minor error detection

This commit is contained in:
Barry Warsaw 1997-01-13 22:44:55 +00:00
parent 6f332d8f35
commit 4a6cf4167b
1 changed files with 52 additions and 49 deletions

View File

@ -239,8 +239,9 @@ time_strftime(self, args)
buf.tm_mon--;
buf.tm_wday = (buf.tm_wday + 1) % 7;
buf.tm_yday--;
/* I hate these functions that presume you know how big the output */
/* will be ahead of time... */
/* I hate these functions that presume you know how big the output
* will be ahead of time...
*/
for (i = 1024 ; i < 8192 ; i += 1024) {
outbuf = malloc(i);
if (outbuf == NULL) {
@ -386,6 +387,8 @@ inittime()
}
#endif /* HAVE_TM_ZONE */
#endif /* !HAVE_TZNAME */
if (PyErr_Occurred())
Py_FatalError("Can't initialize time module");
}