Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.150
 
1.151
 
MAIN:ragge:20110604202638
 
local.c
_>921921         printf("\\0\"\n");
 922922 }
 923923 
<>924 -static int inbits, inval;
  924+static int inbits, xinval;
925925 
 926926 /*
 927927  * set fsz bits in sequence to zero.
     
 !
940940                         return;
 941941                 } else {
 942942                         fsz -= m;
<>943 -                        printf("\t.byte %d\n", inval);
 944 -                        inval = inbits = 0;
  943+                        printf("\t.byte %d\n", xinval);
  944+                        xinval = inbits = 0;
945945                 }
 946946         }
 947947         if (fsz >= SZCHAR) {
     
 !
953953                 fsz -= (fsz/SZCHAR) * SZCHAR;
 954954         }
 955955         if (fsz) {
<>956 -                inval = 0;
  956+                xinval = 0;
957957                 inbits = fsz;
 958958         }
 959959 }
     
 !
969969                     off, fsz, val, inbits);
 970970         val &= ((CONSZ)1 << fsz)-1;
 971971         while (fsz + inbits >= SZCHAR) {
<>972 -                inval |= (int)(val << inbits);
 973 -                printf("\t.byte %d\n", inval & 255);
  972+                xinval |= (int)(val << inbits);
  973+                printf("\t.byte %d\n", xinval & 255);
974974                 fsz -= (SZCHAR - inbits);
 975975                 val >>= (SZCHAR - inbits);
<>976 -                inval = inbits = 0;
  976+                xinval = inbits = 0;
977977         }
 978978         if (fsz) {
<>979 -                inval |= (int)(val << inbits);
  979+                xinval |= (int)(val << inbits);
980980                 inbits += fsz;
 981981         }
 982982 }
     
 !
991991 ninval(CONSZ off, int fsz, NODE *p)
 992992 {
 993993         union { float f; double d; long double l; int i[3]; } u;
<>994 -        struct symtab *q;
 995 -        TWORD t;
996994         int i;
 997995 
<>998 -        t = p->n_type;
 999 -        if (t > BTMASK)
 1000 -                t = p->n_type = INT; /* pointer */
 1001 -
 1002 -        if (p->n_op == ICON && p->n_sp != NULL && DEUNSIGN(t) != INT)
 1003 -                uerror("element not constant");
 1004 -
 1005 -        switch (t) {
  996+        switch (p->n_type) {
1006997         case LONGLONG:
 1007998         case ULONGLONG:
 1008999                 i = (int)(p->n_lval >> 32);
 10091000                 p->n_lval &= 0xffffffff;
 10101001                 p->n_type = INT;
<>1011 -                ninval(off, 32, p);
  1002+                inval(off, 32, p);
10121003                 p->n_lval = i;
<>1013 -                ninval(off+32, 32, p);
  1004+                inval(off+32, 32, p);
10141005                 break;
<>1015 -        case INT:
 1016 -        case UNSIGNED:
 1017 -                printf("\t.long %d", (int)p->n_lval);
 1018 -                if ((q = p->n_sp) != NULL) {
 1019 -                        if ((q->sclass == STATIC && q->slevel > 0)) {
 1020 -                                printf("+" LABFMT, q->soffset);
 1021 -                        } else {
 1022 -                                char *name;
 1023 -                                if ((name = q->soname) == NULL)
 1024 -                                        name = exname(q->sname);
 1025 -                                printf("+%s", name);
 1026 -                        }
 1027 -                }
 1028 -                printf("\n");
 1029 -                break;
 1030 -        case SHORT:
 1031 -        case USHORT:
 1032 -#ifdef os_sunos
 1033 -                astypnames[SHORT] = astypnames[USHORT] = "\t.2byte";
 1034 -#endif
 1035 -                return 0;
<_10361006         case LDOUBLE:
 10371007                 u.i[2] = 0;
 10381008                 u.l = (long double)p->n_dcon;
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-22 13:48 +0200