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:
Stefan Eßer 2022-06-15 11:34:25 +02:00
parent 6982f79963
commit 3f739b0595
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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.