diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-30 18:19:58 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-01-30 18:19:58 (GMT) |
commit | 6dda0c976f18ce7d8890a3aeca1a5ac0cb47428f (patch) | |
tree | a4df2797bf6534fd0d356ea6146aa68e2432cb02 /Source/cmakewizard.cxx | |
parent | 6c4375309c2a0c5b9c0a3067b6fd59b9806bbfd1 (diff) | |
download | CMake-6dda0c976f18ce7d8890a3aeca1a5ac0cb47428f.zip CMake-6dda0c976f18ce7d8890a3aeca1a5ac0cb47428f.tar.gz CMake-6dda0c976f18ce7d8890a3aeca1a5ac0cb47428f.tar.bz2 |
BUG: can not mix cout and fgets on hp
Diffstat (limited to 'Source/cmakewizard.cxx')
-rw-r--r-- | Source/cmakewizard.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx index 27e6530..57145a0 100644 --- a/Source/cmakewizard.cxx +++ b/Source/cmakewizard.cxx @@ -31,11 +31,11 @@ cmakewizard::cmakewizard() void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter) { - std::cout << "Variable Name: " << key << "\n"; + printf("Variable Name: %s\n", key); const char* helpstring = iter.GetProperty("HELPSTRING"); - std::cout << "Description: " << (helpstring?helpstring:"(none)") << "\n"; - std::cout << "Current Value: " << iter.GetValue() << "\n"; - std::cout << "New Value (Enter to keep current value): "; + printf("Description: %s\n", (helpstring?helpstring:"(none)")); + printf("Current Value: %s\n", iter.GetValue()); + printf("New Value (Enter to keep current value): "); char buffer[4096]; buffer[0] = 0; fgets(buffer, sizeof(buffer)-1, stdin); @@ -67,12 +67,12 @@ void cmakewizard::AskUser(const char* key, cmCacheManager::CacheIterator& iter) iter.SetValue(value.c_str()); } } - std::cout << "\n"; + printf("\n"); } bool cmakewizard::AskAdvanced() { - std::cout << "Would you like to see advanced options? [No]:"; + printf("Would you like to see advanced options? [No]:"); char buffer[4096]; buffer[0] = 0; fgets(buffer, sizeof(buffer)-1, stdin); @@ -89,7 +89,7 @@ bool cmakewizard::AskAdvanced() void cmakewizard::ShowMessage(const char* m) { - std::cout << m << "\n"; + printf("%s\n", m); } |