Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.4
 
1.5
 
MAIN:stefan:20071122143636
 
code.c
_>216216 {
 217217 }
 218218 
<>219 -/* p points to an array of structures, each consisting
 220 - * of a constant value and a label.
 221 - * The first is >=0 if there is a default label;
 222 - * its value is the label number
 223 - * The entries p[1] to p[n] are the nontrivial cases
  219+/*
224220  * XXX - fix genswitch.
 225221  */
<>226 -void
 227 -genswitch(int num, struct swents **p, int n)
  222+int
  223+mygenswitch(int num, TWORD type, struct swents **p, int n)
228224 {
<>229 -        NODE *r;
 230 -        int i;
 231 -
 232 -        /* simple switch code */
 233 -        for (i = 1; i <= n; ++i) {
 234 -                /* already in 1 */
 235 -                r = tempnode(num, INT, 0, MKSUE(INT));
 236 -                r = buildtree(NE, r, bcon(p[i]->sval));
 237 -                cbranch(buildtree(NOT, r, NIL), bcon(p[i]->slab));
 238 -        }
 239 -        if (p[0]->slab > 0)
 240 -                branch(p[0]->slab);
  225+        return 0;
<_241226 }
 242227 
 243228 static void
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-02 23:23 +0200