SCM Repository
View of /sml/trunk/src/cm/main/filename-policy.sml
Parent Directory
|
Revision Log
Revision 297 -
(download)
(annotate)
Thu May 27 08:29:19 1999 UTC (21 years, 9 months ago) by blume
File size: 957 byte(s)
Thu May 27 08:29:19 1999 UTC (21 years, 9 months ago) by blume
File size: 957 byte(s)
persistent state/error handling bogosity fixed
(* just a placeholder so far *) (* * A type representing different choices for file naming conventions. * * (C) 1999 Lucent Technologies, Bell Laboratories * * Author: Matthias Blume (blume@kurims.kyoto-u.ac.jp) *) signature FILENAMEPOLICY = sig type policy val default : policy val mkBinPath : policy -> AbsPath.t -> AbsPath.t val mkSkelPath : policy -> AbsPath.t -> AbsPath.t val mkStablePath : policy -> AbsPath.t -> AbsPath.t end structure FilenamePolicy :> FILENAMEPOLICY = struct type policy = Dummy.t val default = Dummy.v fun cmpath (d, s) = let val { dir = d0, file = f } = AbsPath.splitDirFile s val d1 = AbsPath.joinDirFile { dir = d0, file = "CM" } val d2 = AbsPath.joinDirFile { dir = d1, file = d } in AbsPath.joinDirFile { dir = d2, file = f } end fun mkBinPath _ s = cmpath ("bin", s) fun mkSkelPath _ s = cmpath ("SKEL", s) fun mkStablePath _ s = cmpath ("bin", s) end
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |