summaryrefslogtreecommitdiff
path: root/include/program.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2023-01-28 20:08:43 +0000
committerStefan Eßer <se@FreeBSD.org>2023-01-28 20:08:43 +0000
commit1a63323d17fedb05b6962853e821c9d7c6b9853e (patch)
tree97f1d2e585fa485b0dcea42f46de98bdb6c09327 /include/program.h
parent3c2ba19f6b2f58c7cb3389e595d6afe7310c0d6b (diff)
vendor/bc: import version 6.2.2vendor/bc/6.2.2
This is a production release that fixes a bug. The bug was that if an array element was used as a parameter, and then a later parameter had the same name as the array whose element was used, bc would grab the element from the new array parameter, not the actual element from before the function call.
Diffstat (limited to 'include/program.h')
-rw-r--r--include/program.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/program.h b/include/program.h
index 3acd5157b127..3a3ea6c9dab7 100644
--- a/include/program.h
+++ b/include/program.h
@@ -220,20 +220,11 @@ typedef struct BcProgram
#if !BC_ENABLED
-/// This define disappears the parameter last because for dc only, last is
-/// always true.
-#define bc_program_copyToVar(p, name, t, last) \
- bc_program_copyToVar_impl(p, name, t)
-
/// Returns true if the calculator should pop after printing.
#define BC_PROGRAM_POP(pop) (pop)
#else // !BC_ENABLED
-// This is here to quiet a compiler warning.
-#define bc_program_copyToVar(p, name, t, last) \
- bc_program_copyToVar_impl(p, name, t, last)
-
/// Returns true if the calculator should pop after printing.
#define BC_PROGRAM_POP(pop) (BC_IS_BC || (pop))