vendor/bc: import of version 5.3.1

This update does not contain any functional change, but fixes two
minor build issues:

- Temporary files were created in the source directory, causing build
  failures if the sources were not writable at build time.
- A message catalogue contained extra characters that were ignored but
  made gencat print warning messages.
This commit is contained in:
Stefan Eßer 2022-06-11 11:54:23 +02:00
parent 5bdd626528
commit bd54318046
4 changed files with 16 additions and 8 deletions

View File

@ -1,5 +1,11 @@
# News
## 5.3.1
This is a production release that fixes a build problem in the FreeBSD base
system, as well as a problem in the `en_US` locale. If you don't have problems
with either, you do not need to upgrade.
## 5.3.0
This is a production release that adds features and has a few bug fixes.

View File

@ -52,17 +52,19 @@ label="$5"
define="$6"
remove_tabs="$7"
tmpinput=$(mktemp -t "${input##*/}")
if [ "$exclude" -ne 0 ]; then
filter_text "$input" "$input.tmp" "E"
filter_text "$input" "$tmpinput" "E"
else
filter_text "$input" "$input.tmp" "A"
filter_text "$input" "$tmpinput" "A"
fi
input="$input.tmp"
exec < "$input"
exec < "$tmpinput"
exec > "$output"
rm -f "$tmpinput"
if [ -n "$label" ]; then
nameline="const char *${label} = \"${input}\";"
labelexternline="extern const char *${label};"

View File

@ -37,6 +37,6 @@
#define BC_VERSION_H
/// The current version.
#define VERSION 5.3.0
#define VERSION 5.3.1
#endif // BC_VERSION_H

View File

@ -77,10 +77,10 @@ $set 4
22 "POSIX does not allow comparison operators outside if statements or loops"
23 "POSIX requires 0 or 1 comparison operators per condition"
24 "POSIX requires all 3 parts of a for loop to be non-empty"
25 "POSIX requires a newline between a semicolon and a function definition",
25 "POSIX requires a newline between a semicolon and a function definition"
26 "POSIX does not allow exponential notation"
27 "POSIX does not allow array references as function parameters"
28 "POSIX does not allow void functions",
28 "POSIX does not allow void functions"
29 "POSIX requires the left brace be on the same line as the function header"
30 "POSIX does not allow strings to be assigned to variables or arrays"