autoconf
[Top][All Lists]
Advanced

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

Re: [Bug-gnulib] addition: size_max.m4, ptrdiff_max.m4


From: Paolo Bonzini
Subject: Re: [Bug-gnulib] addition: size_max.m4, ptrdiff_max.m4
Date: Fri, 14 Nov 2003 10:54:57 +0100

> For example, you repeat the following sed on it until it
> doesn't change any more:
>
> [snip]

You can use the t command to avoid looping.

However, while indeed a bit of a hassle, doing arithmetic with sed is not so
hard... You can use 10 commands to sum two numbers:
http://sed.sourceforge.net/grabbag/scripts/add_decs.sed is quite slow, but
there's a 30 command one at
http://sed.sourceforge.net/grabbag/scripts/add_decs-nolt.sed.

If shell functions could be used...  hmmm, now that 2.59 is out it may be
time to revive my shell functions patches... may I just recall the 30%
decrease in the size of configure scripts???

Paolo







reply via email to

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