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]
Other format: [Raw text]

Re: Implementing Universal Character Names in identifiers


Neil Booth <neil@daikokuya.co.uk> writes:

> I really want this implemented in whatever patch goes in.  It's not
> hard to do; instead of reading chars directly through a pointer,
> call get_effective_char() instead, like the other parts of cpplex.c do.
> It handles skipping the escaped newlines, if any.

That is a complex change. I have to change maybe_read_ucs to use
get_effective_char. Since get_effective_char gets the position from
the reader, I have to remove the char** arguments from maybe_read_ucs.
This, in turn, means that all callers must change their calling
conventions. In particular, cpp_parse_escape cannot use the pstr/limit
approach anymore. However, I cannot see how I can change it, since
it sometimes parses things that do not come from a reader.

I will need further advise before being able to carry out this
change. 

Regards,
Martin


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