tech-kern archive

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

Re: in which we present an ugly hack to make sys/queue.h CIRCLEQ work



Let me get on the record. It's basically ridiculous to allow GCC 4.8 to 
redefine the
set of permitted C expressions such that it breaks BSD.

Matt


----- "Christos Zoulas" <christos%zoulas.com@localhost> wrote:

> On Nov 26,  8:20pm, matt%linuxbox.com@localhost ("Matt W. Benjamin") wrote:
> -- Subject: Re: in which we present an ugly hack to make sys/queue.h
> CIRCLEQ 
> 
> | What's your issue with TAILQ?
> 
> #define TAILQ_LAST(head, headname) \
>         (*(((struct headname *)((head)->tqh_last))->tqh_last))
> #define TAILQ_PREV(elm, headname, field) \
>         (*(((struct headname *)((elm)->field.tqe_prev))->tqh_last))   
>  
> 
> etc.
> 
> christos

-- 
Matt Benjamin
The Linux Box
206 South Fifth Ave. Suite 150
Ann Arbor, MI  48104

http://linuxbox.com

tel.  734-761-4689 
fax.  734-769-8938 
cel.  734-216-5309 


Home | Main Index | Thread Index | Old Index