[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: omit parenthesis for functions of zero
- From: "Edwin Eyan Moragas" <haaktu@...>
- Date: Thu, 2 Mar 2006 18:20:12 +0800
>
> ---- diff for llex.c,v 2.19 2006/02/06 18:28:16 roberto
>
> in static int llex (LexState *ls, SemInfo *seminfo) { ...
>
> Replace, at line 368
>
> -- case '=': {
> -- next(ls);
> -- if (ls->current != '=') return '=';
> -- else { next(ls); return TK_EQ; }
> -- }
>
> with
>
> ++ case '=': {
> ++ next(ls);
> ++ switch(ls->current) {
> ++ case '=': next(ls); return TK_EQ; break;
> ++ case '>': next(ls); return TK_RETURN; break;
> ++ default: return '='; }
> ++ }
> ++ case '\\': {
> ++ next(ls);
> ++ return TK_FUNCTION;
> ++ }
> --
thanks Gavin. will get back to you as things come up.
--
salud,
eyan
http://www.eyan.org