src/Pure/Thy/thy_info.ML
changeset 60975 5f3d6e16ea78
parent 60937 51425cbe8ce9
child 61381 ddca85598c65
equal deleted inserted replaced
60973:d94f3afd69b6 60975:5f3d6e16ea78
   289   let
   289   let
   290     val path = Path.expand (Path.explode str);
   290     val path = Path.expand (Path.explode str);
   291     val name = Path.implode (Path.base path);
   291     val name = Path.implode (Path.base path);
   292     val node_name = File.full_path dir (Resources.thy_path path);
   292     val node_name = File.full_path dir (Resources.thy_path path);
   293     fun check_entry (Task (node_name', _, _)) =
   293     fun check_entry (Task (node_name', _, _)) =
   294           if node_name = node_name' then ()
   294           if op = (apply2 File.platform_path (node_name, node_name'))
       
   295           then ()
   295           else
   296           else
   296             error ("Incoherent imports for theory " ^ quote name ^
   297             error ("Incoherent imports for theory " ^ quote name ^
   297               Position.here require_pos ^ ":\n" ^
   298               Position.here require_pos ^ ":\n" ^
   298               "  " ^ Path.print node_name ^ "\n" ^
   299               "  " ^ Path.print node_name ^ "\n" ^
   299               "  " ^ Path.print node_name')
   300               "  " ^ Path.print node_name')