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

SCM Repository

[smlnj] Diff of /sml/trunk/src/cm/semant/group-reg.sml
ViewVC logotype

Diff of /sml/trunk/src/cm/semant/group-reg.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 286, Fri May 21 07:47:16 1999 UTC revision 294, Tue May 25 09:06:06 1999 UTC
# Line 1  Line 1 
1  (*  (*
2   * The "group registry".  CM uses this to remember which groups it is   * The "group registry".  CM uses this to remember which groups it is
3   * currently working on, and what the corresponding input sources are.   * currently working on and what the corresponding input sources are.
4   *   *
5   * (C) 1999 Lucent Technologies, Bell Laboratories   * (C) 1999 Lucent Technologies, Bell Laboratories
6   *   *
# Line 22  Line 22 
22    
23      fun new () = ref AbsPathMap.empty : groupreg      fun new () = ref AbsPathMap.empty : groupreg
24    
25      fun register gr (g, s) = gr := AbsPathMap.insert (!gr, g, s)      fun register gr (p, s) = gr := AbsPathMap.insert (!gr, p, s)
26      fun lookup gr g = valOf (AbsPathMap.find (!gr, g))      fun lookup gr p = valOf (AbsPathMap.find (!gr, p))
27      fun registered gr g = isSome (AbsPathMap.find (!gr, g))      fun registered gr g = isSome (AbsPathMap.find (!gr, g))
28  end  end

Legend:
Removed from v.286  
changed lines
  Added in v.294

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