diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:58:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-10-14 04:58:40 +0000 |
commit | b5c54309bae69c9c0c8fd02245a79b2da468464e (patch) | |
tree | a8776ae4fe5d57bc58d1a4c92744f3a1915746c5 /perl_checker.src/info.ml | |
parent | 0bb82649ff6ce4a7c7cde745c51a5e3ea61c5b2f (diff) | |
download | perl_checker-b5c54309bae69c9c0c8fd02245a79b2da468464e.tar perl_checker-b5c54309bae69c9c0c8fd02245a79b2da468464e.tar.gz perl_checker-b5c54309bae69c9c0c8fd02245a79b2da468464e.tar.bz2 perl_checker-b5c54309bae69c9c0c8fd02245a79b2da468464e.tar.xz perl_checker-b5c54309bae69c9c0c8fd02245a79b2da468464e.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.ml | 4 |
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) |