X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=generator%2Fgenerator_utils.ml;h=851122714ab2a73520fdbc90baacfb7410b84801;hp=2bdcc0d8d233ccdd06abeb3b540d23288f3e3949;hb=a0f85ba643990da25b6afe6a2bbd2407cf312c73;hpb=ff38fea645e69e8f4d84f2691dac3116d9bac1c4;ds=sidebyside diff --git a/generator/generator_utils.ml b/generator/generator_utils.ml index 2bdcc0d..8511227 100644 --- a/generator/generator_utils.ml +++ b/generator/generator_utils.ml @@ -83,8 +83,8 @@ let rstructs_used_by functions = in List.iter ( - fun (_, style, _, _, _, _, _) -> - match fst style with + fun (_, (ret, _, _), _, _, _, _, _) -> + match ret with | RStruct (_, structname) -> update structname RStructOnly | RStructList (_, structname) -> update structname RStructListOnly | _ -> () @@ -303,3 +303,5 @@ let pod2text ~width name longdesc = pod2text_memo_updated (); lines +(* Compare two actions (for sorting). *) +let action_compare (n1,_,_,_,_,_,_) (n2,_,_,_,_,_,_) = compare n1 n2