X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=generator%2Fgenerator_docstrings.ml;h=173ca8e1229f5f7b702884290c29701529933d13;hb=refs%2Ftags%2F1.8.16;hp=44f92c05c7f136734928343ad6fd30cbb043358a;hpb=04d8209077d2227eb1d42695ba71147f78987050;p=libguestfs.git diff --git a/generator/generator_docstrings.ml b/generator/generator_docstrings.ml index 44f92c0..173ca8e 100644 --- a/generator/generator_docstrings.ml +++ b/generator/generator_docstrings.ml @@ -40,17 +40,17 @@ let danger_will_robinson = "B." -let deprecation_notice flags = +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. -In new code, use the C<%s> call instead. +In new code, use the L call instead. Deprecated functions will not be removed from the API, but the fact that they are deprecated indicates that there are problems -with correct use of these functions." alt in +with correct use of these functions." prefix alt in Some txt with Not_found -> None