Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.76
 
1.77
 
MAIN:ragge:20040428204947
 
reader.c
_>415415                 }
 416416                 goto sw;
 417417 
<> 418+        case INCR:
  419+        case DECR:
  420+                if ((rv = findops(p, cookie)) < 0) {
  421+                        if (setbin(p))
  422+                                goto again;
  423+                } else
  424+                        goto sw;
  425+
  426+                /*
  427+                 * Rewrite x++ to (x = x + 1) -1;
  428+                 */
  429+                p1 = p->n_left;
  430+                p->n_op = o == INCR ? MINUS : PLUS;
  431+                /* Assign node */
  432+                p2 = talloc();
  433+                p2->n_type = p->n_type;
  434+                p2->n_name = "";
  435+                p2->n_op = ASSIGN;
  436+                p->n_left = p2;
  437+                p->n_left->n_left = p1;
  438+                /* incr/decr node */
  439+                p2 = talloc();
  440+                p2->n_type = p->n_type;
  441+                p2->n_name = "";
  442+                p2->n_op = o == INCR ? PLUS : MINUS;
  443+                p->n_left->n_right = p2;
  444+                /* const one node */
  445+                p->n_left->n_right->n_right = tcopy(p->n_right);
  446+                /* input tree */
  447+                p1 = tcopy(p1);
  448+                /* idstrip(p1); */
  449+                p->n_left->n_right->n_left = p1;
  450+                goto again;
  451+
<_418452         case ASSIGN:
 419453                 if ((rv = findasg(p, cookie)) < 0) {
 420454                         if (setasg(p, cookie))
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 05:05 +0100