Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.319
 
1.320
 
MAIN:ragge:20110601173405
 
pftn.c
_>11151115         return a;
 11161116 }
 11171117 
<> 1118+short sztable[] = { 0, 0, SZCHAR, SZCHAR, SZSHORT, SZSHORT, SZINT, SZINT,
  1119+        SZLONG, SZLONG, SZLONGLONG, SZLONGLONG, SZFLOAT, SZDOUBLE, SZLDOUBLE };
  1120+
11181121 /* compute the size associated with type ty,
 11191122  *  dimoff d, and sizoff s */
 11201123 /* BETTER NOT BE CALLED WHEN t, d, and s REFER TO A BIT FIELD... */
     
 !
11481151                         }
 11491152                 }
 11501153 
<>1151 -        ty = BTYPE(ty);
 1152 -        if (ty == VOID)
  1154+        if ((ty = BTYPE(ty)) == VOID)
11531155                 ty = CHAR;
<>1154 -
 1155 -        if (ISUNSIGNED(ty))
 1156 -                ty = DEUNSIGN(ty);
 1157 -
 1158 -        switch (ty) {
 1159 -        case BOOL: sz = SZBOOL; break;
 1160 -        case CHAR: sz = SZCHAR; break;
 1161 -        case SHORT: sz = SZSHORT; break;
 1162 -        case INT: sz = SZINT; break;
 1163 -        case LONG: sz = SZLONG; break;
 1164 -        case LONGLONG: sz = SZLONGLONG; break;
 1165 -        case FLOAT: sz = SZFLOAT; break;
 1166 -        case DOUBLE: sz = SZDOUBLE; break;
 1167 -        case LDOUBLE: sz = SZLDOUBLE; break;
 1168 -        case STRTY:
 1169 -        case UNIONTY:
  1156+        if (ty <= LDOUBLE)
  1157+                sz = sztable[ty];
  1158+        else if (ty == BOOL)
  1159+                sz = SZBOOL;
  1160+        else if (ISSOU(ty)) {
11701161                 if ((ap = strattr(apl)) == NULL ||
 11711162                     (ap2 = attr_find(apl, GCC_ATYP_ALIGNED)) == NULL ||
 11721163                     (ap2->iarg(0) == 0)) {
 11731164                         uerror("unknown structure/union/enum");
 11741165                         sz = SZINT;
 11751166                 } else
 11761167                         sz = ap->amsize;
<>1177 -                break;
 1178 -        default:
  1168+        } else {
<_11791169                 uerror("unknown type");
 11801170                 sz = SZINT;
 11811171         }
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-07-10 02:16 +0200