This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: Divergence from BSD sources, e.g. __GNUC_PREREQ()


On 04/04/2013 10:47 AM, Ralf Corsepius wrote:

That said, I am against adopting it, because "FreeBSD sys/queue.h" has a
history FreeBSD changing it ad-lib, which means any attempt to provide FreeBSD
compatibility will fail in longer terms.

Did you look at the actual differences?

The current FreeBSD <sys/queue.h> is with one exception backward compatible to the current Newlib <sys/queue.h>, but has more macros, e.g. TAILQ_SWAP(), STAILQ_FOREACH_SAFE(), etc.

FreeBSD removed STAILQ_REMOVE_HEAD_UNTIL() 14 years ago, but we can keep it as a Newlib goodie.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.


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