[Python-3000-checkins] r57446 - python/branches/py3k/Modules/timemodule.c
guido.van.rossum
python-3000-checkins at python.org
Sat Aug 25 05:14:10 CEST 2007
Author: guido.van.rossum
Date: Sat Aug 25 05:14:09 2007
New Revision: 57446
Modified:
python/branches/py3k/Modules/timemodule.c
Log:
Reorder code and decls so it's compilable with gcc 2.96 (C89).
Modified: python/branches/py3k/Modules/timemodule.c
==============================================================================
--- python/branches/py3k/Modules/timemodule.c (original)
+++ python/branches/py3k/Modules/timemodule.c Sat Aug 25 05:14:09 2007
@@ -354,9 +354,10 @@
gettmarg(PyObject *args, struct tm *p)
{
int y;
- memset((void *) p, '\0', sizeof(struct tm));
PyObject *t = NULL;
+ memset((void *) p, '\0', sizeof(struct tm));
+
if (PyTuple_Check(args)) {
t = args;
Py_INCREF(t);
More information about the Python-3000-checkins
mailing list