[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Feature proposal: \x## notation in strings
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 25 May 2009 10:32:23 -0300
> And you don't need an extra table for uppercasing.
> [...]
> #define lj_ctype_toupper(c) ((c) - (lj_ctype_islower(c) >> 1))
> #define lj_ctype_tolower(c) ((c) + lj_ctype_isupper(c))
I thought about that, but it uses 'c' twice. (Yes, I know this is not
a problem in particular points in the lexer, but it is strange anyway.)
-- Roberto