From: Deborah G. <gol...@ap...> - 2005-05-27 01:04:04
|
That doesn't meet the design objective, which is to reverse the sense =20= of the flag, not ban draft APIs. There is a need to access draft =20 APIs, but not have them accessible by default. If U_HIDE_DRAFT is set via configure, then it's impossible to *ever* =20 access draft APIs. The bug requests a configure option to hide draft =20 APIs *by default*, but be able to un-hide them in certain compilation =20= units. Deborah On May 26, 2005, at 4:47 PM, George Rhoten wrote: > I'd prefer just the following. It simplifies the configuration > possibilities. > > in platform.h.in: > > #ifndef U_HIDE_DRAFT > #define U_HIDE_DRAFT @U_HIDE_DRAFT@ > #endif > > (with the appropriate logic in configure) > > > George Rhoten > IBM Globalization Center of Competency/ICU San Jos=E9, CA, USA > http://www.icu-project.org/ > http://icu.sourceforge.net/ > > > > Deborah Goldsmith <gol...@ap...> > Sent by: icu...@li... > 05/26/2005 10:11 AM > Please respond to > icu-design > > > To > icu...@li... > cc > > Subject > Re: [icu-design] Proposed approach for JB 3950 Need configure =20 > option to > reverse U_HIDE_DRAFT > > > > > > > OK, how about this: > > in platform.h.in: > > #ifndef U_DEFAULT_HIDE_DRAFT > #define U_DEFAULT_HIDE_DRAFT @U_DEFAULT_HIDE_DRAFT@ > #endif > > (with the appropriate logic in configure) > > in utypes.h: > > #if U_DEFAULT_HIDE_DRAFT && !defined(U_SHOW_DRAFT) > #define U_HIDE_DRAFT 1 > #endif > > Deborah > > On May 25, 2005, at 9:01 PM, Markus Scherer wrote: > > >> The only header that configure touches is platform.h[.in]. Whatever >> form the switch takes, that's where it should manifest first, and if >> necessary, we can then use further #if etc. to go from there. >> markus >> >> On 5/25/05, Deborah Goldsmith <gol...@ap...> wrote: >> >> >>> Iff configure gets the option to reverse U_HIDE_DRAFT, generate the >>> following at the beginning of utypes.h: >>> > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-=20= > q22005 > _______________________________________________ > icu-design mailing list > icu...@li... > https://lists.sourceforge.net/lists/listinfo/icu-design > |