This is the mail archive of the
mailing list for the GCC project.
Re: warning: multi-line comment (why?)
- To: Neil Booth <NeilB at earthling dot net>
- Subject: Re: warning: multi-line comment (why?)
- From: Jamie Lokier <egcs at tantalophile dot demon dot co dot uk>
- Date: Wed, 20 Sep 2000 17:52:06 +0200
- Cc: Jan Dvorak <johnydog at go dot cz>, Craig Rodrigues <rodrigc at mediaone dot net>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- References: <20000917185453.A14829@mediaone.net> <20000917162647.A19521@cygnus.com> <20000918120419.C17692@pcep-jamie.cern.ch> <20000919180308.A7018@napalm.go.cz> <20000919191221.A20462@pcep-jamie.cern.ch> <20000919214025.A30587@daikokuya.demon.co.uk> <20000919214320.A30677@daikokuya.demon.co.uk>
The motivation is for when you do "comment-region" in Emacs to comment
out code that includes macros.
Neil Booth wrote:
> > Regardless, just glancing at it, you've broken silently ignoring nulls
> > in comments. You've also broken backslash and trigraph-escaped
> > newlines, I think. I want those fixed, cleanly, and testcases at
> > least.
> Sorry, ignore that about newlines, I meant slashes and I don't think
> I'm right.
Hmm. The nulls which warn are part of the multi-line comment. Fair
enough, I'll fix that and get the correct column numbers too.
Trigraph-escaped slashes aren't checked for, so you still get the
warning in that case. Do you care?