mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
vendor/bc: import version 5.3.3
This version fixes a build issue caused by the strict compiler warnings used when building FreeBSD base system components.
This commit is contained in:
parent
6982f79963
commit
3f739b0595
7
NEWS.md
7
NEWS.md
@ -1,5 +1,12 @@
|
||||
# News
|
||||
|
||||
## 5.3.3
|
||||
|
||||
This is a production release that fixes a build problem in the FreeBSD base
|
||||
system.
|
||||
|
||||
All other users do **NOT** need to upgrade.
|
||||
|
||||
## 5.3.2
|
||||
|
||||
This is a production release that fixes prompt bugs with editline and readline
|
||||
|
@ -37,6 +37,6 @@
|
||||
#define BC_VERSION_H
|
||||
|
||||
/// The current version.
|
||||
#define VERSION 5.3.2
|
||||
#define VERSION 5.3.3
|
||||
|
||||
#endif // BC_VERSION_H
|
||||
|
@ -157,13 +157,14 @@ sigjmp_buf bc_history_jmpbuf;
|
||||
volatile sig_atomic_t bc_history_inlinelib;
|
||||
|
||||
static char* bc_history_prompt;
|
||||
static char bc_history_no_prompt[] = "";
|
||||
static HistEvent bc_history_event;
|
||||
|
||||
static char*
|
||||
bc_history_promptFunc(EditLine* el)
|
||||
{
|
||||
BC_UNUSED(el);
|
||||
return bc_history_prompt;
|
||||
return BC_PROMPT ? bc_history_prompt : bc_history_no_prompt;
|
||||
}
|
||||
|
||||
void
|
||||
@ -172,9 +173,6 @@ bc_history_init(BcHistory* h)
|
||||
BcVec v;
|
||||
char* home;
|
||||
|
||||
// Just set a blank prompt when it is turned off.
|
||||
if (!BC_PROMPT) bc_history_prompt = "";
|
||||
|
||||
home = getenv("HOME");
|
||||
|
||||
// This will hold the true path to the editrc.
|
||||
|
Loading…
Reference in New Issue
Block a user