X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Flib%2Fstd%2FTime.hsc;h=fbfc0bd74f7151947194f8912d77319bc134e453;hb=d83e7dcffa89d5e7576fa059526b1b7df76249a0;hp=2cbf31871b690a2f7b2e3ec9cf69f5b9dfc62d96;hpb=5c6558a50bafb6d2df72ed54f6434397bd59be56;p=ghc-hetmet.git diff --git a/ghc/lib/std/Time.hsc b/ghc/lib/std/Time.hsc index 2cbf318..fbfc0bd 100644 --- a/ghc/lib/std/Time.hsc +++ b/ghc/lib/std/Time.hsc @@ -3,7 +3,7 @@ -- to compile on sparc-solaris. Blargh. -- ----------------------------------------------------------------------------- --- $Id: Time.hsc,v 1.18 2001/07/24 04:39:31 ken Exp $ +-- $Id: Time.hsc,v 1.19 2001/07/24 05:53:27 ken Exp $ -- -- (c) The University of Glasgow, 1995-2001 -- @@ -387,9 +387,7 @@ throwAwayReturnPointer fun x y = fun x y >> return () clockToCalendarTime_static :: (Ptr CTime -> IO (Ptr CTm)) -> Bool -> ClockTime -> IO CalendarTime clockToCalendarTime_static fun is_utc (TOD secs psec) = do - putStrLn ("clockToCalendarTime: TOD " ++ show secs ++ " " ++ show psec) withObject (fromIntegral secs :: CTime) $ \ p_timer -> do - case p_timer of Ptr addr -> putStrLn ("const time_t * = " ++ show (I## (addr2Int## addr))) p_tm <- fun p_timer -- can't fail, according to POSIX clockToCalendarTime_aux is_utc p_tm psec