diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-12-11 14:33:22 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-12-11 14:33:22 +0000 |
commit | b852ba8ae186c776d03a44e4a63179a633aaeb52 (patch) | |
tree | 62a7fe7a56ddaaf8e4810c1e06d35955f7be76d9 /perl_checker.src/common.ml | |
parent | 79601cc3e33299a7108ce5aea98147920cc58933 (diff) | |
download | perl_checker-b852ba8ae186c776d03a44e4a63179a633aaeb52.tar perl_checker-b852ba8ae186c776d03a44e4a63179a633aaeb52.tar.gz perl_checker-b852ba8ae186c776d03a44e4a63179a633aaeb52.tar.bz2 perl_checker-b852ba8ae186c776d03a44e4a63179a633aaeb52.tar.xz perl_checker-b852ba8ae186c776d03a44e4a63179a633aaeb52.zip |
add option "-t" enabling titi to precise tab-width=4
fix a bug in getting exported functions (fixes "unknown function gtkshow")
Diffstat (limited to 'perl_checker.src/common.ml')
-rw-r--r-- | perl_checker.src/common.ml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/perl_checker.src/common.ml b/perl_checker.src/common.ml index f84e027..9d21a48 100644 --- a/perl_checker.src/common.ml +++ b/perl_checker.src/common.ml @@ -760,16 +760,16 @@ let split_at2 c1 c2 s = split_at2_ [] 0 0 let words s = - let rec words_ accu i = + let rec words_ accu i s = try let i2 = non_index_from s i ' ' in try let i3 = String.index_from s i2 ' ' in - words_ (String.sub s i2 (i3 - i2) :: accu) (i3+1) + words_ (String.sub s i2 (i3 - i2) :: accu) (i3+1) s with Not_found -> rev (skip_n_char i2 s :: accu) with Invalid_argument _ -> rev accu in - words_ [] 0 + collect (words_ [] 0) (split_at '\n' s) let to_CamelCase s_ = let l = ref [] in |