Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.28
 
1.29
 
MAIN:ragge:20101107101940
 
local2.c
_>10821082 }
 10831083 
 10841084 void
<>1085 -targarg(char *w, void *arg)
  1085+targarg(char *w, void *arg, int n)
10861086 {
 10871087         NODE **ary = arg;
 10881088         NODE *p, *q;
 10891089 
<>1090 -        p = ary[(int)w[1]-'0']->n_left;
  1090+        if (w[1] < '0' || w[1] > (n + '0'))
  1091+                uerror("bad xasm arg number %c", w[1]);
  1092+        if (w[1] == (n + '0'))
  1093+                p = ary[(int)w[1]-'0' - 1]; /* XXX */
  1094+        else
  1095+                p = ary[(int)w[1]-'0'];
  1096+        p = p->n_left;
  1097+
<_10911098         if (optype(p->n_op) != LTYPE)
 10921099                 comperr("bad xarg op %d", p->n_op);
 10931100         q = tcopy(p);
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-09-18 19:45 +0200