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 330 - (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 :     | TSTAMP of Time.time
13 :    
14 : blume 330 val ancient = TSTAMP (Time.zeroTime)
15 :    
16 : blume 274 (*
17 :     * If f1 depends on f2, then earlier (modtime f1, modtime f2) implies
18 :     * that f1 needs to be recompiled... *
19 :     *)
20 :     fun earlier (_, NOTSTAMP) = false (* prerequisite missing *)
21 :     | earlier (NOTSTAMP, _) = true (* object missing *)
22 :     | earlier (TSTAMP t1, TSTAMP t2) = Time.< (t1, t2)
23 :     end

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