From: Michael Snyder <msnyder@redhat.com>
To: Klee Dienes <klee@mit.edu>
Cc: Stan Shebs <shebs@apple.com>, Adam Fedor <fedor@doc.com>,
gdb-patches@sources.redhat.com
Subject: Re: Add rules for ObjC files
Date: Fri, 04 Oct 2002 14:49:00 -0000 [thread overview]
Message-ID: <3D9E0C8F.9C62674@redhat.com> (raw)
In-Reply-To: <C2321243-D7D6-11D6-866A-00039396EEB8@mit.edu>
Klee Dienes wrote:
>
> I definitely agree there's no need to conditionalize them long-term. I
> just mean there's no way that I know of to check them in with an #ifdef
> WITH_OBJC for the period where the other changes that they depend on
> are still being submitted. The objc-lang.y approach has the advantage
> that the file can be submitted, and optionally enabled or disabled in
> the Makefile (as I believe Adam was planning to do).
I agree that ObjC is to C as C++ is to C, and therefore its grammar
can legitimately go into c-exp.y. If cxx-like behavior is not disabled
when debugging C, then objc-like behavior shouldn't need to be either
(unles there's a conflict).
But, just to get over the initial hurdle, it might be easier to
check the grammar in as if it was a whole new language (and thus
can't break C debugging) -- then merge them later.
Michael
>
> On Friday, October 4, 2002, at 12:48 PM, Stan Shebs wrote:
>
> > ObjC is supposed to be a strict superset of C, so at least in theory,
> > extensions don't need to be conditionalized at all, or they can be
> > disallowed after parsing, if you wanted to have a "strict C mode"
> > (although I note that the little array@45 extension is always
> > available,
> > even though it's not valid C).
next prev parent reply other threads:[~2002-10-04 21:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-03 18:53 Adam Fedor
2002-10-04 2:25 ` Klee Dienes
2002-10-04 9:07 ` Adam Fedor
2002-10-04 9:49 ` Stan Shebs
2002-10-04 13:20 ` Klee Dienes
2002-10-04 14:49 ` Michael Snyder [this message]
2002-10-04 15:31 ` Kevin Buettner
2002-10-21 12:08 ` Andrew Cagney
2002-10-21 15:40 ` Adam Fedor
2002-10-24 20:33 ` Adam Fedor
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=3D9E0C8F.9C62674@redhat.com \
--to=msnyder@redhat.com \
--cc=fedor@doc.com \
--cc=gdb-patches@sources.redhat.com \
--cc=klee@mit.edu \
--cc=shebs@apple.com \
/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