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/MLRISC/mlrisc/asmStream.sml
ViewVC logotype

Annotation of /sml/trunk/src/MLRISC/mlrisc/asmStream.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 168 - (view) (download)

1 : monnier 16 (* asmStream.sml
2 :     *
3 :     * COPYRIGHT (c) 1996 Bell Laboratories.
4 :     *
5 :     *)
6 :    
7 :     (* AsmStream - this structure is available to all codegenerators.
8 :     * Typically asmOutStream is rebound to a file.
9 :     *)
10 :    
11 : monnier 167 structure AsmStream = struct
12 :     val asmOutStream = ref TextIO.stdOut
13 :     fun withStream stream body x = let
14 :     val s = !asmOutStream
15 :     val _ = asmOutStream := stream
16 :     in
17 :     (body x before asmOutStream := s)
18 :     handle e => (asmOutStream := s; raise e)
19 :     end
20 :     end
21 : monnier 16
22 :    
23 :    
24 :     (*
25 : monnier 167 * $Log: asmStream.sml,v $
26 :     * Revision 1.1.1.1 1998/04/08 18:39:01 george
27 :     * Version 110.5
28 :     *
29 : monnier 16 *)

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