This patch:
http://repo.or.cz/w/tinycc.git/commitdiff/e23194a1fa2ca176c9151964a2e035f36736e650

moves code that belongs to block()
  -            gexpr();
  -            vpop();
into decl0()
  +                gexpr();
  +                vpop();

which is structurally un-nice.

I'd rather let decl0() just do the c99 case and return a value, and then
use like this in block():

         if (tok != ';') {
           if (!decl0(VT_LOCAL, 1)) { /* c99 loop variable */
             gexpr();
             vpop();
           }
         }

Also no need to wrap into a function for only one use, IMO.

Thanks,

--- grischka


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to