tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Small patch


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] Small patch
Date: Thu, 31 Jan 2013 10:52:14 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Le jeudi 31 janvier 2013 02:07:36, Domingo Alvarez Duarte a écrit :
> Also here :
> 
> static void asm_expr_logic(TCCState *s1, ExprValue *pe)
> {
>     int op;
>     ExprValue e2;
> 
>     asm_expr_prod(s1, pe);
>     for(;;) {
>         op = tok;
>         if (op != '&' && op != '|' && op != '^')
>             break;
>         next();
>         asm_expr_prod(s1, &e2);
>         if (pe->sym || e2.sym)
>             tcc_error("invalid operation with label");
>         switch(op) {
>         case '&':
>             pe->v &= e2.v;
>             break;
>         case '|':
>             pe->v |= e2.v;
>             break;
>         default:
>         case '^':  ///////////////////////////////////////what this case
> after default mean ????????
>             pe->v ^= e2.v;
>             break;
>         }
>     }
> }

Looks weird indeed but I am reluctant to change it when I don't know why it 
was done this way in the first place. Since the file was commited in one go, I 
can't see if this result from a mistake or if it was intentional. We can 
consider changing this and the other such example right after the release.

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]