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/bootstrap/cmb-slave-hook.sml
ViewVC logotype

Annotation of /sml/trunk/src/cm/bootstrap/cmb-slave-hook.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 456 - (view) (download)

1 : blume 449 (*
2 :     * The hook module for the dynamically-linked CMB "slave" stub.
3 :     *
4 :     * (C) 1999 Lucent Technologies, Bell Laboratories
5 :     *
6 :     * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
7 :     *)
8 :     structure CMBSlaveHook = struct
9 :     local
10 : blume 452 type slave =
11 : blume 456 (string * string) ->
12 : blume 452 (GroupGraph.group * (DependencyGraph.sbnode -> bool)) option
13 :     val m = ref (StringMap.empty: slave StringMap.map)
14 : blume 449 in
15 : blume 452 fun init arch f = m := StringMap.insert (!m, arch, f)
16 :     fun slave arch s =
17 :     case StringMap.find (!m, arch) of
18 :     NONE => NONE
19 :     | SOME f => f s
20 : blume 449 end
21 :     end

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