libstdc++-assign.txt: Update address.
authorBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 23 Jun 2003 20:31:31 +0000 (20:31 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 23 Jun 2003 20:31:31 +0000 (20:31 +0000)
2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>

* docs/html/17_intro/libstdc++-assign.txt: Update address.

* testsuite/performance/ifstream_getline.cc: Fix.

From-SVN: r68382

libstdc++-v3/ChangeLog
libstdc++-v3/docs/html/17_intro/libstdc++-assign.txt
libstdc++-v3/testsuite/performance/ifstream_getline.cc

index f2159855257637cdf34bc90a381752fb942fbdfd..39ed3b3b7e910cef18d839ba1b413c1c6c0f1e6d 100644 (file)
@@ -1,4 +1,10 @@
-2003-06-20  Doug Gregor <dgregor@apple.com>
+2003-06-23  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * docs/html/17_intro/libstdc++-assign.txt: Update address.
+
+       * testsuite/performance/ifstream_getline.cc: Fix.
+       
+2003-06-23  Doug Gregor <dgregor@apple.com>
 
         * include/bits/boost_concept_check.h: Don't use _D or _R for type 
         names.
index b70be688bcae63bd45fc29e2d3447b72d179e490..c9e8ee2b0a2100aca6d4e9b085a1b60a1510a646 100644 (file)
@@ -41,10 +41,10 @@ open Pandora's box and cause a long and unnecessary delay.
 Below is the assignment contract that we usually use.  You need
 to print it out, sign it, and snail it to:
 
-Richard Stallman 
-545 Tech Sq rm 425 
-Cambridge, MA 02139 
-USA 
+Copyright Clerk
+c/o Free Software Foundation 
+59 Temple Place - Suite 330 
+Boston, MA  02111-1307,  USA 
 
 Please try to print the whole first page below on a single piece of
 paper.  If it doesn't fit on one printed page, put it on two sides of
index e7b06f3ec4cc88c50995d1ccaef1603b5da6aaf0..b7ca99760785ba03f4f74ab2fcfddd1fb4515632 100644 (file)
@@ -37,13 +37,23 @@ int main ()
   time_counter time;
   resource_counter resource;
 
-  const char* name = "/usr/share/dict/linux.words";
+  const char* name1 = "/usr/share/dict/words";
+  const char* name2 = "/usr/share/dict/linux.words";
+  ifstream in;
+  in.open(name1);
+  if (!in.is_open())
+    {
+      in.clear();
+      in.open(name2);
+    }
 
-  ifstream in(name);
   char buffer[BUFSIZ];
   start_counters(time, resource);
-  while(!in.eof()) 
-    in.getline(buffer, BUFSIZ);
+  if (in.is_open())
+    {
+      while (in.good()) 
+       in.getline(buffer, BUFSIZ);
+    }
   stop_counters(time, resource);
   report_performance(__FILE__, "", time, resource);