@@ -152,7 +152,7 @@ and gen_class f g clas targetdir =
152152
153153
154154and gen_enum f g targetdir = function
155- | Enum (name , _ , contents ) ->
155+ | Enum (name , contents ) ->
156156 if not (List. mem name ! all_headers) then
157157 all_headers := name::! all_headers;
158158 let out_chan = open_out (Filename. concat targetdir (g name))
@@ -502,7 +502,7 @@ and abstract_result_handling needed classname msg_name param_count = function
502502 return session->ok;
503503" record_tn (initialiser_of_ty (Record n)) call
504504
505- | Enum (e , _ , _ ) ->
505+ | Enum (e , _ ) ->
506506 sprintf
507507 " %s
508508 %s
@@ -545,7 +545,7 @@ and abstract_result_type typ =
545545
546546and abstract_type record = function
547547 | String -> " abstract_type_string"
548- | Enum (n , _ , _ ) ->
548+ | Enum (n , _ ) ->
549549 sprintf " %s_abstract_type_" (typename n)
550550 | Ref _ ->
551551 if record then
@@ -556,7 +556,7 @@ and abstract_type record = function
556556 | Float -> " abstract_type_float"
557557 | Bool -> " abstract_type_bool"
558558 | DateTime -> " abstract_type_datetime"
559- | Set (Enum(n , _ , _ )) ->
559+ | Set (Enum(n , _ )) ->
560560 sprintf " %s_set_abstract_type_" (typename n)
561561 | Set (Record "event" ) ->
562562 " xen_event_record_set_abstract_type_"
@@ -569,8 +569,8 @@ and abstract_type record = function
569569 sprintf " abstract_type_%s_ref_map" (name_of_ty l)
570570 else
571571 sprintf " abstract_type_%s_string_map" (name_of_ty l)
572- | Map ((Enum(_ ,_ , _ ) as l ), r ) -> (mapname l r) ^ " _abstract_type_"
573- | Map (l , (Enum(_ ,_ , _ ) as r )) -> (mapname l r) ^ " _abstract_type_"
572+ | Map ((Enum(_ ,_ ) as l ), r ) -> (mapname l r) ^ " _abstract_type_"
573+ | Map (l , (Enum(_ ,_ ) as r )) -> (mapname l r) ^ " _abstract_type_"
574574 | Map (l , r ) -> sprintf " abstract_type_" ^ (mapname l r)
575575
576576 | Record n -> sprintf " %s_abstract_type_" (record_typename n)
923923
924924 begin
925925 match l, r with
926- (Enum(_ ,_ , _ ), _ ) -> gen_enum_map_abstract_type print name l r
927- | (_ , Enum(_ ,_ , _ )) -> gen_enum_map_abstract_type print name l r
926+ (Enum(_ , _ ), _ ) -> gen_enum_map_abstract_type print name l r
927+ | (_ , Enum(_ , _ )) -> gen_enum_map_abstract_type print name l r
928928 | _ -> ()
929929 end
930930
@@ -968,7 +968,7 @@ extern const abstract_type %s_abstract_type_;
968968
969969
970970and hash_include_enum = function
971- Enum (x ,_ , _ ) ->
971+ Enum (x , _ ) ->
972972 " \n " ^ hash_include x
973973 | _ ->
974974 " "
@@ -1220,13 +1220,13 @@ and find_needed'' needed = function
12201220 | Float
12211221 | Bool
12221222 | DateTime -> ()
1223- | Enum (n , _ , _ ) ->
1223+ | Enum (n , _ ) ->
12241224 needed := StringSet. add (n ^ " _internal" ) ! needed
12251225 | Ref n ->
12261226 needed := StringSet. add n ! needed
12271227 | Set (Ref n ) ->
12281228 needed := StringSet. add n ! needed
1229- | Set (Enum (e , _ , _ )) ->
1229+ | Set (Enum (e , _ )) ->
12301230 needed := StringSet. add e ! needed;
12311231 needed := StringSet. add (e ^ " _internal" ) ! needed
12321232 | Set (Record "event" ) ->
@@ -1251,10 +1251,10 @@ and free_impl val_name record = function
12511251 | Float
12521252 | Bool
12531253 | DateTime
1254- | Enum (_ , _ , _ ) -> " "
1254+ | Enum (_ , _ ) -> " "
12551255 | Ref n -> sprintf " %s_free(%s);" (if record then record_opt_typename n else typename n) val_name
12561256 | Set (Ref n ) -> sprintf " %s_opt_set_free(%s);" (record_typename n) val_name
1257- | Set (Enum (e ,_ , _ )) -> sprintf " %s_set_free(%s);" (typename e) val_name
1257+ | Set (Enum (e , _ )) -> sprintf " %s_set_free(%s);" (typename e) val_name
12581258 | Set (String) -> sprintf " xen_string_set_free(%s);" val_name
12591259 | Map (l , r ) -> let n = mapname l r in
12601260 sprintf " %s_free(%s);" (typename n) val_name
@@ -1264,14 +1264,14 @@ and free_impl val_name record = function
12641264
12651265
12661266and add_enum_internal needed = function
1267- | Enum (x ,_ , _ ) -> StringSet. add (x ^ " _internal" ) needed
1268- | _ -> needed
1267+ | Enum (x , _ ) -> StringSet. add (x ^ " _internal" ) needed
1268+ | _ -> needed
12691269
12701270
12711271and add_enum_map_internal needed l r =
12721272 match (l, r) with
1273- (Enum(_ ,_ , _ ), _ ) -> StringSet. add ((mapname l r) ^ " _internal" ) needed
1274- | (_ , Enum(_ ,_ , _ )) -> StringSet. add ((mapname l r) ^ " _internal" ) needed
1273+ (Enum(_ , _ ), _ ) -> StringSet. add ((mapname l r) ^ " _internal" ) needed
1274+ | (_ , Enum(_ , _ )) -> StringSet. add ((mapname l r) ^ " _internal" ) needed
12751275 | _ -> needed
12761276
12771277
@@ -1288,7 +1288,7 @@ and c_type_of_ty needed record = function
12881288 sprintf " struct %s *" (record_opt_typename name)
12891289 else
12901290 sprintf " %s " (typename name)
1291- | Enum (name , _ , cs ) as x ->
1291+ | Enum (name , cs ) as x ->
12921292 needed := StringSet. add name ! needed;
12931293 enums := TypeSet. add x ! enums;
12941294 c_type_of_enum name
@@ -1298,7 +1298,7 @@ and c_type_of_ty needed record = function
12981298 sprintf " struct %s_set *" (record_opt_typename name)
12991299 else
13001300 sprintf " struct %s_set *" (typename name)
1301- | Set (Enum (e ,_ , _ ) as x ) ->
1301+ | Set (Enum (e , _ ) as x ) ->
13021302 let enum_typename = typename e in
13031303 needed := StringSet. add e ! needed;
13041304 enums := TypeSet. add x ! enums;
@@ -1317,8 +1317,8 @@ and c_type_of_ty needed record = function
13171317 maps := TypeSet. add x ! maps;
13181318 begin
13191319 match (l, r) with
1320- (Enum(_ ,_ , _ ), _ ) -> enum_maps := TypeSet. add x ! enum_maps
1321- | (_ , Enum(_ ,_ , _ )) -> enum_maps := TypeSet. add x ! enum_maps
1320+ (Enum(_ , _ ), _ ) -> enum_maps := TypeSet. add x ! enum_maps
1321+ | (_ , Enum(_ , _ )) -> enum_maps := TypeSet. add x ! enum_maps
13221322 | _ -> ()
13231323 end ;
13241324 sprintf " %s *" (typename n)
@@ -1351,7 +1351,7 @@ and name_of_ty = function
13511351 | Float -> " float"
13521352 | Bool -> " bool"
13531353 | DateTime -> " datetime"
1354- | Enum (x ,_ , _ ) -> x
1354+ | Enum (x , _ ) -> x
13551355 | Set (x ) -> sprintf " %s_set" (name_of_ty x)
13561356 | Ref (x ) -> x
13571357 | Map (l ,r ) -> sprintf " %s_%s_map" (name_of_ty l) (name_of_ty r)
0 commit comments