SCM Repository
View of /smlnj-c/trunk/cutil.sml
Parent Directory
|
Revision Log
Revision 250 -
(download)
(annotate)
Sat Apr 17 18:57:03 1999 UTC (22 years ago) by monnier
Original Path: sml/trunk/src/smlnj-c/cutil.sml
File size: 499 byte(s)
Sat Apr 17 18:57:03 1999 UTC (22 years ago) by monnier
Original Path: sml/trunk/src/smlnj-c/cutil.sml
File size: 499 byte(s)
This commit was generated by cvs2svn to compensate for changes in r249, which included commits to RCS files with non-trunk default branches.
(* cutil.sml * * COPYRIGHT (c) 1995 AT&T Bell Laboratories. * * functor producing structures with C functions required for * the SML/NJ C interface. *) functor CUtil (structure C: C_CALLS) : C_UTIL = struct open C val ptos' = registerAutoFreeCFn("ptos",[CaddrT],CstringT) fun ptos p = let val Cstring s = ptos' [Caddr p] in s end val ptoi' = registerAutoFreeCFn("ptoi",[CaddrT],CintT) fun ptoi p = let val Cint i = ptoi' [Caddr p] in i end end (* functor CUtil *)
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |