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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 277 - (view) (download)

1 : blume 277 (*
2 :     * CM timestamp semantics.
3 :     *
4 :     * (C) 1999 Lucent Technologies, Bell Laboratories
5 :     *
6 :     * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
7 :     *)
8 : blume 274 structure TStamp = struct
9 :    
10 :     datatype t =
11 :     NOTSTAMP
12 :     | STABLETSTAMP of Time.time
13 :     | TSTAMP of Time.time
14 :    
15 :     (*
16 :     * If f1 depends on f2, then earlier (modtime f1, modtime f2) implies
17 :     * that f1 needs to be recompiled... *
18 :     *)
19 :     fun earlier (_, NOTSTAMP) = false (* prerequisite missing *)
20 :     | earlier (NOTSTAMP, _) = true (* object missing *)
21 :     | earlier (STABLETSTAMP _, _) = false (* object stable *)
22 :     | earlier (TSTAMP t1, STABLETSTAMP t2) = Time.< (t1, t2)
23 :     | earlier (TSTAMP t1, TSTAMP t2) = Time.< (t1, t2)
24 :     end

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