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/trunk/src/cm/main/general-params.sml
ViewVC logotype

View of /sml/trunk/src/cm/main/general-params.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1058 - (download) (annotate)
Fri Feb 8 20:02:56 2002 UTC (17 years, 7 months ago) by blume
File size: 1054 byte(s)
110.38.1; new bootfiles; new PID generation scheme; installer improvements
(*
 * "General" parameters that may differ from invocation to invocation of
 * CM.  The "info" type bundles them up so they can be passed around
 * more conveniently.
 *
 * (C) 1999 Lucent Technologies, Bell Laboratories
 *
 * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp)
 *)
structure GeneralParams = struct

    type param = { penv: SrcPath.env,
		   fnpolicy: FilenamePolicy.policy,
		   symval: string -> { get: unit -> int option,
				       set: int option -> unit },
		   archos: string,
		   keep_going: bool,
		   slave_mode: bool }

    type info = { param: param,
		  groupreg: GroupReg.groupreg,
		  errcons: PrettyPrint.ppconsumer,
		  youngest: TStamp.t ref }

    fun bind { param = { penv, archos, fnpolicy, symval,
			 keep_going, slave_mode },
		groupreg, errcons, youngest } rb =
	{ param = { penv = SrcPath.bind penv rb,
		    archos = archos,
		    fnpolicy = fnpolicy,
		    symval = symval,
		    keep_going = keep_going,
		    slave_mode = slave_mode },
	  groupreg = groupreg, errcons = errcons, youngest = youngest }
end

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