[Python-checkins] python/nondist/sandbox/datetime obj_datetime.c,1.36,1.37

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 07 Dec 2002 13:18:40 -0800


Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv9948

Modified Files:
	obj_datetime.c 
Log Message:
More typecode fiddling.

BTW, the Python implementation shows leaks again!  11 references per test
cycle.  The C implementation does not show leaks.


Index: obj_datetime.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/obj_datetime.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** obj_datetime.c	7 Dec 2002 21:06:38 -0000	1.36
--- obj_datetime.c	7 Dec 2002 21:18:38 -0000	1.37
***************
*** 114,118 ****
  	tm = f(&timet);
  	if (tm)
! 		result = PyObject_CallFunction(cls, "lllllll",
  					       tm->tm_year + 1900,
  					       tm->tm_mon + 1,
--- 114,118 ----
  	tm = f(&timet);
  	if (tm)
! 		result = PyObject_CallFunction(cls, "iiiiiil",
  					       tm->tm_year + 1900,
  					       tm->tm_mon + 1,
***************
*** 191,195 ****
  	tm = localtime(&timet);
  
! 	return PyObject_CallFunction(cls, "llllll",
  				     tm->tm_year + 1900, tm->tm_mon + 1,
  				     tm->tm_mday, tm->tm_hour, tm->tm_min,
--- 191,195 ----
  	tm = localtime(&timet);
  
! 	return PyObject_CallFunction(cls, "iiiiii",
  				     tm->tm_year + 1900, tm->tm_mon + 1,
  				     tm->tm_mday, tm->tm_hour, tm->tm_min,
***************
*** 240,244 ****
  	tm = gmtime(&timet);
  
! 	return PyObject_CallFunction(cls, "llllll",
  				     tm->tm_year + 1900, tm->tm_mon + 1,
  				     tm->tm_mday, tm->tm_hour, tm->tm_min,
--- 240,244 ----
  	tm = gmtime(&timet);
  
! 	return PyObject_CallFunction(cls, "iiiiii",
  				     tm->tm_year + 1900, tm->tm_mon + 1,
  				     tm->tm_mday, tm->tm_hour, tm->tm_min,