equal
deleted
inserted
replaced
250 |
250 |
251 fun provide path name info (deps as SOME {present, outdated, master, files}) = |
251 fun provide path name info (deps as SOME {present, outdated, master, files}) = |
252 (if exists (equal path o #1) files then () |
252 (if exists (equal path o #1) files then () |
253 else warning (loader_msg "undeclared dependency of theory" [name] ^ |
253 else warning (loader_msg "undeclared dependency of theory" [name] ^ |
254 " on file: " ^ quote (Path.pack path)); |
254 " on file: " ^ quote (Path.pack path)); |
255 SOME (make_deps present outdated master (overwrite (files, (path, SOME info))))) |
255 SOME (make_deps present outdated master (AList.update (op =) (path, SOME info) files))) |
256 | provide _ _ _ NONE = NONE; |
256 | provide _ _ _ NONE = NONE; |
257 |
257 |
258 fun run_file path = |
258 fun run_file path = |
259 (case Option.map Context.theory_name (Context.get_context ()) of |
259 (case Option.map Context.theory_name (Context.get_context ()) of |
260 NONE => (ThyLoad.load_file NONE path; ()) |
260 NONE => (ThyLoad.load_file NONE path; ()) |