Mercurial > projects > ddmd
comparison dmd/SwitchStatement.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | c77e9f4f1793 |
children | 438eaa11eed4 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
410 else | 410 else |
411 string = 0; | 411 string = 0; |
412 block_appendexp(mystate.switchBlock, econd); | 412 block_appendexp(mystate.switchBlock, econd); |
413 block_next(blx,BCswitch,null); | 413 block_next(blx,BCswitch,null); |
414 | 414 |
415 /// | 415 // Corresponding free is in block_free |
416 targ_llong* pu = cast(targ_llong*) malloc(targ_llong.sizeof * (numcases + 1)); | 416 targ_llong* pu = cast(targ_llong*) malloc(targ_llong.sizeof * (numcases + 1)); |
417 mystate.switchBlock.Bswitch = pu; | 417 mystate.switchBlock.Bswitch = pu; |
418 /* First pair is the number of cases, and the default block | 418 /* First pair is the number of cases, and the default block |
419 */ | 419 */ |
420 *pu++ = numcases; | 420 *pu++ = numcases; |