Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.88
 
1.89
 
MAIN:ragge:20030904204644
 
trees.c
_>312312                                 p->n_type = ENUMTY;
 313313                                 p->n_op = ICON;
 314314                         }
<> 315+                        if (sp->sflags & STNODE) {
  316+                                p->n_lval = sp->soffset;
  317+                                p->n_op = TEMP;
  318+                        }
315319                         break;
 316320 
 317321                 case STRING:
     
 !
867871  * convert an operand of p
 868872  * f is either CVTL or CVTR
 869873  * operand has type int, and is converted by the size of the other side
<> 874+ * convert is called when an integer is to be added to a pointer, for
  875+ * example in arrays or structures.
870876  */
 871877 NODE *
 872878 convert(NODE *p, int f)
 873879 {
 874880         NODE *q, *r, *s;
 875881 
<>876 -        q = (f == CVTL) ? p->n_left : p->n_right;
 877 -
 878 -        s = bpsize(f == CVTL ? p->n_right : p->n_left);
  882+        if (f == CVTL) {
  883+                q = p->n_left;
  884+                s = p->n_right;
  885+        } else {
  886+                q = p->n_right;
  887+                s = p->n_left;
  888+        }
  889+        r = btsize(DECREF(s->n_type), s->n_df, s->n_sue);
  890+        s = bpsize(s);
  891+printf("convert: bpsize node %lld\n", s->n_lval);
  892+fwalk(p, eprint, 0);
  893+        if (r->n_op == ICON && r->n_lval != s->n_lval)
  894+                cerror("r->n_lval != s->n_lval: %lld != %lld", r->n_lval, s->n_lval);
<_879895         r = block(PMCONV, q, s, INT, 0, MKSUE(INT));
 880896         r = clocal(r);
 881897         /*
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-01 06:04 +0200