diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-03-27 17:24:30 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-03-27 17:24:30 (GMT) |
commit | a9875aa62f41ed13b54ea9f92c65ade9f0df6845 (patch) | |
tree | eac19ea62e63cd53b73a29144ed997e6e683ee63 /Source/cmSystemTools.h | |
parent | b133b832fdcb50bc7bb9dc4bfb0631bb9aa6989e (diff) | |
download | CMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.zip CMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.tar.gz CMake-a9875aa62f41ed13b54ea9f92c65ade9f0df6845.tar.bz2 |
Implement GetLineFromStream that actually works and use it instead of getline
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r-- | Source/cmSystemTools.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h index a66d792..24ac737 100644 --- a/Source/cmSystemTools.h +++ b/Source/cmSystemTools.h @@ -377,6 +377,15 @@ public: * DART. */ static void EnableMSVCDebugHook(); + + /** + * Read line from file. Make sure to get everything. Due to a buggy stream + * library on the HP and another on Mac OSX, we need this very carefully + * written version of getline. Returns true if any data were read before the + * end-of-file was reached. + */ + static bool GetLineFromStream(std::istream& istr, std::string& line); + protected: // these two functions can be called from ConvertToOutputPath /** |