From: Richard W.M. Jones Date: Sat, 6 Aug 2011 15:04:36 +0000 (+0100) Subject: docs: Move deprecation notice up to the top in C man page. X-Git-Tag: 1.13.3~4 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=18ee38e1eac132b91706771285d1764641179804;p=libguestfs.git docs: Move deprecation notice up to the top in C man page. --- diff --git a/generator/generator_c.ml b/generator/generator_c.ml index c9bfb1f..5460a35 100644 --- a/generator/generator_c.ml +++ b/generator/generator_c.ml @@ -180,6 +180,11 @@ and generate_actions_pod () = generate_prototype ~extern:false ~indent:" " ~handle:"g" name style; pr "\n\n"; + (match deprecation_notice ~prefix:"guestfs_" flags with + | None -> () + | Some txt -> pr "%s\n\n" txt + ); + let uc_shortname = String.uppercase shortname in if optargs <> [] then ( pr "You may supply a list of optional arguments to this call.\n"; @@ -255,10 +260,6 @@ I.\n\n" pr "This function takes a key or passphrase parameter which could contain sensitive material. Read the section L for more information.\n\n"; - (match deprecation_notice ~prefix:"guestfs_" flags with - | None -> () - | Some txt -> pr "%s\n\n" txt - ); (match lookup_api_version name with | Some version -> pr "(Added in %s)\n\n" version | None -> ()