Source-Changes-D archive

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

Re: CVS commit: src



Alexander Nasonov wrote:
> I found a related discussion:
> 
> can an expression be a member-designator in offsetof macro, Aug 12 2001
> https://groups.google.com/group/comp.std.c/browse_thread/thread/771a804a75eb9969/60a16f6878a58e35?hl=end617fb9bacb3ea6&lnk=gst&q=offsetof#60a16f6878a58e35

Also, an example in DR282
http://www.open-std.org/JTC1/SC22/WG14/www/docs/dr_282.htm

uses sizeof(struct s) + sizeof(fam_t[nitems]) rather than
offsetof(struct s, fam[nitems]).

Alex


Home | Main Index | Thread Index | Old Index