[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: use C++ io in tagdemo tests

From: Robert Boehne
Subject: PATCH: use C++ io in tagdemo tests
Date: Mon, 01 Apr 2002 12:43:40 -0600

Although it may seem trivial, it really isn't.  On many
platforms the tagdemo test will pass, even when straight-up
'ld' is used to link.  That is because the tagdemo doesn't
happen to reference anything (in such a case) in the C++ runtime.
This trivial patch changes <stdio.h> printf to <iostream.h> cout <<.
I picked iostream.h rather than iostream because it is more
common with older compilers, and new ones generally support
it as well.  If I find that someone has a compiler with
only <iostream> and no <iostream.h> then I can add a configure
test for both.  The problem with doing that now is that
it cascades into testing for namespace usage, std:: namespace
usage in IO classes... etc.

Ok to commit?


Robert Boehne             Software Engineer
Ricardo Software   Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email:  address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]