|
Boost-Commit : |
From: steven_at_[hidden]
Date: 2008-05-26 22:28:10
Author: steven_watanabe
Date: 2008-05-26 22:28:09 EDT (Mon, 26 May 2008)
New Revision: 45806
URL: http://svn.boost.org/trac/boost/changeset/45806
Log:
Fixed copyright/licence
Text files modified:
sandbox/units/libs/units/example/runtime_unit.cpp | 3 ++-
sandbox/units/libs/units/example/runtime_unit_input.txt | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletions(-)
Modified: sandbox/units/libs/units/example/runtime_unit.cpp
==============================================================================
--- sandbox/units/libs/units/example/runtime_unit.cpp (original)
+++ sandbox/units/libs/units/example/runtime_unit.cpp 2008-05-26 22:28:09 EDT (Mon, 26 May 2008)
@@ -39,7 +39,8 @@
std::string output_type("meter");
std::string input;
while((std::cout << ">") && (std::cin >> input)) {
- if(input == "exit") break;
+ if(!input.empty() && input[0] == '#') std::getline(std::cin, input);
+ else if(input == "exit") break;
else if(input == "help") {
std::cout << "type \"exit\" to exit\n"
"type \"return 'unit'\" to set the return units\n"
Modified: sandbox/units/libs/units/example/runtime_unit_input.txt
==============================================================================
--- sandbox/units/libs/units/example/runtime_unit_input.txt (original)
+++ sandbox/units/libs/units/example/runtime_unit_input.txt 2008-05-26 22:28:09 EDT (Mon, 26 May 2008)
@@ -1,3 +1,11 @@
+# runtime_unit_input.txt
+#
+# Copyright (c) 2007-2008 Steven Watanabe
+#
+# Distributed under the Boost Software License, Version 1.0. (See
+# accompanying file LICENSE_1_0.txt or copy at
+# http://www.boost.org/LICENSE_1_0.txt)
+
return foot
2.0 centimeter
return centimeter
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk