Skip to content

Commit

Permalink
some more fixes for --gen-hx-headers generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Jan 15, 2014
1 parent a469385 commit 49ec213
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genxml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ let generate_type com t =
| None ->
n ^ " : " ^ stype t
| Some (Ident "null") ->
if is_null t then
if is_nullable (notnull t) then
"?" ^ n ^ " : " ^ stype (notnull t)
else
(* we have not found a default value stored in metadata, let's generate it *)
Expand All @@ -353,7 +353,7 @@ let generate_type com t =
let print_meta ml =
List.iter (fun (m,pl,_) ->
match m with
| Meta.DefParam | Meta.CoreApi | Meta.Used | Meta.MaybeUsed -> ()
| Meta.DefParam | Meta.CoreApi | Meta.Used | Meta.MaybeUsed | Meta.FlatEnum -> ()
| _ ->
match pl with
| [] -> p "@%s " (fst (MetaInfo.to_string m))
Expand Down

0 comments on commit 49ec213

Please sign in to comment.