aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/dc/stack.c
Commit message (Collapse)AuthorAgeFilesLines
* usr.bin/bc: remove OpenBSD derived bc and dc commandsStefan Eßer2024-11-241-370/+0
| | | | | | | | | | | | | | | | | | | | | | | | In 2020, an improved implementation of the bc and dc commands developed by Gavin D. Howard has been imported into FreeBSD. It has replaced the OpenBSD-derived versions of these commands in all currently supported FreeBSD releases. The OpenBSD versions could still be built using the WITHOUT_GH_BC option. There have been no reports of problems or unexpected deviations from the OpenBSD version for some time, therefore keeping the OpenBSD version is no longer required in FreeBSD. This commit removes the option to build the OpenBSD version and corresponding source files from -CURRENT. No MFC is planned, all currently released FreeBSD versions should retain the build option. The WITHOUT_GH_BC option is no longer accepted and will cause make buildworld to fail. Reviewed by: des, emaste Approved by: des Relnotes: yes Differential Revision: https://reviews.freebsd.org/D46876
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* bc/dc/patch: make some use of reallocarray(3).Pedro F. Giffuni2017-03-051-4/+4
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=314704
* dc(1): Merge minor changes from OpenBSD.Pedro F. Giffuni2017-02-261-14/+7
| | | | | | | | | | | | | | Prefer setvbuf() to setlinebuf() for portability. Some style(9) and redundant tests for NULL. These are only meant to ease up merging newer changes but we are skipping changes done in order to accomodate OpenBSD's pledge support. Obtained from: OpenBSD MFC after: 2 weeks Notes: svn path=/head/; revision=314321
* dc(1): Catch up with OpenBSD tag.Pedro F. Giffuni2017-02-261-1/+1
| | | | | | | | | | OpenBSD rev 1.12 corresponds to our SVN r275162. Update the tag to make easier future updates. No functional change. MFC after: 3 days Notes: svn path=/head/; revision=314316
* Init array field in the proper place.Kevin Lo2014-11-271-3/+3
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=275162
* - style(9)Gabor Kovesdan2010-02-031-14/+14
| | | | | | | Approved by: delphij (mentor) Notes: svn path=/head/; revision=203443
* Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a goodGabor Kovesdan2010-01-201-0/+379
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 Notes: svn path=/head/; revision=202719