Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.26
 
1.27
 
MAIN:ragge:20030610120813
 
trees.c
_>601601         return( p );
 602602 }
 603603 
<>604 -#if 0
605604 /*
<>606 - * is the MOS or MOU at stab[i] OK for strict reference by a ptr
 607 - * i has been checked to contain a MOS or MOU
 608 - * j is the index in dimtab of the members...
 609 - */
 610 -int
 611 -chkstr(int i, int j, TWORD type)
 612 -{
 613 -        int k, kk;
 614 -
 615 -        extern int ddebug;
 616 -
 617 -# ifndef BUG1
 618 -        if (ddebug > 1)
 619 -                printf("chkstr( %s(%d), %d )\n", stab[i].sname, i, j);
 620 -# endif
 621 -        if ((k = j) < 0)
 622 -                uerror("undefined structure or union");
 623 -        else {
 624 -                for (; (kk = dimtab[k] ) >= 0; ++k) {
 625 -                        if (kk >= SYMTSZ) {
 626 -                                cerror( "gummy structure" );
 627 -                                return(1);
 628 -                        }
 629 -                        if (kk == i)
 630 -                                return(1);
 631 -                        switch(stab[kk].stype) {
 632 -
 633 -                        case STRTY:
 634 -                        case UNIONTY:
 635 -                                if (type == STRTY)
 636 -                                        continue/* no recursive looking for strs */
 637 -                        }
 638 -                }
 639 -        }
 640 -        return(0);
 641 -}
 642 -#endif
 643 -
 644 -/*
645605  * apply the op o to the lval part of p; if binary, rhs is val
 646606  * works only on integer constants
 647607  */
     
 !
15921552         }
 15931553 }
 15941554 
<> 1555+/*
  1556+ * Do sizeof on p.
  1557+ * XXX - add runtime evaluation sizeof.
  1558+ */
15951559 NODE *
<>1596 -doszof( p )  register NODE *p; {
 1597 -        /* do sizeof p */
  1560+doszof(NODE *p)
  1561+{
15981562         int i;
 15991563 
<>1600 -        /* whatever is the meaning of this if it is a bitfield? */
16011564         i = tsize( p->n_type, p->n_cdim, p->n_sue )/SZCHAR;
 16021565 
 16031566         tfree(p);
<>1604 -        if( i <= 0 ) werror( "sizeof returns 0" );
 1605 -        return( bcon( i ) );
 1606 -        }
  1567+        if (i <= 0)
  1568+                werror( "sizeof returns 0" );
  1569+        return (bcon(i));
  1570+}
<_16071571 
 16081572 # ifndef BUG2
 16091573 int
FishEye: Open Source License registered to PCC.
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-12-21 19:01 +0100