Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.50
 
1.51
 
MAIN:ragge:20070801045358
 
local.c
_>423423 
 424424         /* be kind to assemblers and avoid long strings */
 425425         printf("\t.ascii \"");
<>426 -        for (s = str; *s != 0; s++) {
 427 -                if (*s == '\\')
  426+        for (s = str; *s != 0; ) {
  427+                if (*s++ == '\\') {
428428                         (void)esccon(&s);
<> 429+                }
429430                 if (s - str > 64) {
 430431                         fwrite(str, 1, s - str, stdout);
 431432                         printf("\"\n\t.ascii \"");
     
 !
447448         int m;
 448449 
 449450         if (idebug)
<>450 -                printf("zbits off %lld, fsz %d\n", off, fsz);
  451+                printf("zbits off %lld, fsz %d inbits %d\n", off, fsz, inbits);
451452         if ((m = (inbits % SZCHAR))) {
 452453                 m = SZCHAR - m;
 453454                 if (fsz < m) {
<>454 -                        inbits += m;
  455+                        inbits += fsz;
455456                         return;
 456457                 } else {
 457458                         fsz -= m;
     
 !
461462         }
 462463         if (fsz >= SZCHAR) {
 463464                 printf("\t.zero %d\n", fsz/SZCHAR);
<>464 -                fsz -= (fsz/SZCHAR);
  465+                fsz -= (fsz/SZCHAR) * SZCHAR;
465466         }
 466467         if (fsz) {
 467468                 inval = 0;
     
 !
476477 infld(CONSZ off, int fsz, CONSZ val)
 477478 {
 478479         if (idebug)
<>479 -                printf("infld off %lld, fsz %d, val %lld\n", off, fsz, val);
  480+                printf("infld off %lld, fsz %d, val %lld inbits %d\n",
  481+                    off, fsz, val, inbits);
480482         val &= (1 << fsz)-1;
 481483         while (fsz + inbits >= SZCHAR) {
 482484                 inval |= (val << inbits);
     
 !
485487                 val >>= (SZCHAR - inbits);
 486488                 inval = inbits = 0;
 487489         }
<>488 -        inval = val;
 489 -        inbits = fsz;
  490+        if (fsz) {
  491+                inval |= (val << inbits);
  492+                inbits += fsz;
  493+        }
490494 }
 491495 
 492496 /*
     
 !
518522         case ULONGLONG:
 519523                 i = (p->n_lval >> 32);
 520524                 p->n_lval &= 0xffffffff;
<>521 -                p->n_op = INT;
  525+                p->n_type = INT;
<_522526                 ninval(off, 32, p);
 523527                 p->n_lval = i;
 524528                 ninval(off+32, 32, p);
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-09-24 02:29 +0200