src/Pure/ML-Systems/polyml.ML
changeset 16502 5a56e59526a5
parent 16453 af3afdbd09ea
child 16516 0842635545c3
equal deleted inserted replaced
16501:fec0cf020bad 16502:5a56e59526a5
    17   let val n = size ml_platform
    17   let val n = size ml_platform
    18   in n >= 6 andalso String.substring (ml_platform, n - 6, 6) = "cygwin" end;
    18   in n >= 6 andalso String.substring (ml_platform, n - 6, 6) = "cygwin" end;
    19 
    19 
    20 fun if_cygwin f x = if cygwin_platform then f x else ();
    20 fun if_cygwin f x = if cygwin_platform then f x else ();
    21 fun unless_cygwin f x = if not cygwin_platform then f x else ();
    21 fun unless_cygwin f x = if not cygwin_platform then f x else ();
       
    22 
       
    23 
       
    24 (* low-level pointer equality *)
       
    25 
       
    26 fun pointer_eq (x:''a, y) = Address.wordEq (x, y);
    22 
    27 
    23 
    28 
    24 (* old Poly/ML emulation *)
    29 (* old Poly/ML emulation *)
    25 
    30 
    26 local
    31 local