Somehow?

Would be nice to have a comment explaining this “somehow" then
because it looks tricky.

Also is there a place explaining the naming conventions?
I have a hard time understanding what is the difference
between tcom(), acom(), xcom(), and then there’s  complex() …


On Oct 14, 2014, at 5:50 PM, Rob Pike <robpike@gmail.com> wrote:

It's not dead code. It's prepping the switch somehow.

-rob


On Tue, Oct 14, 2014 at 3:45 PM, Rob Pike <robpike@gmail.com> wrote:
Looks like it.

-rob


On Tue, Oct 14, 2014 at 3:11 PM, Yoann Padioleau <pad@fb.com> wrote:
Hi,

It’s a copy paste bug here right?


|       LSWITCH '(' cexpr ')' stmnt
        {
                $$ = new(OCONST, Z, Z);
                $$->vconst = 0;
                $$->type = types[TINT];
                $3 = new(OSUB, $$, $3);

                $$ = new(OCONST, Z, Z);
                $$->vconst = 0;
                $$->type = types[TINT];
                $3 = new(OSUB, $$, $3);

                $$ = new(OSWITCH, $3, $5);
        }