bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* <version-etc.h> and C++
@ 2022-01-07 19:11 Marc Nieper-Wißkirchen
  2022-01-07 20:54 ` Bruno Haible
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Nieper-Wißkirchen @ 2022-01-07 19:11 UTC (permalink / raw
  To: bug-gnulib@gnu.org List

I just noticed that <version-etc.h> doesn't include extern "C" guards
so that inclusion in a C++ source file becomes easier (see 4.2 in the
Gnulib manual).

I don't know what the general policy is, but including <version-etc.h>
in a C++ makes sense to me and could be made easier.

Marc

PS I haven't systematically checked other header files.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: <version-etc.h> and C++
  2022-01-07 19:11 <version-etc.h> and C++ Marc Nieper-Wißkirchen
@ 2022-01-07 20:54 ` Bruno Haible
  2022-01-08 10:46   ` Marc Nieper-Wißkirchen
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Haible @ 2022-01-07 20:54 UTC (permalink / raw
  To: bug-gnulib; +Cc: Marc Nieper-Wißkirchen

Marc Nieper-Wißkirchen wrote:
> I just noticed that <version-etc.h> doesn't include extern "C" guards
> so that inclusion in a C++ source file becomes easier (see 4.2 in the
> Gnulib manual).

Patches are welcome.

> I don't know what the general policy is

For these extern "C" guards, we do it on demand, i.e. the first time
it gets reported.

Bruno





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: <version-etc.h> and C++
  2022-01-07 20:54 ` Bruno Haible
@ 2022-01-08 10:46   ` Marc Nieper-Wißkirchen
  2022-01-08 10:51     ` Bruno Haible
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Nieper-Wißkirchen @ 2022-01-08 10:46 UTC (permalink / raw
  To: Bruno Haible; +Cc: Marc Nieper-Wißkirchen, bug-gnulib@gnu.org List

Am Fr., 7. Jan. 2022 um 21:54 Uhr schrieb Bruno Haible <bruno@clisp.org>:
>
> Marc Nieper-Wißkirchen wrote:
> > I just noticed that <version-etc.h> doesn't include extern "C" guards
> > so that inclusion in a C++ source file becomes easier (see 4.2 in the
> > Gnulib manual).
>
> Patches are welcome.

I submitted a patch. An email will follow.

>
> > I don't know what the general policy is
>
> For these extern "C" guards, we do it on demand, i.e. the first time
> it gets reported.

Thanks,

Marc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: <version-etc.h> and C++
  2022-01-08 10:46   ` Marc Nieper-Wißkirchen
@ 2022-01-08 10:51     ` Bruno Haible
  2022-01-08 10:59       ` Marc Nieper-Wißkirchen
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Haible @ 2022-01-08 10:51 UTC (permalink / raw
  To: Marc Nieper-Wißkirchen; +Cc: bug-gnulib

Marc Nieper-Wißkirchen wrote:
> I submitted a patch. An email will follow.

Ah, you already pushed it. Good!

Bruno





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: <version-etc.h> and C++
  2022-01-08 10:51     ` Bruno Haible
@ 2022-01-08 10:59       ` Marc Nieper-Wißkirchen
  0 siblings, 0 replies; 5+ messages in thread
From: Marc Nieper-Wißkirchen @ 2022-01-08 10:59 UTC (permalink / raw
  To: Bruno Haible; +Cc: Marc Nieper-Wißkirchen, bug-gnulib@gnu.org List

Am Sa., 8. Jan. 2022 um 11:51 Uhr schrieb Bruno Haible <bruno@clisp.org>:
>
> Marc Nieper-Wißkirchen wrote:
> > I submitted a patch. An email will follow.
>
> Ah, you already pushed it. Good!

My workflow is not optimized yet. Pushing and sending out the email
with the patch has to happen in two steps.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-08 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 19:11 <version-etc.h> and C++ Marc Nieper-Wißkirchen
2022-01-07 20:54 ` Bruno Haible
2022-01-08 10:46   ` Marc Nieper-Wißkirchen
2022-01-08 10:51     ` Bruno Haible
2022-01-08 10:59       ` Marc Nieper-Wißkirchen

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).