Gavin Howard
ccad710baf
Tweak the NEWS again
2 years ago
Gavin Howard
f93278d0e0
Fix the NEWS
2 years ago
Gavin Howard
90a5b2f0ba
Add the fact that bc errors with -e and -f after -f-
2 years ago
Gavin Howard
81000194ac
Update the NEWS
2 years ago
Gavin Howard
9030a8fff4
Make -e and -f error after -f-
2 years ago
Gavin Howard
d459be047a
Change the manuals for the changes in the previous two commits
2 years ago
Gavin Howard
26fa18a5bb
Change -f and -e to exit, unless -f - is given
...
This is a change requested by FreeBSD. It also makes it unnecessary for
me to keep the BC_EXPR_EXIT and DC_EXPR_EXIT environment variables.
2 years ago
Gavin Howard
fc8680ad54
Make -q a no-op always
2 years ago
Gavin Howard
3c2febe6e8
Tweak a URL in the README
2 years ago
Gavin Howard
2c6ab7aadf
Update FreeBSD info
2 years ago
Gavin Howard
1f7e55dde0
Make a parse function more efficient
2 years ago
Gavin Howard
837638ed09
Increment the version and update the NEWS
2 years ago
Gavin Howard
a92e20e82f
Make files work with missing else clauses at the end
...
I moved the code I used for the stdin case to a function and made it
work for files as well. This also allowed me to remove a function
parameter to bc_vm_process() and shrink it.
2 years ago
Gavin Howard
68a5d97511
Add tests for files with missing else clauses
2 years ago
Gavin Howard
5514bd7945
Get rid of some code that is unnecessary
2 years ago
Gavin Howard
aa19025bab
Fix the bug for real
...
This takes care of a stack of multiple things.
2 years ago
Gavin Howard
4ad6735b84
Change the tests
...
It turns out that these are not error tests, and I should test that they
are executed properly.
2 years ago
Gavin Howard
5a5c6a53fc
Add another error test
2 years ago
Gavin Howard
e21ee47143
Add another error test for bc
...
This is a true error case for bc in the change I just made, but I forgot
to take it into account.
2 years ago
Gavin Howard
f075aaf96a
Tweak the NEWS
2 years ago
Gavin Howard
8e787bc56d
Fix a bug found by OpenZFS
...
This bug is that whenever `echo "if (1 < 3) 1" | bc` would happen, bc
would error, not execute it. This commit fixes that bug.
2 years ago
Gavin Howard
cc572ed322
Add a test for an upcoming change
2 years ago
Gavin Howard
4912dcf9ff
Increment the version and update the NEWS for coming change
2 years ago
Gavin Howard
248ca9cb42
Tweak the NEWS
2 years ago
Gavin Howard
fb47f61b0a
Make locale install faster
2 years ago
Gavin Howard
1a46db97d6
Increment the version and update the NEWS
2 years ago
Gavin Howard
8fa86c7db0
Fix the build manual
2 years ago
Gavin Howard
2e9146cc10
Fix a bug in the locale_uninstall.sh script
2 years ago
Gavin Howard
ed6f0a341b
Add an option to install all locales (for NetBSD)
2 years ago
Gavin Howard
6354165652
Increment the version and update the NEWS
2 years ago
Gavin Howard
79a1c82994
Add FreeBSD bc to the README
2 years ago
Gavin Howard
4a58c22517
Add two Spanish locales
2 years ago
Gavin Howard
175921f774
Reduce the complexity of some macros
2 years ago
Gavin Howard
803473a421
Update the NEWS
2 years ago
Gavin Howard
6b6efe0269
Fix last commit for bc
2 years ago
Gavin Howard
758adb7f43
Fix the crash in the previous commit
...
This crash was like the last one: I was not checking for a string
contained in a variable. I went through and made sure all of the
references to strings I could find had the check if needed.
2 years ago
Gavin Howard
d3e39cb40d
Add a crash test found by afl
2 years ago
Gavin Howard
ca89c32fd1
Fix the crash found in last commit
...
This crash happened because when assigning strings in dc, there are two
cases: the result has the index of the string, or the number inside of
the result has the index of the string. I forgot this, and only pulled
the index from the result. This commit changes it to pull from the right
place.
2 years ago
Gavin Howard
77bbf99929
Add a dc crash found by afl
2 years ago
Gavin Howard
aaa2441c4b
Make pushing an array element just slightly faster
2 years ago
Gavin Howard
75d49a9228
Fix the crash found in the test in last commit
...
This crash was simple once I found it. It turns out that bc was allowing
arrays to be used as the operands for prefix inc/dec operators. All I
had to do was clear an already existing flag that would tell it not to
do that.
2 years ago
Gavin Howard
d1e8f904db
Add an error test from a crash found by afl
2 years ago
Gavin Howard
6e5b8140a0
Change the version and update the NEWS
2 years ago
Gavin Howard
1070f53a5f
Fix style
2 years ago
Gavin Howard
ae8d1ec7d9
Fix compile errors from last commit
2 years ago
Gavin Howard
8cc6f43a3f
Redo some #define's
2 years ago
Gavin Howard
6273033266
Add a crash test
2 years ago
Gavin Howard
5e8bce1a7a
Fix a crash
2 years ago
Gavin Howard
922a3f8549
Add a comment for the memory leak I was fixing
2 years ago
Gavin Howard
9887cf3fbe
Attempt again to fix the last commits
2 years ago