This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: lame feature request: option to disable multiline C++ comments
- To: john at nanaon-sha dot co dot jp (John Belmonte)
- Subject: Re: lame feature request: option to disable multiline C++ comments
- From: ebiederm at xmission dot com (Eric W. Biederman)
- Date: 09 Jan 2001 06:38:13 -0700
- Cc: <gcc at gcc dot gnu dot org>
- References: <007c01c07a2c$25320a40$8402a8c0@johndell>
john@nanaon-sha.co.jp (John Belmonte) writes:
> Why would this be useful? Say if double-byte encoded characters are being used
> for code
>
> comments, and the 2nd byte of the last character in a '//' comment happens to be
> a \.
>
> Specifically this happens often for Japanese comments encoded in Shift-JIS or
> EUC. The usual
>
> workaround is to add a non-offending character at the end of the line when the
> error comes up.
>
>
> I'm aware of other workarounds and also "-Wcomment"... just wondering if there
> is any demand out
>
> there for such an option.
Hmm. I would think the correct fix would be to teach gcc to deal with multibyte
encoded text files. The C API is standard. And then you get correct '//' comment
handling as well as mutibyte character constants.
Eric