Correct order for indices in array declaration

In C, the order in the declaration of variables
is the same as for access
This commit is contained in:
Cédric Pasteur 2011-05-24 11:02:51 +02:00
parent aea82e79b0
commit 96054a67b6

View file

@ -182,7 +182,7 @@ let rec pp_array_decl cty =
match cty with
| Cty_arr(n, cty') ->
let ty, s = pp_array_decl cty' in
ty, sprintf "%s[%d]" s n
ty, sprintf "[%d]%s" n s
| _ -> cty, ""
let rec pp_param_cty fmt = function