This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The integrated preprocessor


On Fri, Aug 25, 2000 at 08:01:17AM -0700, Geoff Keating wrote:
> 
> Zack Weinberg <zack@wolery.cumb.org> writes:
> 
> > I see that the C++ standard spells out which Unicode characters are
> > acceptable in identifiers; the C standard (as I understand it) left
> > that to the implementation, and that was the major reason why I didn't
> > like the idea.
> 
> I don't see how the C standard leaves anything special to the
> implementation.
> 
> s. 6.4.2.1 paragraph 3 says 
> 
>   Each universal character name in an identifier shall designate a
>   character whose encoding in ISO/IEC 10646 falls into one of the
>   ranges specified in annex D.  ... An implementation may allow
>   multibyte characters ... which characters and their correspondence
>   to universal character names is implementation-defined.
> 
> Note the 'shall'.  Annex D is also marked as 'normative'.

This paragraph, and Annex D, must have been added after the C99 draft
that I actually read all the way through.  I've only got section 6.10
of the final version memorized :)

It's good to know - this makes me a lot less queasy about extending
the character set for identifiers.

zw

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]