[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: pcb CVS
DJ -
On Fri, Jan 11, 2008 at 08:39:34PM -0500, DJ Delorie wrote:
> > Can we get rid of the silly home-made offsetof() in flags.c?
> Can you prove that all the environments we want to support provide
> offsetof() in stddef?
>
> (or even that they all provide stddef.h)
It's part of the ANSI/ISO 9899-1990 C standard. If we can't assume
that, I don't know what we _can_ assume.
Quoting Jack Klein, a well established comp.lang.c guru:
Understand that C provides for free-standing implementations, for
embedded systems and such, which are not required to provide even one
single function from the standard library, but they are still required
to provide the macros defined in <stddef.h>.
If what you have does not provide a working offsetof() macro in
<stddef.h>, it is literally not a C compiler.
Hope that helps.
- Larry
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev