Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/ml-nlffi-lib/memory/memory.sig
ViewVC logotype

Diff of /sml/trunk/src/ml-nlffi-lib/memory/memory.sig

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1014, Tue Jan 15 16:32:43 2002 UTC revision 1015, Tue Jan 15 21:46:00 2002 UTC
# Line 6  Line 6 
6   * author: Matthias Blume (blume@research.bell-labs.com)   * author: Matthias Blume (blume@research.bell-labs.com)
7   *)   *)
8  signature CMEMORY = sig  signature CMEMORY = sig
9        exception OutOfMemory
10    
11      type addr      type addr
12      val null : addr      val null : addr
13      val isNull : addr -> bool      val isNull : addr -> bool
# Line 13  Line 15 
15      val -- : addr * addr -> int      val -- : addr * addr -> int
16      val compare : addr * addr -> order      val compare : addr * addr -> order
17      val bcopy : { from: addr, to: addr, bytes: word } -> unit      val bcopy : { from: addr, to: addr, bytes: word } -> unit
18      val alloc : word -> addr option      val alloc : word -> addr            (* may raise OutOfMemory *)
19      val free : addr -> unit      val free : addr -> unit
20    
21      (* actual sizes of C types (not their ML representations) in bytes *)      (* actual sizes of C types (not their ML representations) in bytes *)
# Line 90  Line 92 
92      val unwrap_ulong : cc_ulong -> MLRep.ULong.word      val unwrap_ulong : cc_ulong -> MLRep.ULong.word
93      val unwrap_float : cc_float -> MLRep.Float.real      val unwrap_float : cc_float -> MLRep.Float.real
94      val unwrap_double : cc_double -> MLRep.Double.real      val unwrap_double : cc_double -> MLRep.Double.real
95    
96        (* unsafe pointer <-> int conversion *)
97        val p2i : addr -> MLRep.ULong.word
98        val i2p : MLRep.ULong.word -> addr
99  end  end

Legend:
Removed from v.1014  
changed lines
  Added in v.1015

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