summaryrefslogtreecommitdiffstats
path: root/perl_checker.src/common.ml
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-12-06 16:39:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-12-06 16:39:02 +0000
commit5bd2da47ac473de96fd6c24a9cebe1370ebb949e (patch)
tree69ad93f43f4dc07312dc670cdd2b2245e1f5c913 /perl_checker.src/common.ml
parent71ede0125f384c9e243a8f76b59ab06149e25867 (diff)
downloadperl-MDK-Common-5bd2da47ac473de96fd6c24a9cebe1370ebb949e.tar
perl-MDK-Common-5bd2da47ac473de96fd6c24a9cebe1370ebb949e.tar.gz
perl-MDK-Common-5bd2da47ac473de96fd6c24a9cebe1370ebb949e.tar.bz2
perl-MDK-Common-5bd2da47ac473de96fd6c24a9cebe1370ebb949e.tar.xz
perl-MDK-Common-5bd2da47ac473de96fd6c24a9cebe1370ebb949e.zip
- perl_checker: print on stdout, not stderr
- perl_checker: add option --restrict-to-files (mainly for perl_checko the Clean Keeper)
Diffstat (limited to 'perl_checker.src/common.ml')
-rw-r--r--perl_checker.src/common.ml3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl_checker.src/common.ml b/perl_checker.src/common.ml
index 19aaa5f..a938ffb 100644
--- a/perl_checker.src/common.ml
+++ b/perl_checker.src/common.ml
@@ -780,6 +780,9 @@ let to_CamelCase s_ =
let (string_of_ref : 'a ref -> string) = fun r ->
Printf.sprintf "0x%x" (Obj.magic r : int)
+let print_endline_flush_quiet = ref false
+let print_endline_flush s = if not !print_endline_flush_quiet then (print_endline s ; flush stdout)
+
let is_int n = n = floor n
(* total order *)