Skip to content

Commit

Permalink
don't sort enum fields (unless fakeEnum)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Jun 6, 2012
1 parent 8ec38d4 commit bdc6ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genxml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ let generate_type com t =
| TFun (args,_) -> p "(%s)" (String.concat ", " (List.map sparam (List.map (fun (a,o,t) -> a,(if o then Some (Ident "null") else None),t) args)))
| _ -> ());
p ";\n";
) (sort e.e_names);
) (if has_meta ":fakeEnum" e.e_meta then sort e.e_names else e.e_names);
p "}\n"
| TTypeDecl t ->
print_meta t.t_meta;
Expand Down

0 comments on commit bdc6ee8

Please sign in to comment.