Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.6
 
1.7
 
MAIN:ragge:20020817125448
 
reader.c
_>939939 # endif
 940940 
 941941 #ifndef FIELDOPS
<>942 -        /* do this if there is no special hardware support for fields */
  942+/*
  943+ * do this if there is no special hardware support for fields
  944+ */
  945+static int
  946+ffld(NODE *p, int down, int *down1, int *down2 )
  947+{
  948+        /*
  949+         * look for fields that are not in an lvalue context,
  950+         * and rewrite them...
  951+         */
  952+        NODE *shp;
  953+        int s, o, v, ty;
943954 
<>944 -ffld( p, down, down1, down2 ) NODE *p; int *down1, *down2; {
 945 -         /* look for fields that are not in an lvalue context, and rewrite them... */
 946 -        register NODE *shp;
 947 -        register s, o, v, ty;
 948 -
949955         *down1asgop( p->in.op );
 950956         *down2 = 0;
 951957 
 952958         if( !down && p->in.op == FLD ){ /* rewrite the node */
 953959 
<>954 -                if( !rewfld(p) ) return;
  960+                if( !rewfld(p) ) return 0;
955961 
 956962                 ty = (szty(p->in.type) == 2)? LONG: INT;
 957963                 v = p->tn.rval;
     
 !
9941000                         shp->in.right->in.name = "";
 9951001                         p->in.left = shp;
 9961002                         /* whew! */
<>997 -                        }
9981003                 }
 9991004         }
<> 1005+        return 0;
  1006+}
10001007 #endif
 10011008 
 10021009 void
     
 !
10051012         /* look for situations where we can turn * into OREG */
 10061013 
 10071014         NODE *q;
<>1008 -        int i;
10091015         int r;
 10101016         char *cp;
 10111017         NODE *ql, *qr;
     
 !
10291035                 /* look for doubly indexed expressions */
 10301036 
 10311037                 if( q->in.op == PLUS) {
<> 1038+                        int i;
10321039                         if( (r=base(ql))>=0 && (i=offset(qr, tlen(p)))>=0) {
 10331040                                 makeor2(p, ql, r, i);
 10341041                                 return;
     
 !
10691076         /* put p in canonical form */
 10701077 
 10711078 #ifndef FIELDOPS
<>1072 -        int ffld();
<_10731079         fwalk( p, ffld, 0 ); /* look for field operators */
 10741080 # endif
 10751081         walkf( p, oreg2 );  /* look for and create OREG nodes */
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 19:16 +0100