/[svn]/types/types.ml
ViewVC logotype

Diff of /types/types.ml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 15 by abate, Tue Jul 10 16:57:55 2007 UTC revision 16 by abate, Tue Jul 10 16:58:05 2007 UTC
# Line 561  Line 561 
561        struct        struct
562          type t = descr          type t = descr
563          let hash = hash_descr          let hash = hash_descr
564          let equal = (=)          let equal = equal_descr
565        end        end
566      )      )
567    
# Line 614  Line 614 
614        let name = DescrHash.find named d in        let name = DescrHash.find named d in
615        Format.fprintf ppf "%s" name        Format.fprintf ppf "%s" name
616      with Not_found ->      with Not_found ->
617          try
618        match !(DescrHash.find marks d) with        match !(DescrHash.find marks d) with
619          | Some n -> Format.fprintf ppf "%s" n          | Some n -> Format.fprintf ppf "%s" n
620          | None -> real_print_descr ppf d          | None -> real_print_descr ppf d
621          with
622              Not_found -> Format.fprintf ppf "XXX"
623    and real_print_descr ppf d =    and real_print_descr ppf d =
624      if d = any then Format.fprintf ppf "Any" else      if d = any then Format.fprintf ppf "Any" else
625        print_union ppf        print_union ppf
# Line 741  Line 744 
744  end  end
745    
746    
747    module Int = struct
748      let get d = d.ints
749      let put i = { empty with ints = i }
750      let is_int d = is_empty { d with ints = Intervals.empty }
751      let any = { empty with ints = Intervals.any }
752    end
753    
754  (*  (*
755  let rec print_normal_record ppf = function  let rec print_normal_record ppf = function

Legend:
Removed from v.15  
changed lines
  Added in v.16

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5