This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFA] Status of HP/SGI extensions
On Mon, Dec 31, 2001 at 10:52:54AM +0100, Paolo Carlini wrote:
> Phil Edwards wrote:
>
> > On Mon, Dec 31, 2001 at 10:44:00AM +0100, Paolo Carlini wrote:
> > > 1- Change all those occurrences to a standard 2-parameter version and move to
> > > __gnu_cxx both the 3-parameter extension and its helpers.
> >
> > I vote for this one. The 3-parameter version shouldn't exist anywhere
> > outside ext.
>
> I agree with you. But this is quite a bit of work. Are you willing to take care of
> it?
Behold the power of sed(1) expressions inside vi(1):
:%s/distance(\(.*\),\(.*\),\(.*\));/\3 = distance(\1,\2);/cg
changes all instances of
distance(x,y,z);
into
z = distance(x,y);
requiring conformation for each change, and preserving spaces between
arguments and so forth. I'm in the middle of bootstrapping powerpc,
but after that's finished I'll move the distance() calls and bootstrap again.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams