[Compbench-devel] CompBenchmarks++/libcompbenchmarks/Plan Plan.cpp, 1.7, 1.8
Brought to you by:
xfred
From: Frederic T. <xf...@us...> - 2007-02-19 18:42:56
|
Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Plan In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv23630 Modified Files: Plan.cpp Log Message: Exits if an invalid compiler is given to add(CBM::Compiler*). Index: Plan.cpp =================================================================== RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/Plan/Plan.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Plan.cpp 15 Feb 2007 18:59:19 -0000 1.7 --- Plan.cpp 19 Feb 2007 18:42:51 -0000 1.8 *************** *** 132,136 **** int Plan::add(CBM::Compiler *_compiler) { ! if (!isUnique(_compiler)) { return(0); } --- 132,136 ---- int Plan::add(CBM::Compiler *_compiler) { ! if ((!_compiler) || (!isUnique(_compiler))) { return(0); } *************** *** 155,159 **** int Plan::add(CBM::Benchmark *_benchmark) { ! if (!isUnique(_benchmark)) { return(0); } --- 155,159 ---- int Plan::add(CBM::Benchmark *_benchmark) { ! if ((!_benchmark) || (!isUnique(_benchmark))) { return(0); } |