From b852ba8ae186c776d03a44e4a63179a633aaeb52 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 11 Dec 2002 14:33:22 +0000 Subject: add option "-t" enabling titi to precise tab-width=4 fix a bug in getting exported functions (fixes "unknown function gtkshow") --- perl_checker.src/common.ml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'perl_checker.src/common.ml') 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 -- cgit v1.2.1