X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=generator%2Fgenerator_docstrings.ml;h=082014ca91c5483025b01e8329b7e67e6136b583;hb=ddb3fac1bf1b0493779c9425b518598473ef106a;hp=6d242bdcfad5edf8ba6de628e072096e11101a9b;hpb=60adf092a8900323c048c94f3f0934be416a3eb6;p=libguestfs.git diff --git a/generator/generator_docstrings.ml b/generator/generator_docstrings.ml index 6d242bd..082014c 100644 --- a/generator/generator_docstrings.ml +++ b/generator/generator_docstrings.ml @@ -36,16 +36,12 @@ let protocol_limit_warning = "Because of the message protocol, there is a transfer limit of somewhere between 2MB and 4MB. See L." -let danger_will_robinson = - "B." - let deprecation_notice ?(prefix = "") flags = try let alt = find_map (function DeprecatedBy str -> Some str | _ -> None) flags in let txt = - sprintf "This function is deprecated. + sprintf "I In new code, use the L call instead. Deprecated functions will not be removed from the API, but the @@ -62,6 +58,7 @@ let copyright_years = (* Generate a header block in a number of standard styles. *) type comment_style = CStyle | CPlusPlusStyle | HashStyle | OCamlStyle | HaskellStyle + | ErlangStyle type license = GPLv2plus | LGPLv2plus let generate_header ?(extra_inputs = []) comment license = @@ -71,7 +68,8 @@ let generate_header ?(extra_inputs = []) comment license = | CPlusPlusStyle -> pr "// "; "//" | HashStyle -> pr "# "; "#" | OCamlStyle -> pr "(* "; " *" - | HaskellStyle -> pr "{- "; " " in + | HaskellStyle -> pr "{- "; " " + | ErlangStyle -> pr "%% "; "% " in pr "libguestfs generated file\n"; pr "%s WARNING: THIS FILE IS GENERATED FROM:\n" c; List.iter (pr "%s %s\n" c) inputs; @@ -113,6 +111,7 @@ let generate_header ?(extra_inputs = []) comment license = (match comment with | CStyle -> pr " */\n" | CPlusPlusStyle + | ErlangStyle | HashStyle -> () | OCamlStyle -> pr " *)\n" | HaskellStyle -> pr "-}\n"