Commit c89c30dd by Benjamin Kosnik

libstdc++-assign.txt: Update address.


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
parent 032cb602
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 * include/bits/boost_concept_check.h: Don't use _D or _R for type
names. names.
......
...@@ -41,10 +41,10 @@ open Pandora's box and cause a long and unnecessary delay. ...@@ -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 Below is the assignment contract that we usually use. You need
to print it out, sign it, and snail it to: to print it out, sign it, and snail it to:
Richard Stallman Copyright Clerk
545 Tech Sq rm 425 c/o Free Software Foundation
Cambridge, MA 02139 59 Temple Place - Suite 330
USA Boston, MA 02111-1307, USA
Please try to print the whole first page below on a single piece of 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 paper. If it doesn't fit on one printed page, put it on two sides of
......
...@@ -37,13 +37,23 @@ int main () ...@@ -37,13 +37,23 @@ int main ()
time_counter time; time_counter time;
resource_counter resource; 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]; char buffer[BUFSIZ];
start_counters(time, resource); start_counters(time, resource);
while(!in.eof()) if (in.is_open())
{
while (in.good())
in.getline(buffer, BUFSIZ); in.getline(buffer, BUFSIZ);
}
stop_counters(time, resource); stop_counters(time, resource);
report_performance(__FILE__, "", time, resource); report_performance(__FILE__, "", time, resource);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment