aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/bc
Commit message (Collapse)AuthorAgeFilesLines
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* bc/dc/patch: make some use of reallocarray(3).Pedro F. Giffuni2017-03-051-3/+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 Notes: svn path=/head/; revision=314704
* Use correct date formatBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313671
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-6/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* bc(1): Fix memory corruption issuesPedro F. Giffuni2015-11-241-9/+14
| | | | | | | | | | Fix crashes and hangs found by AFL. Improve handling of non-ascii chars. Obtained from: OpenBSD (CVS rev 1.49) Notes: svn path=/head/; revision=291234
* bc: sync with OpenBSDPedro F. Giffuni2015-11-224-13/+14
| | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=291155
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+27
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated/new dependenciesSimon J. Gerraty2014-11-191-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=274694
| * Merge from head@274682Simon J. Gerraty2014-11-191-2/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-191-0/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge headSimon J. Gerraty2014-04-287-131/+288
| |\| | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | Merge from headSimon J. Gerraty2013-09-052-0/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-081-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | | | Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"Enji Cooper2014-08-261-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, add a missing LIBPANEL dependency for lldb Approved by: rpaulo (mentor) Suggested by: brooks MFC after: 5 days Phabric: D675 (as part of a larger diff) PR: 192762 Notes: svn path=/head/; revision=270650
* | | | Stop casting the const char * to void * to char * to make compile more happyBjoern A. Zeeb2014-04-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r264573. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573 Notes: svn path=/head/; revision=264609
* | | | Remove duplicate extern declarations after r264573.Bjoern A. Zeeb2014-04-171-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes things compile better. Someone submit to: OpenBSD MFC after: 13 days X-MFC with: r264573 Notes: svn path=/head/; revision=264608
* | | | Sync with OpenBSD.Xin LI2014-04-167-129/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=264573
* | | | Document -q and --quiet as discouraged compatibility option.Xin LI2013-12-071-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suggested by: eadler MFC after: 2 weeks Notes: svn path=/head/; revision=259060
* | | | Remove mention of the compatibility option 'q', which isXin LI2013-12-072-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=259058
* | | Work around build breakages with GCC 4.2.Jung-uk Kim2013-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | | Reported by: tinderbox Notes: svn path=/head/; revision=250926
* | | Add the Clang specific -Wmissing-variable-declarations to WARNS=6.Ed Schouten2013-04-191-0/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@ Notes: svn path=/head/; revision=249657
* | Make definition match declarationEitan Adler2012-11-151-1/+1
|/ | | | | | | | Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243075
* Fix world after byacc import:Baptiste Daroussin2012-05-221-1/+0
| | | | | | | | | | | - 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) Notes: svn path=/head/; revision=235789
* Repair function when used with large scalesKevin Lo2012-03-181-2/+3
| | | | | | | Submitted by: AIDA Shinra <shinra at j10n dot org> Notes: svn path=/head/; revision=233121
* - Fix an erroneous invocation of the editline.Kevin Lo2012-03-152-21/+32
| | | | | | | | | | | - 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> Notes: svn path=/head/; revision=232994
* Remove extra sentence, a leftover from r202845.Stefan Farfeleder2012-01-251-2/+0
| | | | Notes: svn path=/head/; revision=230546
* Move most of the remaining USD/PSD/SMM papers into share/docUlrich Spörlein2010-12-041-1241/+0
| | | | Notes: svn path=/head/; revision=216178
* Fix some more warnings found by clang.Rebecca Cran2010-11-221-0/+1
| | | | Notes: svn path=/head/; revision=215704
* - Fix signal handling in bc/dc. Now Ctrl-C terminates the execution.Gabor Kovesdan2010-06-061-19/+0
| | | | | | | | Requested by: gk (via private mail) Approved by: delphij (mentor) Notes: svn path=/head/; revision=208868
* Fix a bug in previous revision.Xin LI2010-02-051-1/+1
| | | | | | | | | | | | | | | The bc(1) program may need to deal with files when it's being run in interactive mode, so we can not blindly use interactive mode (in turn use libedit) but need to check if the input source is really the standard input. This commit should fix a regression where 'bc -l' would not parse the mathlib. Reported by: trasz Notes: svn path=/head/; revision=203531
* Use libedit when interacting with tty, which provided historyXin LI2010-02-044-1/+65
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=203498
* - style(9)Gabor Kovesdan2010-02-032-32/+41
| | | | | | | Approved by: delphij (mentor) Notes: svn path=/head/; revision=203443
* - style.Makefile(5)Gabor Kovesdan2010-02-031-5/+5
| | | | | | | | Submitted by: uqs Approved by: delphij (mentor) Notes: svn path=/head/; revision=203437
* - Remove --debug option and intentionally undocument -d, which is onlyXin LI2010-01-222-15/+10
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=202845
* Move USD documents from /usr/share/doc/papers to to /usr/share/doc/usd.Xin LI2010-01-222-14/+0
| | | | | | | Reviewed by: gabor Notes: svn path=/head/; revision=202843
* Makefile cleanups:Xin LI2010-01-211-6/+1
| | | | | | | | | | | o Enable building of USD o Remove commented out targets o Remove WARNS?=6 lines since it's the default Reviewed by: gabor Notes: svn path=/head/; revision=202761
* Replace GNU bc/dc with BSDL versions ported from OpenBSD. They have a goodGabor Kovesdan2010-01-209-0/+3460
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