Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: implement all missing macro expansion features
Date: Sat, 20 Sep 2008 04:55:00 -0000	[thread overview]
Message-ID: <m3abe376ze.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20080920001852.GC23372@adacore.com> (Joel Brobecker's message of "Fri\, 19 Sep 2008 17\:18\:52 -0700")

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> Thanks for adding the comment describing the function. Can you add an
Joel> extra empty line before the function declaration?

Sure.  I was not sure which style is the preferred one -- though I see
now that this is in gdbint.texinfo.  That said, both styles are common
in gdb, and in macroexp.c in particular, the blank line only appears
in one case.

Joel> Same here. And perhaps if you wouldn't mind describing the IS_VARARGS
Joel> and VA_ARG_NAME parameters...

Sure.

>> +	  /* Just ignore a stray token splicing operator.  Really this
>> +	     is an error, but there's no reason to penalize the
>> +	     user.  */

Joel> I don't see how this would be penalizing the user.  when could
Joel> this error actually happen?

Some versions of gcc will pass a macro like this through.
Trunk rejects code that tries to do this.  By 'this' I mean error
cases like having '##' at the start or end of the macro definition.

So, it can only happen in very weird circumstances.

I can make it an error.  I doubt anybody will notice.
I'll resubmit the patch a bit later.

Tom


  reply	other threads:[~2008-09-20  4:55 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 16:01 Tom Tromey
2008-09-20  0:19 ` Joel Brobecker
2008-09-20  4:55   ` Tom Tromey [this message]
2008-09-20 15:19     ` Joel Brobecker
2008-09-20 21:56       ` Tom Tromey
2008-09-21  3:13         ` Eli Zaretskii
2008-09-21  3:25           ` Tom Tromey
2008-09-21 18:01             ` Eli Zaretskii
2008-09-21  6:08         ` Joel Brobecker
2008-09-27 21:39           ` Tom Tromey

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=m3abe376ze.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.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