Re: Fix some tests to be g++ >= 2.95 safe

2000-03-07 Thread Jim Meyering
Paul Eggert <[EMAIL PROTECTED]> writes: |From: Akim Demaille <[EMAIL PROTECTED]> |Date: 06 Mar 2000 10:07:37 +0100 ... |#if HAVE_STDLIB_H |# include |#else |char *malloc (); |#endif | |or maybe shall we check that malloc is declared? | | I wouldn't worry about that

Re: Fix some tests to be g++ >= 2.95 safe

2000-03-07 Thread Akim Demaille
| Am Mon, 06 Mar 2000 schrieb Akim Demaille: | >| OK, how about this one? | > | >Sorry, I don't mean to be pain, but I still have some comments :) Do | >the other people consider I am being painful? (Real question) | | A real pein :-). :) | >Still, my comment would be that | > | >| #ifdef __c

Re: Autoconf --trace

2000-03-07 Thread Akim Demaille
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes: >> I have implemented support for $.@, which is [$1].[$2]. etc. (`.' >> is the separator, defaults to comma), and for $.*, which is >> smash($1).smash($2). etc., where `.' defaults to `:', and `smash' >> singles out all the white sp

Re: #if vs. #ifdef

2000-03-07 Thread Akim Demaille
> "Glenn" == Glenn Chambers <[EMAIL PROTECTED]> writes: Glenn> Akim Demaille writes: >> #ifdef and #ifndef are banished from Autoconf, use only #if and#if >> !. Glenn> Interesting trivium: unless I mis-remember, the variant of the Glenn> C compiler used on Bell Lab's "Plan 9" operating syst

Re: Autoconf --trace

2000-03-07 Thread Lars J. Aas
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote: : In fact, can someone teach me (point me to a good example) how to : split strings such as : : list="'first element' 'second' 'third one'" : for elt in $list I managed to make this work: eval set $list while test $# -gt 0; do ech

Re: Autoconf --trace

2000-03-07 Thread Russ Allbery
Akim Demaille <[EMAIL PROTECTED]> writes: > I was also thinking of something like ${}@ and the like, this would > allow to use something way simpler than balanced [ ] to parse these > guys. I guess one can split() in Perl with a separator such as `:'? Yup. -- Russ Allbery ([EMAIL PROT

Re: Autoconf --trace

2000-03-07 Thread Lars J. Aas
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote: : In fact, can someone teach me (point me to a good example) how to : split strings such as : : list="'first element' 'second' 'third one'" : for elt in $list This too: eval "for elt in $list; do echo \"\$elt\"; done" Lars J

Re: Autoconf --trace

2000-03-07 Thread Akim Demaille
| On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote: | : In fact, can someone teach me (point me to a good example) how to | : split strings such as | : | : list="'first element' 'second' 'third one'" | : for elt in $list | | I managed to make this work: | | eval set $list | while

Re: DOS paths v2

2000-03-07 Thread Akim Demaille
Could you send a patch for this one too? Akim