bug-gnulib
[Top][All Lists]
Advanced

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

Re: HAVE_RELIABLE_FIONREAD & ioctl


From: Bruno Haible
Subject: Re: HAVE_RELIABLE_FIONREAD & ioctl
Date: Fri, 22 Jul 2011 02:08:31 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

Sam Steingold wrote:
> > +extern
> > +# ifdef __cplusplus
> > +"C"
> > +# endif
> > +DIR *fdopendir (int);
> 
> that's pretty awful.
> maybe there is a way to use the m4 magic to avoid replacing 1 line with 5?

Maybe. But the number of lines of a test program is not important to me;
it is much more important that the test program can be copy&pasted into
a .c file easily, for debugging. Therefore I'm against m4 macrology inside
test programs. (GL_NOCRASH is an exception: it can easily be omitted from
test programs.)

Bruno
-- 
In memoriam Ludwig Beck <http://en.wikipedia.org/wiki/Ludwig_Beck>



reply via email to

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