Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.149
 
1.150
 
MAIN:ragge:20110604152202
 
local.c
_>987987  * off is bit offset from the beginning of the aggregate
 988988  * fsz is the number of bits this is referring to
 989989  */
<>990 -void
  990+int
991991 ninval(CONSZ off, int fsz, NODE *p)
 992992 {
 993993         union { float f; double d; long double l; int i[3]; } u;
     
 !
997997 
 998998         t = p->n_type;
 999999         if (t > BTMASK)
<>1000 -                t = INT; /* pointer */
  1000+                t = p->n_type = INT; /* pointer */
10011001 
<>1002 -        if (p->n_op != ICON && p->n_op != FCON)
 1003 -                cerror("ninval: init node not constant");
 1004 -
10051002         if (p->n_op == ICON && p->n_sp != NULL && DEUNSIGN(t) != INT)
 10061003                 uerror("element not constant");
 10071004 
     
 !
10331030         case SHORT:
 10341031         case USHORT:
 10351032 #ifdef os_sunos
<>1036 -                printf("\t.2byte 0x%x\n", (int)p->n_lval & 0xffff);
 1037 -#else
 1038 -                printf("\t.short 0x%x\n", (int)p->n_lval & 0xffff);
  1033+                astypnames[SHORT] = astypnames[USHORT] = "\t.2byte";
10391034 #endif
<>1040 -                break;
 1041 -        case BOOL:
 1042 -                if (p->n_lval > 1)
 1043 -                        p->n_lval = p->n_lval != 0;
 1044 -                /* FALLTHROUGH */
 1045 -        case CHAR:
 1046 -        case UCHAR:
 1047 -                printf("\t.byte %d\n", (int)p->n_lval & 0xff);
 1048 -                break;
  1035+                return 0;
10491036         case LDOUBLE:
 10501037                 u.i[2] = 0;
 10511038                 u.l = (long double)p->n_dcon;
     
 !
10691056                 printf("\t.long\t%d\n", u.i[0]);
 10701057                 break;
 10711058         default:
<>1072 -                cerror("ninval");
  1059+                return 0;
10731060         }
<> 1061+        return 1;
<_10741062 }
 10751063 
 10761064 /* 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-21 04:22 +0200