Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/cm/util/tstamp.sml
ViewVC logotype

View of /sml/trunk/src/cm/util/tstamp.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 274 - (download) (annotate)
Fri May 14 05:23:02 1999 UTC (21 years, 3 months ago) by blume
File size: 564 byte(s)
stage0 -- links fine (for testing); parses correctly (apparently)
structure TStamp = struct

    datatype t =
	NOTSTAMP
      | STABLETSTAMP of Time.time
      | TSTAMP of Time.time

    (*
     * If f1 depends on f2, then earlier (modtime f1, modtime f2) implies
     * that f1 needs to be recompiled...     *
     *)
    fun earlier (_, NOTSTAMP) = false	(* prerequisite missing *)
      | earlier (NOTSTAMP, _) = true	(* object missing *)
      | earlier (STABLETSTAMP _, _) = false (* object stable *)
      | earlier (TSTAMP t1, STABLETSTAMP t2) = Time.< (t1, t2)
      | earlier (TSTAMP t1, TSTAMP t2) = Time.< (t1, t2)
end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0