Hi,

Cezar has left the following comment at Research offset macro consolidation http://www.google-melange.com/gci/task/view/google/gci2012/8172202:


clang_make.log


clang_make.log contains a summary of the complaints clang generates, but I still don't understand the offsetofarray issue. I tried something like "struct t { char a[20]; } print(offsetof(struct t, a)) print(offsetof(struct t, a[0])), and I got the same values. When are they supposed to be different?

And on the previous task, you said "you don't need a function to get the size of an array element. sizeof(struct t) would do it", but I don't really understand this. Instead of sizeof(a[0]), I should write sizeof(int) (if I have an array of ints)?


Greetings,
The Google Open Source Programs Team


---
You are receiving this message because you are subscribed to Research offset macro consolidation. To stop receiving these messages, go to: http://www.google-melange.com/gci/task/view/google/gci2012/8172202.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
BRL-CAD Tracker mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-tracker

Reply via email to