Changeset 4898 for trunk/psLib/src/astro/psTime.c
- Timestamp:
- Aug 29, 2005, 3:14:13 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astro/psTime.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astro/psTime.c
r4540 r4898 10 10 * @author Ross Harman, MHPCC 11 11 * 12 * @version $Revision: 1.6 6$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-0 7-12 19:12:00 $12 * @version $Revision: 1.67 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-08-30 01:14:10 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 434 434 } 435 435 436 static void timeFree(psTime *outTime) 437 { 438 // There are non dynamic allocated items 439 } 440 436 441 psTime* psTimeAlloc(psTimeType type) 437 442 { … … 449 454 // Allocate memory for structure 450 455 outTime = (psTime*)psAlloc(sizeof(psTime)); 451 456 psMemSetDeallocator(outTime, (psFreeFunc)timeFree); 452 457 // Initialize members 453 458 outTime->sec = 0; … … 458 463 return outTime; 459 464 } 465 466 467 bool psMemCheckTime(psPtr ptr) 468 { 469 return ( psMemGetDeallocator(ptr) == (psFreeFunc)timeFree ); 470 } 471 460 472 461 473 psTime* psTimeGetNow(psTimeType type)
Note:
See TracChangeset
for help on using the changeset viewer.
