Skip to contentSkip to conversation

Move common skipcount logic into skiploop

EVAL Herbert Xu 1 participant 1 message Oct 6, 2014

lore
Share & tools
lore

Herbert Xu

author
#0 lore raw

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.

ChangeLog +1 -0
index b70fa88..1d88e13 100644
@@ -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