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
This commit is contained in:
Benjamin Kosnik 2003-06-23 20:31:31 +00:00
parent 032cb60206
commit c89c30ddb2
3 changed files with 25 additions and 9 deletions

View 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 * include/bits/boost_concept_check.h: Don't use _D or _R for type
names. names.

View 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 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

View File

@ -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);