<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/contrib/bc, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-09-11T14:16:39Z</updated>
<entry>
<title>contrib/bc upgrade to version 7.1.0</title>
<updated>2025-09-11T14:16:39Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2025-09-11T14:16:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fdc4a7c8012b214986cfa2e2fb6d99731f004b1b'/>
<id>urn:sha1:fdc4a7c8012b214986cfa2e2fb6d99731f004b1b</id>
<content type='text'>
This update fixes a few bugs:
- Improper response to double SIGINT with editline.
- Not letting libedit handle terminal size changes.
- A dc crash from improperly handling an error.
- A duplicate check for reference arrays.
- Build failures with GCC 15.

Merge commit '682da5a0fdb2c38ecc3951047a882471d62aa1d1'
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 7.0.2</title>
<updated>2024-09-18T06:12:19Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-09-18T05:55:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9b04aee86ccd58a6f3c936e0cd95bb9305a69848'/>
<id>urn:sha1:9b04aee86ccd58a6f3c936e0cd95bb9305a69848</id>
<content type='text'>
This update fixes exiting from an interactive bc session with ^D on
FreeBSD and Linux when using editline.

This bug was caused by the macOS fix for editline in version 7.0.0,
which has been reverted in this version.

(cherry picked from commit c2c85f88902d18d2e9702381f1628112e15a5c3c)

MFC after:	3 days
Reported by:	mack@macktronics.com
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 7.0.1</title>
<updated>2024-08-28T16:52:54Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-08-28T16:46:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b0dc991093c82824f6fe566af947f64f5072264'/>
<id>urn:sha1:5b0dc991093c82824f6fe566af947f64f5072264</id>
<content type='text'>
This update fixes building bc on FreeBSD with non-default compilers
(GCC-12, GCC-13). GCC warned about casting argv from non-const to const
and since warnings are treated as errors, the build failed.

(cherry picked from commit 1e19146fc7692f59e8dfc5da7957e938cd0b81b8)
</content>
</entry>
<entry>
<title>contrib/bc: fix build with GCC</title>
<updated>2024-08-27T07:25:16Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-08-27T07:11:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ef5752762ba9ec54d5c02023167d24bcdbb45fd7'/>
<id>urn:sha1:ef5752762ba9ec54d5c02023167d24bcdbb45fd7</id>
<content type='text'>
Building with GCC failed with the following error message:

 error: to be safe all intermediate pointers in cast from 'char **'
 to 'const char **' must be 'const' qualified [-Werror=cast-qual]

This was caused by main() being declared with "char *argv[]" as the
3rd parameter, but argv later being passed cast to "const char**":

113 |     if (BC_IS_BC) s = bc_main(argc, (const char**) argv);
    |                                      ^

This is fixed by declaring the 3rd parameter of main() as "const
char *argv[]".

Reported by:	CI
MFC after:	3 days
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 7.0.0</title>
<updated>2024-08-26T16:27:29Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-08-23T16:45:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=12e0d316644a4f80f5f1f78cf07bd93def43b1ca'/>
<id>urn:sha1:12e0d316644a4f80f5f1f78cf07bd93def43b1ca</id>
<content type='text'>
This is a production release to fix three bugs, none of which
affects well formed scripts on FreeBSD:

The first bug is that bc/dc will exit on macOS when the terminal
is resized.

The second bug is that an array, which should only be a function
parameter, was accepted as part of larger expressions.

The third bug is that the value stack for dc was cleared on any error.
However, this is not how other dc behave. To bring dc more in line
with other implementations, this behavior was changed. This change is
why this version is a new major version.

(cherry picked from commit 54d20d67e2af28d948ce2df13feb039fa10900fc)

MFC after:	3 days
</content>
</entry>
<entry>
<title>contrib/bc: upgrade to version 6.7.6</title>
<updated>2024-07-09T05:49:27Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-07-09T05:49:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a970610a3af63b3f4df5b69d91c6b4093a00ed8f'/>
<id>urn:sha1:a970610a3af63b3f4df5b69d91c6b4093a00ed8f</id>
<content type='text'>
This update fixes a potential issue when flushing stdout on exit
fails: longjmp could use an uninitialized target address variable.

Most files are included in this commit due to a changed date in
the copyright note.

(cherry picked from commit 52a5ec1b178fd07651446c7e31b1512794a04dbf)

MFC after:      3 days
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 6.7.5</title>
<updated>2024-01-10T16:36:29Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-01-04T23:07:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f4fbc49d201f81c481a33fac6ba28e19faf96260'/>
<id>urn:sha1:f4fbc49d201f81c481a33fac6ba28e19faf96260</id>
<content type='text'>
This update fixes a bug that line breaks in printed numbers may not
match the line length set by the user. The value is printed correctly,
just not split as specified in some situations.

(cherry picked from commit 52a5ec1b178fd07651446c7e31b1512794a04dbf)
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 6.7.4</title>
<updated>2024-01-10T16:35:14Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2024-01-02T13:05:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e6857bd4d7b4bf39ea32b9dcd34f8371164c356e'/>
<id>urn:sha1:e6857bd4d7b4bf39ea32b9dcd34f8371164c356e</id>
<content type='text'>
Documentation updates only, no functional changes to the software.

(cherry picked from commit a3f3a7b4dc80d577e4c8fc64dfbbb359d2e24228)
</content>
</entry>
<entry>
<title>vendor/bc: upgrade to version 6.7.2</title>
<updated>2024-01-10T16:34:49Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2023-10-30T09:10:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aa339f1d5df9e38f36a34eb522355c4eebcae6c4'/>
<id>urn:sha1:aa339f1d5df9e38f36a34eb522355c4eebcae6c4</id>
<content type='text'>
This update improves the implementation of the power function p() and
adds 3 new functions to the extended math library: min(), max(), and
i2rand().

(cherry picked from commit 0b4a06ab29a0da80f6cb5c99189054cb8e2f756c)
</content>
</entry>
<entry>
<title>contrib/bc: upgrade to version 6.6.0</title>
<updated>2023-05-25T15:55:31Z</updated>
<author>
<name>Stefan Eßer</name>
<email>se@FreeBSD.org</email>
</author>
<published>2023-05-25T15:55:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=76238846ad3e9e271a3d1f792f72beab727fd153'/>
<id>urn:sha1:76238846ad3e9e271a3d1f792f72beab727fd153</id>
<content type='text'>
This update removes printing of a leading zero in scientific or
engineering output modes (which are an extended feature of this
implementation).

(cherry-picked from commit 8b83ef067441f6d3a4a55e92d1738724954a057c)

MFC after:	2 weeks
</content>
</entry>
</feed>
