about summary refs log tree commit diff
path: root/Src/math.c
Commit message (Collapse)AuthorAgeFilesLines
* 51887: namespaces recognized in math, incorrect usages rejected.Bart Schaefer2023-06-221-3/+7
|
* 51212: remove STOUC() macroOliver Kiddle2022-12-161-1/+1
| | | | | This served as a workaround for ancient compilers where casts to unsigned char were broken.
* 49611 based on 49590 (Martijn Dekker): disable Inf and NaN in math ↵Oliver Kiddle2021-11-301-1/+1
| | | | expressions for sh emulation
* github #82: Fix typosDimitris Apostolou2021-11-121-2/+2
|
* 48723: locale-safe recognition of "Inf" and "NaN" constants in mathVincent Lefevre2021-05-151-2/+6
|
* 48389: getkeystring() should not return ptr to local varJun-ichi Takimoto2021-04-061-1/+6
| | | | | Now it returns NULL if called with GETKEY_SINGLE_CHAR and next character is not found. Caller must check the return value.
* 46079: Ignore double quotes in math expressions.Peter Stephenson2020-06-231-0/+2
| | | | | | | Treat as white space. This is required for compatibility and previously had no use in zsh as it generated an error.
* 45343: Queue signals around arithmetic evaluationsDaniel Shahaf2020-01-291-4/+11
| | | | | The queueing added in execarith() in 45083 is reverted since the callee does this now.
* 43944: apply NO_UNSET consistently to arithmeitcMartijn Dekker2018-12-301-0/+2
|
* 43261: Fix unary minus with base.Peter Stephenson2018-08-081-2/+13
| | | | | Apply unary minus to a complete lexical constant rather than the first component that comes along.
* 43219 (except term{cap,info}.c): fix several memory leaksJun-ichi Takimoto2018-07-311-1/+1
|
* 42488: test cases for 42369 and address some issues in the codeOliver Kiddle2018-05-131-18/+19
|
* Nelson H. F. Beebe: 19597 (rebased 42369): return Inf, NaN etc from floating ↵Oliver Kiddle2018-05-131-4/+46
| | | | point operations instead of errors to allow non-stop IEEE 754 arithmetic
* 41641: Some math operations shouldn't be lvalues.Peter Stephenson2017-09-051-8/+2
| | | | | This includes pre- and post- increment and decrement. Simply mark all values after operations as rvalues.
* 40760: Always tokenize unquoted - to Dash.Peter Stephenson2017-03-071-3/+4
| | | | | | This fixes use of pattern match character ranges in unusual contexts. Attempt to detect a tokenized - in cases where we don't care.
* 40622 with typos fixed: functions -Ms.Peter Stephenson2017-03-011-10/+22
| | | | | | This adds the capability for mathematical functions based on shell functions to have a string argument. Module functions have had this for a long time.
* 37018: Make WARNCREATEGLOBAL more consistent.Peter Stephenson2015-10-291-26/+0
| | | | | Wd don't need separate math handling any more, and can make it output the function name in all cases.
* unposted: strdup should be ztrdupBarton E. Schaefer2015-10-211-1/+1
|
* 36651: WARN_CREATE_GLOBAL += math expressionsDaniel Shahaf2015-09-271-0/+25
| | | | | Without this, '() { (( x=42 )) }' and '() { for (( i=0; … )) }' wouldn't warn about $x and $i, respectively, being created global.
* 35359: Improved math parsing and errors.Peter Stephenson2015-06-021-7/+14
| | | | | | Check for bogus trailing ")" at end of top-level parse. Extend some math error messages to indicate they are math errors.
* unposted: rewrite Nularg math handling to be like other casesPeter Stephenson2015-04-151-2/+6
|
* 34892 (slightly tweaked): math evaluation fixPeter Stephenson2015-04-151-2/+2
| | | | | An empty expression resulting from substitution includes a Nularg, which needs handling the same as an empty string.
* 34280: more widespread use of FORCE_FLOAT.Peter Stephenson2015-01-151-1/+12
| | | | Add the case of variables read for use in arithmetic expressions.
* Propagate float/integer type in arithmetic assignment.Peter Stephenson2015-01-121-1/+28
| | | | | | Add test. Mention this and also floating point mod change in README.
* 34230: call fmod() for modulo with floatsBarton E. Schaefer2015-01-111-3/+5
|
* 33793: add 0b binary interpretation to integer constantsPeter Stephenson2014-11-261-2/+4
|
* 32299: add use of underscores on arithmetic output for spacingPeter Stephenson2014-01-231-10/+25
|
* 31982: detection of floating point constants was problematic.Peter Stephenson2013-11-141-8/+3
| | | | | Remove the cause and fix the original problem with floating point numbers with leading zeros (users/17445) a different way.
* 31937: zle -Fw uses widget semantics for file descriptor handlerPeter Stephenson2013-11-071-3/+20
|
* 31353: fix handling of floating point in ternaryBart Schaefer2013-04-301-1/+2
|
* 31140: avoid crash when hitting recursion limitMikael Magnusson2013-03-131-1/+2
|
* users/17665: add FORCE_FLOAT optionPeter Stephenson2013-03-051-0/+15
|
* users/17445: fix handling of leading zeroes in floating pointBart Schaefer2012-12-081-1/+2
|
* 30647, 30649: allow underscores in numeric constantsPeter Stephenson2012-09-111-6/+33
|
* 30656: prevent SIGFPE in division by -1 by multiplying insteadPeter Stephenson2012-09-061-3/+23
|
* 29491: remove some variables set but not usedPeter Stephenson2011-06-191-2/+0
|
* 29329: fix undefined behaviour in math.cMikael Magnusson2011-05-271-1/+2
|
* 29307, 29308 + replies: Fix some doubled words in docs and comments.Mikael Magnusson2011-05-191-1/+1
|
* 28037: improved error messages for module autoloadsPeter Stephenson2010-06-141-1/+2
| | | | of math functions and builtins
* 27611: cache parameter values in math eval so subscripts are eval'd oncePeter Stephenson2010-01-201-14/+71
|
* 25905: fix and test doubled-hash radix outputPeter Stephenson2008-10-161-1/+2
|
* 25744: dynamic named directories and further doshfunc() simplificationPeter Stephenson2008-09-261-1/+1
|
* 25677: add %x and %I prompt escapes for shell source code debuggingPeter Stephenson2008-09-161-3/+3
| | | | tidy up interface to doshfunc()
* 25149: add C_PRECEDENCES option to make arithmetic have C/Perl precedencePeter Stephenson2008-06-121-117/+229
|
* Mikael: 25143: spelling correctionsPeter Stephenson2008-06-101-1/+2
| | | | | 25144: report supported bases 25139: fix number
* 25025: check radix for integer constants is between 2 and 36 inclusivePeter Stephenson2008-05-141-0/+4
|
* 23553: bit missed outPeter Stephenson2007-06-151-1/+12
|
* 23165: fix problems with bases: error if over 36 and don't interpret octalPeter Stephenson2007-02-121-9/+25
|
* 22684: improve getkeystring() interface and make printf do octal escapesPeter Stephenson2006-09-101-1/+1
|
* 22558: declaration after statementPeter Stephenson2006-07-261-1/+1
|