This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
(executable (name foo))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
((addr2loc ())
|
||||
(name2id ())
|
||||
(functions ())
|
||||
(execounts ()) (crcs ((Dune__exe__Foo aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa))))
|
||||
|
|
@ -0,0 +1 @@
|
|||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
print_string "<root>"
|
||||
;;
|
||||
|
||||
let sep = Filename.dir_sep in
|
||||
assert ((String.length sep) = 1);
|
||||
let l = Sys.executable_name
|
||||
|> String.split_on_char sep.[0] in
|
||||
(* print the last 4 elements if exist *)
|
||||
let len = (List.length l) in
|
||||
List.iteri
|
||||
(fun i dir ->
|
||||
if ((len - i) < 5) then Printf.printf "/%s" dir)
|
||||
l
|
||||
;;
|
||||
|
||||
print_endline ": hello from fdo!"
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue