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/util/stdcfg.sml
ViewVC logotype

View of /sml/trunk/src/cm/util/stdcfg.sml

Parent Directory Parent Directory | Revision Log Revision Log

Revision 643 - (download) (annotate)
Fri May 12 08:29:15 2000 UTC (20 years, 5 months ago) by blume
File size: 1050 byte(s)
merged my path anchor changes into main trunk
more config/srcarchiveurl! YOU NEED NEW BINFILES more config/srcarchiveurl!
Read HISTORY and src/system/README!
 * CM parameters that are configurable via shell-environment variables.
 *   Copyright (c) 1999 by Lucent Technologies, Bell Laboratories.
 * author: Matthias Blume (blume@cs.princeton.edu)
structure StdConfig = struct
	val bool = EnvConfig.new Bool.fromString
	val int = EnvConfig.new Int.fromString
	val string = EnvConfig.new SOME
	val stringoptthunk = EnvConfig.new (fn s => SOME (fn () => SOME s))
	val verbose = bool ("VERBOSE", true)
	val debug = bool ("DEBUG", false)
	val keep_going = bool ("KEEP_GOING", false)
	val pathcfgspec = string ("PATHCONFIG", "/usr/lib/smlnj-pathconfig")
	val parse_caching = int ("PARSE_CACHING", 100)
	val local_pathconfig =
	    stringoptthunk ("LOCAL_PATHCONFIG",
			    fn () =>
			      Option.map (fn h => OS.Path.concat
					   (h, ".smlnj-pathconfig"))
			                 (OS.Process.getEnv "HOME"))
	val warn_obsolete = bool ("WARN_OBSOLETE", true)
	val conserve_memory = bool ("CONSERVE_MEMORY", false)
	val implicit_anchors = bool ("IMPLICIT_ANCHORS", true)

ViewVC Help
Powered by ViewVC 1.0.0