Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.13
 
1.14
 
MAIN:ragge:20110604152202
 
local.c
_>393393  * fsz is the number of bits this is referring to
 394394  * XXX - floating point constants may be wrong if cross-compiling.
 395395  */
<>396 -void
  396+int
397397 ninval(CONSZ off, int fsz, NODE *p)
 398398 {
 399399         union { float f; double d; long double l; int i[3]; } u;
     
 !
402402 
 403403         t = p->n_type;
 404404         if (t > BTMASK)
<>405 -                t = INT; /* pointer */
  405+                p->n_type = t = INT; /* pointer */
406406 
<>407 -        if (p->n_op != ICON && p->n_op != FCON)
 408 -                cerror("ninval: init node not constant");
 409 -
410407         if (p->n_op == ICON && p->n_sp != NULL && DEUNSIGN(t) != INT)
 411408                 uerror("element not constant");
 412409 
     
 !
427424                 }
 428425                 printf("\n");
 429426                 break;
<>430 -        case SHORT:
 431 -        case USHORT:
 432 -                printf("\t.short 0x%x\n", (int)p->n_lval & 0xffff);
 433 -                break;
 434 -        case BOOL:
 435 -                if (p->n_lval > 1)
 436 -                        p->n_lval = p->n_lval != 0;
 437 -                /* FALLTHROUGH */
 438 -        case CHAR:
 439 -        case UCHAR:
 440 -                printf("\t.byte %d\n", (int)p->n_lval & 0xff);
 441 -                break;
442427         case LDOUBLE:
 443428                 u.i[2] = 0;
 444429                 u.l = (long double)p->n_dcon;
     
 !
453438                 printf("\t.long\t0x%x\n", u.i[0]);
 454439                 break;
 455440         default:
<>456 -                cerror("ninval");
  441+                return 0;
457442         }
<> 443+        return 1;
<_458444 
 459445 }
 460446 /*
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-08-20 10:49 +0200