summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/info.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-10-14 04:58:40 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-10-14 04:58:40 +0000
commit239f07fc8c33f6ebfcf5729b97f9db8b8b55e348 (patch)
tree5d5633f3622b6111c481069daab8a3106aabb1be /perl_checker.src/info.ml
parentc3d34cd45e183015689139ec167275ed0e8e195a (diff)
downloadperl-MDK-Common-239f07fc8c33f6ebfcf5729b97f9db8b8b55e348.tar
perl-MDK-Common-239f07fc8c33f6ebfcf5729b97f9db8b8b55e348.tar.gz
perl-MDK-Common-239f07fc8c33f6ebfcf5729b97f9db8b8b55e348.tar.bz2
perl-MDK-Common-239f07fc8c33f6ebfcf5729b97f9db8b8b55e348.tar.xz
perl-MDK-Common-239f07fc8c33f6ebfcf5729b97f9db8b8b55e348.zip
- add char_quote (to help emacs caml mode)
- change prototype of str_begins_with
Diffstat (limited to 'perl_checker.src/info.ml')
-rw-r--r--perl_checker.src/info.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl_checker.src/info.ml b/perl_checker.src/info.ml
index d5a1ce8..ab76b9f 100644
--- a/perl_checker.src/info.ml
+++ b/perl_checker.src/info.ml
@@ -35,9 +35,9 @@ let absolute_file_to_file =
let s3 = Filename.dirname s2 in (* allow up to ../../../xxx *)
if String.length s3 < 4 then s2 else s3 in
memoize (fun abs_file ->
- if str_begins_with abs_file (short_cwd ^ "/") then
+ if str_begins_with (short_cwd ^ "/") abs_file then
let rec to_file rel cwd =
- if str_begins_with abs_file (cwd ^ "/") then
+ if str_begins_with (cwd ^ "/") abs_file then
rel ^ skip_n_char_ (String.length cwd + 1) 0 abs_file
else
to_file ("../" ^ rel) (Filename.dirname cwd)