mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 12:19:49 +00:00
shell/math: better comment. no code changes
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
parent
c8f9a8d3c0
commit
395b97aeac
@ -652,10 +652,10 @@ evaluate_string(arith_state_t *math_state, const char *expr)
|
|||||||
* integer stack.
|
* integer stack.
|
||||||
* But for binary operators, "apply" everything on the operator
|
* But for binary operators, "apply" everything on the operator
|
||||||
* stack until we find an operator with a lesser priority than the
|
* stack until we find an operator with a lesser priority than the
|
||||||
* one we have just extracted.
|
* one we have just extracted. If op is right-associative,
|
||||||
|
* then stop "applying" on the equal priority too.
|
||||||
* Left paren is given the lowest priority so it will never be
|
* Left paren is given the lowest priority so it will never be
|
||||||
* "applied" in this way.
|
* "applied" in this way.
|
||||||
* if associativity is right and priority eq, applied also skip
|
|
||||||
*/
|
*/
|
||||||
prec = PREC(op);
|
prec = PREC(op);
|
||||||
if ((prec > 0 && prec < UNARYPREC) || prec == SPEC_PREC) {
|
if ((prec > 0 && prec < UNARYPREC) || prec == SPEC_PREC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user