* Re: [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 [not found] <E1M8z4v-0004Ka-Hk@cvs.savannah.gnu.org> @ 2009-05-26 17:10 ` Ludovic Courtès 2009-05-26 20:31 ` Andy Wingo 0 siblings, 1 reply; 4+ messages in thread From: Ludovic Courtès @ 2009-05-26 17:10 UTC (permalink / raw) To: Andy Wingo; +Cc: guile-devel Hello! Thanks for working on this! "Andy Wingo" <wingo@wingomac.bcn.oblong.net> writes: > +#if BUILDING_LIBGUILE && HAVE_VISIBILITY > +# define SCM_API extern __attribute__((__visibility__("default"))) > +#elif BUILDING_LIBGUILE && defined _MSC_VER This should be: #if defined BUILDING_LIBGUILE && BUILDING_LIBGUILE && HAVE_VISIBILITY ... Also, I'd have preferred `_GUILE_WITHIN_GUILE', which is clearly in Guile's name space, and is similar to GMP's `__GMP_WITHIN_GMP' ("rule of least surprise"). What do you think? Thanks, Ludo'. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 2009-05-26 17:10 ` [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 Ludovic Courtès @ 2009-05-26 20:31 ` Andy Wingo 2009-05-26 21:04 ` Ludovic Courtès 0 siblings, 1 reply; 4+ messages in thread From: Andy Wingo @ 2009-05-26 20:31 UTC (permalink / raw) To: Ludovic Courtès; +Cc: guile-devel Heya Ludo, On Tue 26 May 2009 19:10, ludo@gnu.org (Ludovic Courtès) writes: > "Andy Wingo" <wingo@wingomac.bcn.oblong.net> writes: > >> +#if BUILDING_LIBGUILE && HAVE_VISIBILITY >> +# define SCM_API extern __attribute__((__visibility__("default"))) >> +#elif BUILDING_LIBGUILE && defined _MSC_VER > > This should be: > > #if defined BUILDING_LIBGUILE && BUILDING_LIBGUILE && HAVE_VISIBILITY I believe that this is strictly equivalent. Quoth the CPP manual: #if expression controlled text #endif /* expression */ expression is a C expression of integer type, subject to stringent restrictions. It may contain * Integer constants. * Character constants ... * Arithmetic operators ... * Macros ... * Uses of the defined operator ... * Identifiers that are not macros, which are all considered to be the number zero. This allows you to write #if MACRO instead of #ifdef MACRO, if you know that MACRO, when defined, will always have a nonzero value. Function-like macros used without their function call parentheses are also treated as zero. In some contexts this shortcut is undesirable. The -Wundef option causes GCC to warn whenever it encounters an identifier which is not a macro in an `#if'. But I guess that we want to support -Wundef or something, and this is in a public header, so I suppose you are right :) > Also, I'd have preferred `_GUILE_WITHIN_GUILE', which is clearly in > Guile's name space, and is similar to GMP's `__GMP_WITHIN_GMP' ("rule of > least surprise"). What do you think? I don't care :) I thought I recalled that Neil wanted something else, and Bruno had this in the gnulib docs, so I just used that. Please tell me to change it if you want it changed :-) Cheers, Andy -- http://wingolog.org/ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 2009-05-26 20:31 ` Andy Wingo @ 2009-05-26 21:04 ` Ludovic Courtès 2009-05-27 7:14 ` Neil Jerram 0 siblings, 1 reply; 4+ messages in thread From: Ludovic Courtès @ 2009-05-26 21:04 UTC (permalink / raw) To: Andy Wingo; +Cc: guile-devel Andy Wingo <wingo@pobox.com> writes: > But I guess that we want to support -Wundef or something, and this is in > a public header, so I suppose you are right :) Exactly. >> Also, I'd have preferred `_GUILE_WITHIN_GUILE', which is clearly in >> Guile's name space, and is similar to GMP's `__GMP_WITHIN_GMP' ("rule of >> least surprise"). What do you think? > > I don't care :) I thought I recalled that Neil wanted something else, > and Bruno had this in the gnulib docs, so I just used that. Please tell > me to change it if you want it changed :-) Let's see what others think. :-) Ludo'. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 2009-05-26 21:04 ` Ludovic Courtès @ 2009-05-27 7:14 ` Neil Jerram 0 siblings, 0 replies; 4+ messages in thread From: Neil Jerram @ 2009-05-27 7:14 UTC (permalink / raw) To: Ludovic Courtès; +Cc: Andy Wingo, guile-devel ludo@gnu.org (Ludovic Courtès) writes: > Andy Wingo <wingo@pobox.com> writes: > >> I don't care :) I thought I recalled that Neil wanted something else, >> and Bruno had this in the gnulib docs, so I just used that. Please tell >> me to change it if you want it changed :-) > > Let's see what others think. :-) X_WITHIN_X doesn't sound especially natural to me, but my opinion on this isn't a strong one, so I'm happy to go with it. Neil ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-27 7:14 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <E1M8z4v-0004Ka-Hk@cvs.savannah.gnu.org> 2009-05-26 17:10 ` [Guile-commits] GNU Guile branch, master, updated. 442f3f20ddd33b43743ea181d95024c10622df52 Ludovic Courtès 2009-05-26 20:31 ` Andy Wingo 2009-05-26 21:04 ` Ludovic Courtès 2009-05-27 7:14 ` Neil Jerram
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).