[Cmake-commits] [cmake-commits] king committed cmProcessTools.h 1.2 1.3
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Jul 10 11:07:31 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv10222/Source
Modified Files:
cmProcessTools.h
Log Message:
ENH: New OutputParser::Process() signature
This overload accepts a null-terminated string instead of requiring a
length. It is useful to pass some fake process output before and after
the real process output.
Index: cmProcessTools.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmProcessTools.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** cmProcessTools.h 24 Feb 2009 16:08:38 -0000 1.2
--- cmProcessTools.h 10 Jul 2009 15:07:27 -0000 1.3
***************
*** 36,39 ****
--- 36,41 ----
bool Process(const char* data, int length)
{ return this->ProcessChunk(data, length); }
+ bool Process(const char* data)
+ { return this->Process(data, static_cast<int>(strlen(data))); }
virtual ~OutputParser() {}
More information about the Cmake-commits
mailing list