/usr/share/doc/camlmix/examples/macro.ml is in camlmix 1.3.1-3build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | let read_chan f ic =
try
while true do
f (input_char ic)
done
with End_of_file -> ()
let include_file file =
let ic = open_in_bin file in
read_chan print_char ic;
close_in ic
let html_verbatim file =
let ic = open_in_bin file in
print_string "<pre>\n";
read_chan
(function
| '<' -> print_string "<"
| '>' -> print_string ">"
| '&' -> print_string "&"
| c -> print_char c)
ic;
print_string "</pre>\n";
close_in ic
let camlmix file = Sys.command ("./camlmix " ^ file)
let author = "Martin Jambon"
let some_text = "inserted using Ocaml"
|