summaryrefslogtreecommitdiff
path: root/tools/ocamldep.ml
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2002-11-01 17:06:47 +0000
committerDamien Doligez <damien.doligez-inria.fr>2002-11-01 17:06:47 +0000
commited3123ee870f0362a576a88e0c7cf266581ee1b4 (patch)
treecf48c20af4544b2be26740666dffbc1ed4b6e380 /tools/ocamldep.ml
parent24b167171c95abd67eb787ea2cd5aff655ba4574 (diff)
downloadocaml-ed3123ee870f0362a576a88e0c7cf266581ee1b4.tar.gz
changement des locations, premiere tranche
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5224 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'tools/ocamldep.ml')
-rw-r--r--tools/ocamldep.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/ocamldep.ml b/tools/ocamldep.ml
index 485b682ad8..41fcc4f231 100644
--- a/tools/ocamldep.ml
+++ b/tools/ocamldep.ml
@@ -176,10 +176,9 @@ let file_dependencies source_file =
raise x
with x ->
let report_err = function
- | Lexer.Error(err, start, stop) ->
+ | Lexer.Error(err, range) ->
fprintf Format.err_formatter "@[%a%a@]@."
- Location.print {loc_start = start; loc_end = stop; loc_ghost = false}
- Lexer.report_error err
+ Location.print range Lexer.report_error err
| Syntaxerr.Error err ->
fprintf Format.err_formatter "@[%a@]@."
Syntaxerr.report_error err