Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.27
 
1.28
 
MAIN:ragge:20110604152202
 
local.c
_>422422  * print out a constant node
 423423  * mat be associated with a label
 424424  */
<>425 -void
  425+int
426426 ninval(CONSZ off, int fsz, NODE *p)
 427427 {
 428428         union { float f; double d; int i[2]; } u;
     
 !
434434 
 435435         t = p->n_type;
 436436         if (t > BTMASK)
<>437 -                t = INT; /* pointer */
  437+                p->n_type = t = INT; /* pointer */
438438 
<>439 -        if (p->n_op != ICON && p->n_op != FCON)
 440 -                cerror("ninval: init node not constant");
 441 -
442439         if (p->n_op == ICON && p->n_sp != NULL && DEUNSIGN(t) != INT)
 443440                 uerror("element not constant");
 444441 
     
 !
464461                 }
 465462 #endif
 466463                 break;
<>467 -        case BOOL:
 468 -                if (p->n_lval > 1)
 469 -                        p->n_lval = p->n_lval != 0;
 470 -                /* FALLTHROUGH */
471464         case INT:
 472465         case UNSIGNED:
 473466                 printf("\t.word " CONFMT, (CONSZ)p->n_lval);
     
 !
482475                 break;
 483476         case SHORT:
 484477         case USHORT:
<>485 -                printf("\t.half %d\n", (int)p->n_lval & 0xffff);
 486 -                break;
 487 -        case CHAR:
 488 -        case UCHAR:
 489 -                printf("\t.byte %d\n", (int)p->n_lval & 0xff);
 490 -                break;
  478+                astypnames[SHORT] = astypnames[USHORT] = "\t.half";
  479+                return 0;
491480         case LDOUBLE:
 492481         case DOUBLE:
 493482                 u.d = (double)p->n_dcon;
     
 !
504493                 printf("\t.word\t0x%x\n", u.i[0]);
 505494                 break;
 506495         default:
<>507 -                cerror("ninval");
  496+                return 0;
508497         }
<> 498+        return 1;
<_509499 }
 510500 
 511501 /* make a name look like an external name in the local machine */
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 20:32 +0200