Useful debug printing function.

This commit is contained in:
Léonard Gérard 2010-09-13 01:17:31 +02:00
parent aa3923cb56
commit b5f6593e18

View file

@ -69,6 +69,9 @@ let print_name ff n =
else n
in fprintf ff "%s" n
let print_raw_qualname ff {qual = q; name = n} =
fprintf ff "%s.%a" q print_name n
let opname qn = match qn with
| { qual = "Pervasives"; name = m; } -> m
| { qual = qual; name = n; } -> qual ^ "." ^ n