From e0bfd8dc8b4063f757b7f3858d7c1efeadc17561 Mon Sep 17 00:00:00 2001 From: schaerer Date: Tue, 4 May 2010 21:29:08 +0000 Subject: [PATCH] DDS: print standard containers --- .vimrc | 8 +++++++- common/clitkCommon.h | 4 ++++ fast_make.sh | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index ac7032f..45604d2 100644 --- a/.vimrc +++ b/.vimrc @@ -1,4 +1,10 @@ "clitk related standards " -set makeprg=/home/jschaerer/workspace/cvs/clitk3/fast_make.sh +set shiftwidth=2 +set cindent +"set cino={.5s,e-.5s,^-.5s +set expandtab +set softtabstop=2 + +set makeprg=/home/joel/workspace/cvs/clitk3/fast_make.sh set grepprg=clgrep diff --git a/common/clitkCommon.h b/common/clitkCommon.h index 4087259..3f6e72d 100644 --- a/common/clitkCommon.h +++ b/common/clitkCommon.h @@ -40,6 +40,10 @@ namespace clitk { // display #define DD(a) std::cout << #a " = [ " << a << " ]" << std::endl; #define DDV(a,n) { std::cout << #a " = [ "; for(unsigned int _i_=0; _i_ +void _print_container(T const& a) + { for(typename T::const_iterator i=a.begin();i!=a.end();++i) { std::cout << *i << " "; };} +#define DDS(a) { std::cout << #a " = [ "; _print_container(a) ; std::cout << " ]" << std::endl;} //-------------------------------------------------------------------- // when everything goes wrong diff --git a/fast_make.sh b/fast_make.sh index bd57b85..38d94a1 100755 --- a/fast_make.sh +++ b/fast_make.sh @@ -27,7 +27,7 @@ then sleep 1 make -j${cpus} else #use all the available computing power by default - cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 2 )) + cpus=$(( $(cat /proc/cpuinfo | grep -c ^processor) + 0 )) echo "Building with ${cpus} cpus..." fi -- 2.47.1