SCM Repository
View of /sml/trunk/src/compiler/PervEnv/dummy.sml
Parent Directory
|
Revision Log
Revision 16 -
(download)
(annotate)
Wed Mar 11 21:00:04 1998 UTC (23 years, 1 month ago) by monnier
File size: 2200 byte(s)
Wed Mar 11 21:00:04 1998 UTC (23 years, 1 month ago) by monnier
File size: 2200 byte(s)
Initial revision
(* Copyright 1996 by Bell Laboratories *) (* dummy.sml *) structure Assembly :> ASSEMBLYBOXED = struct type object = object datatype 'a option = NONE | SOME of 'a (* * Declarations whose right handside is a primOp do not * generate any code. This is a hack, and should be cleaned * in the future. (ZHONG) *) val cast : 'a -> 'b = InLine.cast structure A = struct type c_function = c_function type word8array = word8array type real64array = real64array type spin_lock = spin_lock fun array (x: object): object = cast x fun bind_cfun (x: object): object = cast x fun callc (x: object): object = cast x fun create_b (x: object) : word8array = cast x fun create_r (x: object) : real64array = cast x fun create_s (x: object): string = cast x fun create_v (x: object): object = cast x fun floor (x: object): object = cast x fun logb (x: object): object = cast x fun scalb (x: object): object = cast x fun try_lock (x: spin_lock): object = cast x fun unlock (x: spin_lock): object = cast x end exception Div exception Overflow exception SysErr of (string * int option) val array0 : 'a array = cast() val vector0 : 'a vector = cast() val word8array0 : A.word8array = cast() val profCurrent : int ref = cast() val pollEvent : bool ref = cast() val pollFreq : int ref = cast() val pollHandler : (unit cont -> unit cont) ref = cast() val activeProcs : int ref = cast() val pstruct : object ref = cast() val real64array0 : A.real64array = cast() val sighandler : ((int * int * unit cont) -> unit cont) ref = cast() end (* abstraction Assembly *) (* * $Log: dummy.sml,v $ * Revision 1.4 1997/12/03 21:18:36 dbm * Fix for Word8Array.array equality problem (basis/tests/word8array.sml, * test1). * Replaced string with object, c_function, word8array, real64array, spin_lock. * * Revision 1.3 1997/07/10 18:01:16 jhr * Eliminated the (unused) UnboundTable exception. * * Revision 1.2 1997/01/31 20:39:43 jhr * Replaced uses of "abstraction" with opaque signature matching. * * Revision 1.1.1.1 1997/01/14 01:38:14 george * Version 109.24 * *)
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |