This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
(lang dune 3.0)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
(library
|
||||
(name forutop)
|
||||
(foreign_stubs
|
||||
(language c)
|
||||
(names forutop_stubs)))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
external hello_in_utop: unit -> string = "hello_in_utop"
|
||||
let run () = print_endline (hello_in_utop ())
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#include <caml/alloc.h>
|
||||
|
||||
value hello_in_utop(value v_unit)
|
||||
{
|
||||
return caml_copy_string("hello in utop");
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
Forutop.run ();;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
$ dune utop forutop -- init_forutop.ml
|
||||
hello in utop
|
||||
Loading…
Add table
Add a link
Reference in a new issue