Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.100
 
1.101
 
MAIN:ragge:20030907133037
 
pftn.c
_>10251025         return((unsigned int)sue->suesize * mult);
 10261026 }
 10271027 
<>1028 -/* compute the size associated with type ty,
 1029 - *  dimoff d, and sizoff s */
 1030 -/* BETTER NOT BE CALLED WHEN t, d, and s REFER TO A BIT FIELD... */
 1031 -NODE *
 1032 -btsize(TWORD ty, union dimfun *d, struct suedef *sue)
 1033 -{
 1034 -        NODE *rv;
 1035 -        int i;
 1036 -
 1037 -        rv = bcon(1);
 1038 -
 1039 -        for( i=0; i<=(SZINT-BTSHIFT-1); i+=TSHIFT ){
 1040 -                switch( (ty>>i)&TMASK ){
 1041 -
 1042 -                case FTN:
 1043 -                        cerror( "compiler takes size of function");
 1044 -                case PTR:
 1045 -                        return optim(buildtree(MUL, bcon(SZPOINT/SZCHAR), rv));
 1046 -                case ARY:
 1047 -                        rv = buildtree(MUL, rv, d->ddim >= 0 ? bcon(d->ddim) :
 1048 -                            tempnode(-d->ddim, INT, 0, MKSUE(INT)));
 1049 -                        d++;
 1050 -                        continue;
 1051 -                case 0:
 1052 -                        break;
 1053 -
 1054 -                        }
 1055 -                }
 1056 -
 1057 -        if (sue == NULL)
 1058 -                cerror("bad tsize sue");
 1059 -        if (ty != STRTY && ty != UNIONTY) {
 1060 -                if (sue->suesize == 0) {
 1061 -                        uerror("unknown size");
 1062 -                        return(bcon(SZINT/SZCHAR));
 1063 -                }
 1064 -        } else {
 1065 -                if (sue->suelem == NULL)
 1066 -                        uerror("unknown structure/union/enum");
 1067 -        }
 1068 -
 1069 -        return optim(buildtree(MUL, bcon(sue->suesize/SZCHAR), rv));
 1070 -}
 1071 -
<_10721028 /*
 10731029  * force inoff to have the value n
 10741030  */
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-10-30 14:45 +0100