This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Status of HP/SGI extensions


Phil Edwards wrote:

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

Great! Thanks for sharing this!

> I'm in the middle of bootstrapping powerpc,
> but after that's finished I'll move the distance() calls and bootstrap again.

Phil, as soon as you are ready with this, please inform me.

I have just committed the changes affecting the existing include/ext (in particular
stl_hashtable.h, which still uses distance(*,*,*))

As soon as you are done with your part of the work I can start moving distance(*,*,*)
to __gnu_cxx and update everything in the light of this.

Thanks,
Paolo.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]