Move common skipcount logic into skiploop
commit 598d300ffa0b9542a88feae900ccdd29e35374cf
Author: Herbert Xu <[email protected]> Date: Mon Oct 6 20:45:04 2014 +0800
[EVAL] Move common skipcount logic into skiploop
The functions evalloop and evalfor share the logic on checking and updating skipcount. This patch moves that into the helper function skiploop.
Signed-off-by Herbert Xu <[email protected]>
ChangeLog +1 -0
@@ -2,6 +2,7 @@ * Exit without arguments in a trap should use status outside traps. * Do not allow break to break across function calls. + * Move common skipcount logic into skiploop. 2014-10-03 Herbert Xu <[email protected]>
src/eval.c +31 -25
94 lines not on this page · raw message
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt