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: Universal Character Names, v2


Martin v. L?wis wrote:-

> This is the second version of my UCN patch. It incorporates all
> comments from the previous patch (AFAIR).
> 
> Specifically, the changes relative to the previous patch are:
> - Update character sets for C99, and C++ DR 131.
> - Support escaped newlines in the middle of an UCN. This is done
>   through the addition of maybe_read_ucs_reader function, which
>   uses get_effective_char internally.

You should find a way to share code here; duplicating most of
maybe_read_ucs is not ideal.  Nothing says maybe_read_ucs has to
remain in it's current form.

Also, I don't think you've covered all cases for escaped newlines;
I saw at least one place where you just read the next character directly.

Neil.


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