let dump_pt magic fname pt oc = (output_string oc magic; output_value oc (if fname = "-" then "" else fname); output_value oc pt)