Historically, Mozilla has used macros to wrap C++ casts, for portability to compilers supporting only C and not C++ casts. A year ago (see bug 348748), these macros were switched over to expand to C++ casts. In that time nobody's complained, and gfx mostly doesn't even use the macros, intentionally. In addition to not being macros, the C++ casts will have IDE support, and they're much more approachable for new contributors. Consequently, we'll be replacing the macros with C++ casts, and you should not use the macros but instead should use the C++ equivalents. The macros will be removed (or maybe made to warn) when cleanup is complete.
The macro replacement will be done using the Python script in bug 348748. I'll be doing most (minus three fixes for a deficiency in the script, which I'm committing momentarily) of the conversion on the tree checked out with Firefox (code in other checkouts will be followups as I have time to run the script and test the resultant builds) in one swell foop, probably late-evening within the next week or so, so most people should only have to deal with patch bustage :-\ and full rebuilding once. Jeff (sent to a non-exhaustive mess of C++-using newsgroups who should know about the change, followups to platform) _______________________________________________ dev-tech-network mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-network
