lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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