History log of /freebsd-current/usr.bin/bc/bc.y
Revision Date Author Comments
# 5e3934b1 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 1d386b48 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 1da80a2c 11-Jan-2019 Yoshihiro Takahashi <nyan@FreeBSD.org>

Sync with OpenBSD.

bc.y: Rev 1.50
- write parse errors to stderr, prompted by Martijn Dekker
- we're only interactive if stdout en stderr are a tty as well as stdin

PR: 234430
Obtained from: OpenBSD
MFC after: 1 week


# 63433bc9 05-Mar-2017 Pedro F. Giffuni <pfg@FreeBSD.org>

bc/dc/patch: make some use of reallocarray(3).

reallocarray(3) is a non portable extension from OpenBSD. Given that it is
already in FreeBSD, make easier future merges by adopting in some cases
where the code has some shared heritage with OpenBSD.

Obtained from: OpenBSD


# 6659f976 23-Nov-2015 Pedro F. Giffuni <pfg@FreeBSD.org>

bc(1): Fix memory corruption issues

Fix crashes and hangs found by AFL.
Improve handling of non-ascii chars.

Obtained from: OpenBSD (CVS rev 1.49)


# bafb3a75 21-Nov-2015 Pedro F. Giffuni <pfg@FreeBSD.org>

bc: sync with OpenBSD

tty.c Rev. 1.3
Avoid unintended problems with operator precedence when doing an
assignment and comparison.

bc.1, Rev. 1.31, 1.32
'.Ql Quit' -> '.Ql quit' because only the lowercase command is valid.
Clarify sentence about `quit` in BUGS section.

extern.h, Rev. 1.12
whitespace

bc.y, Rev. 1.47
Prefer setvbuf() to setlinebuf() for portability

Obtained from: OpenBSD
MFC after: 2 weeks


# be848c7a 16-Apr-2014 Xin LI <delphij@FreeBSD.org>

Sync with OpenBSD.

MFC after: 2 weeks


# c64c63b9 06-Dec-2013 Xin LI <delphij@FreeBSD.org>

Remove mention of the compatibility option 'q', which is
intentionally undocumented and its only purpose is that
we do not bail out when used as a drop-in replacement of
a different implementation.

PR: docs/184550
MFC after: 2 weeks


# ac1e7ba2 15-Nov-2012 Eitan Adler <eadler@FreeBSD.org>

Make definition match declaration

Approved by: cperciva
MFC after: 3 days


# 5e2a209a 22-May-2012 Baptiste Daroussin <bapt@FreeBSD.org>

Fix world after byacc import:
- old yacc(1) use to magicially append stdlib.h, while new one don't
- new yacc(1) do declare yyparse by itself, fix redundant declaration of
'yyparse'

Approved by: des (mentor)


# 741e1faf 14-Mar-2012 Kevin Lo <kevlo@FreeBSD.org>

- Fix an erroneous invocation of the editline.
- Fix wrong scaling in the bc.library.
- Let length(0.000) conform to what gnu bc does.

PR: bin/159227
Submitted by: AIDA Shinra <shinra at j10n dot org>


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 4218135b 04-Feb-2010 Xin LI <delphij@FreeBSD.org>

Use libedit when interacting with tty, which provided history
functionality, etc. as did by GNU bc.

This also fixes an issue where BSDL bc can not handle very long
line.

Reported by: imp
Reviewed by: imp


# 7121df63 03-Feb-2010 Gabor Kovesdan <gabor@FreeBSD.org>

- style(9)

Approved by: delphij (mentor)


# 5690ece6 22-Jan-2010 Xin LI <delphij@FreeBSD.org>

- Remove --debug option and intentionally undocument -d, which is only
kept for compatibility with 4.4BSD behavior.
- Sync SYNOPSIS with usage().
- Use an alternative way to represent short and long options which have
same semantics.

Reviewed by: gabor


# fdf1f88b 20-Jan-2010 Gabor Kovesdan <gabor@FreeBSD.org>

Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a good
compatibility level with the GNU counterparts and have shown to be mature
enough. For now, the GNU versions aren't removed from the tree, just detached
from the build.

Sponsored by: Google Summer of Code 2008
Portbuild run by: erwin
Approved by: delphij