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/branches/primop-branch-gkuan/cm/bootstrap/cmb-slave-hook.sml
ViewVC logotype

View of /sml/branches/primop-branch-gkuan/cm/bootstrap/cmb-slave-hook.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2787 - (download) (annotate)
Sat Sep 29 05:18:54 2007 UTC (13 years, 6 months ago) by gkuan
File size: 587 byte(s)
Creating private branch of sml/branches/primop-branch-3 for experimental Translate rewrite
(*
 * The hook module for the dynamically-linked CMB "slave" stub.
 *
 * (C) 1999 Lucent Technologies, Bell Laboratories
 *
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
 *)
structure CMBSlaveHook = struct
    local
	type slave =
	    (string * string) option ->
	    (GroupGraph.group *
	     (DependencyGraph.sbnode -> bool) *
	     SrcPath.env) option
	val m = ref (StringMap.empty: slave StringMap.map)
    in
	fun init arch f = m := StringMap.insert (!m, arch, f)
	fun slave arch s =
	    case StringMap.find (!m, arch) of
		NONE => NONE
	      | SOME f => f s
    end
end

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