From 18ee38e1eac132b91706771285d1764641179804 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 6 Aug 2011 16:04:36 +0100 Subject: [PATCH] docs: Move deprecation notice up to the top in C man page. --- generator/generator_c.ml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 -> () -- 1.8.3.1