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 277 - (download) (annotate)
Mon May 17 09:13:26 1999 UTC (21 years, 1 month ago) by blume
File size: 710 byte(s)
early beginning of dep. analysis
(*
 * CM timestamp semantics.
 *
 * (C) 1999 Lucent Technologies, Bell Laboratories
 *
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
 *)
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