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 
<robp...@gmail.com<mailto:robp...@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 
<robp...@gmail.com<mailto:robp...@gmail.com>> wrote:
Looks like it.

-rob


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

It’s a copy paste bug here right?
https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y#476<https://urldefense.proofpoint.com/v1/url?u=https://code.google.com/p/ken-cc/source/browse/src/cmd/cc/cc.y%23476&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=%2FN9d7W2LRwZks3eyFNLr8Q%3D%3D%0A&m=4cyv139G%2BaY3rKB1R87WcxrtStd7gWlsDg4w5ndKAww%3D%0A&s=0dfb82e35769784cecce2b03828c23174d1f09519028880890cc63d7dd24265c>


|       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);

        }





Reply via email to