public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
From: "Érico Nogueira" <ericonr@disroot.org>
To: "Dmitry V. Levin" <ldv@altlinux.org>
Cc: elfutils-devel@sourceware.org, "Érico Rolim" <erico.erc@gmail.com>
Subject: Re: [PATCH] Don't use __BEGIN_DECLS macros from glibc.
Date: Mon, 26 Oct 2020 18:34:59 -0300	[thread overview]
Message-ID: <C6N595R9UAS1.1YDLF1DJRB651@mussels> (raw)
In-Reply-To: <20201026205810.GA3247@altlinux.org>

On Mon Oct 26, 2020 at 8:58 PM -03, Dmitry V. Levin wrote:
> On Mon, Oct 26, 2020 at 05:44:24PM -0300, Érico Nogueira via
> Elfutils-devel wrote:
> > From: Érico Rolim <erico.erc@gmail.com>
> > 
> > These macros are mostly internal to glibc and require the inclusion of
> > <sys/cdefs.h> (here included indirectly via <features.h>), which isn't a
> > standard header.
> > 
> > Since they are only required once, replacing them with their definition
> > is simple.
> > 
> > Signed-off-by: Érico Rolim <erico.erc@gmail.com>
> > ---
> >  libelf/elf.h | 10 ++++++----
> >  1 file changed, 6 insertions(+), 4 deletions(-)
>
> This file is a verbatim copy of glibc's elf/elf.h, see
> git log -- libelf/elf.h
>
>
> --
> ldv

Hm, I see. This change would only make it necessary to restore the top
and bottom of the file after any update; do you think that would be too
much trouble? I could also add a comment to make it clear why the
explicit `extern "C"` is necessary.

Thanks,
Érico

  reply	other threads:[~2020-10-26 21:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-26 20:44 Érico Nogueira
2020-10-26 20:58 ` Dmitry V. Levin
2020-10-26 21:34   ` Érico Nogueira [this message]
2020-10-26 22:24     ` Mark Wielaard
2020-10-28 11:46       ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C6N595R9UAS1.1YDLF1DJRB651@mussels \
    --to=ericonr@disroot.org \
    --cc=elfutils-devel@sourceware.org \
    --cc=erico.erc@gmail.com \
    --cc=ldv@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).