[ntp:bugs] [Bug 695] libopts does not prevent macro collisions
bugzilla at ntp.isc.org
bugzilla at ntp.isc.org
Mon Oct 23 08:52:06 PDT 2006
http://bugs.ntp.isc.org/695
----------------------------------------------------------------------------
Additional Comments From bruce.korb at gmail.com (Bruce Korb)
Submitted on 2006-10-23 15:52
How thoroughly disgusting. MSCC won't let you #undef INTERFACE.
So, I've added the guard-option-names, so I'll extend it by allowing
you to specify the methodology. If specifically set to "full-enum",
then the DESC() macro (discussed above) will be emitted without
token pasting. In other words, you'll need INDEX_OPT_INTERFACE
as the argument to the option test and manipulation macros.
Meanwhile, for the next week or so, please add this to your
various option.def files, Harlan:
/* MS-HACK-START */
export = <<_EOF_
#undef DESC
#define DESC(n) programOptions.pOptDesc[n]
_EOF_;
/* MS-HACK-END */
that will insert that text toward the end of all the emitted .h files.
Don't forget to change "program" to the right name, too. It'll be
easier to sed into oblivion later.
*sigh*.
--
Bruce Korb <bruce.korb at gmail.com>
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the bugs
mailing list