summaryrefslogtreecommitdiff
path: root/shell/math.c
AgeCommit message (Expand)Author
2023-06-17shell/math: eliminate some redundant stores on return code pathDenys Vlasenko
2023-06-17shell/math: change ?: nesting code to not have 63 level nesting limitationDenys Vlasenko
2023-06-17shell/math.h: update comments, rearrange struct members for smaller codeDenys Vlasenko
2023-06-17shell/math: code shrinkDenys Vlasenko
2023-06-16shell/math: tweka commentsDenys Vlasenko
2023-06-16shell/math: fix ?: to not evaluate not-taken branchesDenys Vlasenko
2023-06-15shell/math: simplify handling of unary plusDenys Vlasenko
2023-06-15shell/math: explain the logic, small tweak to make code smallerDenys Vlasenko
2023-06-15shell/math: fix order of expansion of variables to numbersDenys Vlasenko
2023-06-15shell/math: remove special code to handle a?b?c:d:e, it works without it nowDenys Vlasenko
2023-06-15shell/math: fix parsing of ?: and explain why it's parsed that wayDenys Vlasenko
2023-06-15shell/math: simpler insertion of "fake" last RPARENDenys Vlasenko
2023-06-14shell/math: trivial code shrinkDenys Vlasenko
2023-06-14shell/math: fix the order of variable resolution in binopsDenys Vlasenko
2023-06-14shell/math: remove now-unused second_valDenys Vlasenko
2023-06-14shell/math: fix nested ?: and do not parse variables in not-taken branchDenys Vlasenko
2023-06-14shell/math: remove a redundant checkDenys Vlasenko
2023-06-14shell/math: document ternary ?: op's weirdness, add code commentsDenys Vlasenko
2023-06-13shell/math: fix one name check, other minor cleanupsDenys Vlasenko
2023-06-13shell/math: reduce stack usageDenys Vlasenko
2023-06-12shell: avoid segfault on ${0::0/0~09J}. Closes 15216Denys Vlasenko
2021-09-26shell: fix parsing of $(( (v)++ + NUM ))Denys Vlasenko
2021-09-25shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7)Denys Vlasenko
2020-10-01shell: remove FAST_FUNC from a static functionDenys Vlasenko
2019-10-22shell: better comments in BASE#nn codeDenys Vlasenko
2019-09-22ash: fix BASE###nn bashism for bases 36..64Denys Vlasenko
2019-09-22ash: fix BASE###nn bashism to accept letter 'digits' for bases > 9Denys Vlasenko
2019-05-26shell: move all definitions of strto_arith_t() togetherDenys Vlasenko
2019-05-19shell: implement optional "BASE#nnnn" numeric literalsDenys Vlasenko
2018-01-28shell: handle $((NUM++...) like bash does. Closes 10706Denys Vlasenko
2017-08-02do not use `a' quoting style in commentsDenys Vlasenko
2014-11-20typo fix in commentDenys Vlasenko
2014-11-18ash,hush: do not segfault on $((2**63 / -1))Denys Vlasenko
2013-02-26move endofname() to libbbDenys Vlasenko
2013-01-14whitespace cleanup. no code changesDenys Vlasenko
2010-09-17shell/math: better comment. no code changesDenys Vlasenko
2010-09-16shell/math: deconvolute and explain ?: handling. Give better error messageDenys Vlasenko
2010-09-15shell/math: return string error indicator, not integerDenys Vlasenko
2010-09-13shell/math.c: stop using bss variableDenys Vlasenko
2010-09-13shell/math.c: rename arith_eval_hooks to arith_state, put error code into itDenys Vlasenko
2010-09-13shell/math.c: small code shrink; fixed incomprehensible commentsDenys Vlasenko
2010-09-13shell: small code shrinkDenys Vlasenko
2010-09-13shell: shrink arith code; and prepare for returning text error codesDenys Vlasenko
2010-09-07shell: unify endofname() in hush and ashDenys Vlasenko
2010-08-16*: make GNU licensing statement forms more regularDenys Vlasenko
2010-01-12hush: use ash's read builtinDenys Vlasenko
2010-01-12shell: split read builtin from ashDenys Vlasenko
2009-10-12ash,hush: fix $RANDOM in children being repeatedDenys Vlasenko
2009-10-08*: code shrink via NOINLINEDenys Vlasenko
2009-06-05printf: accept negative numbers for %x; sh: overflowed numbers are 0Denys Vlasenko