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

SCM Repository

[smlnj] View of /sml/branches/blume-private-devel/src/ml-nlffi-lib/Tests/readline/libh.sml
ViewVC logotype

View of /sml/branches/blume-private-devel/src/ml-nlffi-lib/Tests/readline/libh.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1439 - (download) (annotate)
Wed Jan 14 22:55:24 2004 UTC (15 years, 7 months ago) by mblume
File size: 267 byte(s)
added readline example to ml-nlffi-lib
structure LibH = struct
    local 
	val lh = DynLinkage.open_lib
		    { name = "/usr/lib/libreadline.so", global = true, lazy = false }
    in
        fun libh s = let
	    val sh = DynLinkage.lib_symbol (lh, s)
	in
	    fn () => DynLinkage.addr sh
	end
    end
end

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