[brlcad-tracker] [Google Code-in 2012] New comment on Research offset macro consolidation
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <no-...@go...> - 2013-01-01 22:35:20
|
Hi, Sean has left the following comment at Research offset macro consolidation http://www.google-melange.com/gci/task/view/google/gci2012/8172202: not quite Conveniently, Leffler in that reply thread provides the exact language from one of the standards (presumably C89, but possibly C99). Your example would only be valid if that's the offset to the structure member. The standard does say what, just not how. All that means is that our code can finally start to make some assumptions (if it's C89). Our implementation far predates standardization and all of the issues I'm aware of were on pre-C89 K&R compilers that did some really wonky things. Yes, we should see breakage -- hard runtime crashes -- for a compiler that doesn't actually provide a sane offset value. All the more reason to close out this research and take steps towards simplifying code. 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. |