Commits

doligez  committed 7032469

Revert one change of commit 12769 that (inadvertently?) breaks ocamlnet 3.5.1
by triggering a syntax error on toplevel directives inside .ml files.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12847f963ae5c-01c2-4b8c-9fe0-0dff7051ff02

  • Participants
  • Parent commits f2a33f2

Comments (0)

Files changed (1)

File tools/ocamldep.ml

     Depend.StringSet.empty
 
 let ml_file_dependencies source_file =
-  let extracted_deps = read_parse_and_extract
-      Parse.implementation Depend.add_implementation Config.ast_impl_magic_number source_file
+  let extracted_deps =
+    read_parse_and_extract Parse.use_file Depend.add_use_file
+                           Config.ast_impl_magic_number source_file
   in
   if !sort_files then
     files := (source_file, ML, !Depend.free_structure_names) :: !files