Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.2
 
1.3
 
MAIN:stefan:20071122143636
 
code.c
_>187187 {
 188188 }
 189189 
<>190 -/* p points to an array of structures, each consisting
 191 - * of a constant value and a label.
 192 - * The first is >=0 if there is a default label;
 193 - * its value is the label number
 194 - * The entries p[1] to p[n] are the nontrivial cases
  190+/*
195191  * XXX - fix genswitch.
 196192  */
<>197 -void
 198 -genswitch(int num, struct swents **p, int n)
  193+int
  194+mygenswitch(int num, TWORD type, struct swents **p, int n)
199195 {
<>200 -        NODE *r;
 201 -        int i;
 202 -
 203 -        /* simple switch code */
 204 -        for (i = 1; i <= n; ++i) {
 205 -                /* already in 1 */
 206 -                r = tempnode(num, INT, 0, MKSUE(INT));
 207 -                r = buildtree(NE, r, bcon(p[i]->sval));
 208 -                cbranch(buildtree(NOT, r, NIL), bcon(p[i]->slab));
 209 -        }
 210 -        if (p[0]->slab > 0)
 211 -                branch(p[0]->slab);
  196+        return 0;
<_212197 }
 213198 /*
 214199  * Called with a function call with arguments as argument.
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:47 +0100