Changeset 14599 for src/Pugs/Run.hs

Show
Ignore:
Timestamp:
11/03/06 05:30:51 (2 years ago)
Author:
allbery_b
svk:copy_cache_prev:
41990
Message:

AUTHORS: hello, world\n :)
src/Pugs/Compat.hs: added file time tests
src/Pugs/Internals.hs, src/Pugs/Prim.hs: abstract out guts of "time" for

use in $*BASETIME and file tests

src/Pugs/Run.hs: add $*BASETIME
src/Pugs/AST.hs: document _reserved and filterUserDefinedPad; add $*BASETIME

to _reserved

src/Pugs/Prim.hs: add file time operators -M, -C, -A
src/Pugs/Prim/FileTest.hs: add implementation of file time operators
t/operators/filetest.t: correct existing file time operator tests, add a few

more, add all of them to the plan

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Run.hs

    r14438 r14599  
    3636import System.IO 
    3737import System.FilePath (joinFileName) 
     38import System.Posix.Time 
    3839 
    3940 
     
    115116    classes <- initClassObjects (MkObjectId $ -1) [] initTree 
    116117    strictSV <- newScalar $ VBool (name /= "-e") 
     118    -- XXX factor "time" and use it here and in filetime tests 
     119    baset <- getClockTime 
    117120#if defined(PUGS_HAVE_HSPLUGINS) 
    118121    hspluginsSV <- newScalar (VInt 1) 
     
    164167        , gen "$*AUTOLOAD" $ MkRef autoSV 
    165168        , gen "$*STRICT" $ MkRef strictSV 
     169        -- XXX do we want hideInSafemode? 
     170        , gen "$*BASETIME" $ MkRef $ constScalar (VRat $ pugsTimeSpec baset) 
    166171        ] ++ classes 
    167172    -- defSVcell <- (gen "$_" . MkRef) =<< newScalar undef