vendor/bc: import version 6.2.0

This is a production release with a new feature and a few bug fixes.

The bug fixes include:

 - A crash when bc and dc are built using editline, but history is not
   activated.
 - A missing local in the uint*() family of functions in the extended
   math library.
 - A failure to clear the tail call list in dc on error.
 - A crash when attempting to swap characters in command-line history
   when no characters exist.
 - SIGWINCH was activated even when history was not.

The new feature is that stack traces are now given for runtime errors.
In debug mode, the C source file and line of errors are given as well.
This commit is contained in:
Stefan Eßer 2023-01-28 21:02:27 +01:00
parent 0b671e8cf1
commit e7017237c9
136 changed files with 633 additions and 497 deletions

View File

@ -1,6 +1,6 @@
# License
Copyright (c) 2018-2021 Gavin D. Howard <yzena.tech@gmail.com>
Copyright (c) 2018-2023 Gavin D. Howard <gavin@yzena.com>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@ -31,7 +31,7 @@ copyrights and license:
Copyright (c) 2010-2014, Salvatore Sanfilippo <antirez at gmail dot com><br>
Copyright (c) 2010-2013, Pieter Noordhuis <pcnoordhuis at gmail dot com><br>
Copyright (c) 2018 rain-1 <rain1@openmailbox.org><br>
Copyright (c) 2018-2021, Gavin D. Howard <yzena.tech@gmail.com>
Copyright (c) 2018-2023, Gavin D. Howard <gavin@yzena.com>
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
@ -60,7 +60,7 @@ The files `src/rand.c` and `include/rand.h` are under the following copyrights
and license:
Copyright (c) 2014-2017 Melissa O'Neill and PCG Project contributors
Copyright (c) 2018-2021 Gavin D. Howard <yzena.tech@gmail.com>
Copyright (c) 2018-2023 Gavin D. Howard <gavin@yzena.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

View File

@ -38,7 +38,7 @@ existed in.
The first version without this bug is `6.1.0`.
* In version `6.0.0` of `bcl`, there is several use of initialized data that
* In version `6.0.0` of `bcl`, there are several uses of initialized data that
have the same root cause: I forgot to call `memset()` on the per-thread global
data. This is because the data used to be *actually* global, which meant that
it was initialized to zero by the system. This happened because I thought I

View File

@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

23
NEWS.md
View File

@ -1,5 +1,28 @@
# News
## 6.2.0
This is a production release with a new feature and a few bug fixes.
The bug fixes include:
* A crash when `bc` and `dc` are built using editline, but history is not
activated.
* A missing local in the `uint*()` family of functions in the extended math
library.
* A failure to clear the tail call list in `dc` on error.
* A crash when attempting to swap characters in command-line history when no
characters exist.
* `SIGWINCH` was activated even when history was not.
The new feature is that stack traces are now given for runtime errors. In debug
mode, the C source file and line of errors are given as well.
## 6.1.1
This is a production release that fixes a build issue with predefined builds and
generated tests.
## 6.1.0
This is a production release that fixes a discrepancy from the `bc` standard,

View File

@ -1,6 +1,6 @@
# Notice
Copyright 2018-2021 Gavin D. Howard and contributors.
Copyright 2018-2023 Gavin D. Howard and contributors.
## Contributors

View File

@ -318,7 +318,8 @@ may prove useful to any serious users.
This `bc` compares favorably to GNU `bc`.
* This `bc` builds natively on Windows.
* It has more extensions, which make this `bc` more useful for scripting.
* It has more extensions, which make this `bc` more useful for scripting. (See
[Extensions](#extensions).)
* This `bc` is a bit more POSIX compliant.
* It has a much less buggy parser. The GNU `bc` will give parse errors for what
is actually valid `bc` code, or should be. For example, putting an `else` on
@ -341,6 +342,58 @@ There is one instance where this `bc` is slower: if scripts are light on math.
This is because this `bc`'s intepreter is slightly slower than GNU `bc`, but
that is because it is more robust. See the [benchmarks][19].
### Extensions
Below is a non-comprehensive list of extensions that this `bc` and `dc` have
that all others do not.
* An extended math library. (See [here][30] for more information.)
* A command-line prompt.
* Turning on and off digit clamping. (Digit clamping is about how to treat
"invalid" digits for a particular base. GNU `bc` uses it, and the BSD `bc`
does not. Mine does both.)
* A pseudo-random number generator. This includes the ability to set the seed
and get reproducible streams of random numbers.
* The ability to use stacks for the globals `scale`, `ibase`, and `obase`
instead of needing to restore them in *every* function.
* The ability to *not* use non-standard keywords. For example, `abs` is a
keyword (a built-in function), but if some script actually defines a function
called that, it's possible to tell my `bc` to not treat it as a keyword, which
will make the script parses correctly.
* The ability to turn on and off printing leading zeroes on numbers greater than
`-1` and less than `1`.
* Outputting in scientific and engineering notation.
* Accepting input in scientific and engineering notation.
* Passing strings and arrays to the `length()` built-in function. (In `dc`, the
`Y` command will do this for arrays, and the `Z` command will do this for both
numbers and strings.)
* The `abs()` built-in function. (This is the `b` command in `dc`.)
* The `is_number()` and `is_string()` built-in functions. (These tell whether a
variable is holding a string or a number, for runtime type checking. The
commands are `u` and `t` in `dc`.)
* For `bc` only, the `divmod()` built-in function for computing a quotient and
remainder at the same time.
* For `bc` only, the `asciify()` built-in function for converting an array to a
string.
* The `$` truncation operator. (It's the same in `bc` and `dc`.)
* The `@` "set scale" operator. (It's the same in `bc` and `dc`.)
* The decimal shift operators. (`<<` and `>>` in `bc`, `H` and `h` in `dc`.)
* Built-in functions or commands to get the max of `scale`, `ibase`, and
`obase`.
* The ability to put strings into variables in `bc`. (This always existed in
`dc`.)
* The `'` command in `dc` for the depth of the execution stack.
* The `y` command in `dc` for the depth of register stacks.
* Built-in functions or commands to get the value of certain environment
variables that might affect execution.
* The `stream` keyword to do the same thing as the `P` command in `dc`.
* Defined order of evaluation.
* Defined exit statuses.
* All environment variables other than `POSIXLY_CORRECT`, `BC_ENV_ARGS`, and
`BC_LINE_LENGTH`.
* The ability for users to define their own defaults for various options during
build. (See [here][31] for more information.)
## Algorithms
To see what algorithms this `bc` uses, see the [algorithms manual][7].
@ -441,3 +494,5 @@ Folders:
[27]: https://en.wikipedia.org/wiki/Bus_factor
[28]: ./manuals/development.md
[29]: https://github.com/gavinhoward/bc
[30]: ./manuals/bc/A.1.md#extended-library
[31]: ./manuals/build.md#settings

View File

@ -1,3 +0,0 @@
# TODO
* Implement the more efficient factorial.

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@ -714,7 +714,7 @@ predefined_build() {
hist=1
hist_impl="editline"
extra_math=1
generate_tests=0
generate_tests=$generate_tests
install_manpages=0
nls=1
force=0
@ -747,7 +747,7 @@ predefined_build() {
hist=1
hist_impl="internal"
extra_math=1
generate_tests=1
generate_tests=$generate_tests
install_manpages=1
nls=1
force=0
@ -1019,13 +1019,6 @@ while getopts "abBcdDeEfgGhHik:lMmNO:p:PrS:s:tTvz-" opt; do
fi
MAN3DIR="$2"
shift ;;
localedir=?*) LOCALEDIR="$LONG_OPTARG" ;;
localedir)
if [ "$#" -lt 2 ]; then
usage "No argument given for '--$arg' option"
fi
LOCALEDIR="$2"
shift ;;
karatsuba-len=?*) karatsuba_len="$LONG_OPTARG" ;;
karatsuba-len)
if [ "$#" -lt 2 ]; then

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -250,8 +250,7 @@ define ubytes(x){
define sbytes(x){
auto p,n,z
z=(x<0)
x=abs(x)
x=x$
x=abs(x)$
n=ubytes(x)
p=2^(n*8-1)
if(x>p||(!z&&x==p))n*=2
@ -311,21 +310,19 @@ define void pnlznl(x){
print"\n"
}
define void output_byte(x,i){
auto j,p,y,b
j=ibase
ibase=A
auto j,p,y,b,s
s=scale
scale=0
x=abs(x)$
b=x/(2^(i*8))
b%=256
y=log(256,obase)
j=2^8
b%=j
y=log(j,obase)
if(b>1)p=log(b,obase)+1
else p=b
for(i=y-p;i>0;--i)print 0
if(b)print b
scale=s
ibase=j
}
define void output_uint(x,n){
auto i

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -68,7 +68,7 @@ static const char* const bc_gen_ex_end = "{{ end }}";
// This is exactly what it looks like. It just slaps a simple license header on
// the generated C source file.
static const char* const bc_gen_header =
"// Copyright (c) 2018-2021 Gavin D. Howard and contributors.\n"
"// Copyright (c) 2018-2023 Gavin D. Howard and contributors.\n"
"// Licensed under the 2-clause BSD license.\n"
"// *** AUTOMATICALLY GENERATED FROM %s. DO NOT MODIFY. ***\n\n";
// clang-format on

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@ -82,7 +82,7 @@ if [ -n "$remove_tabs" ]; then
fi
cat<<EOF
// Copyright (c) 2018-2021 Gavin D. Howard and contributors.
// Copyright (c) 2018-2023 Gavin D. Howard and contributors.
// Licensed under the 2-clause BSD license.
// *** AUTOMATICALLY GENERATED FROM ${input}. DO NOT MODIFY. ***

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -43,10 +43,30 @@
#include <vector.h>
#include <lang.h>
// Two convencience macros for throwing errors in lex code. They take care of
// plumbing like passing in the current line the lexer is on.
/**
* A convenience macro for throwing errors in lex code. This takes care of
* plumbing like passing in the current line the lexer is on.
* @param l The lexer.
* @param e The error.
*/
#ifndef NDEBUG
#define bc_lex_err(l, e) (bc_vm_handleError((e), __FILE__, __LINE__, (l)->line))
#else // NDEBUG
#define bc_lex_err(l, e) (bc_vm_handleError((e), (l)->line))
#endif // NDEBUG
/**
* A convenience macro for throwing errors in lex code. This takes care of
* plumbing like passing in the current line the lexer is on.
* @param l The lexer.
* @param e The error.
*/
#ifndef NDEBUG
#define bc_lex_verr(l, e, ...) \
(bc_vm_handleError((e), __FILE__, __LINE__, (l)->line, __VA_ARGS__))
#else // NDEBUG
#define bc_lex_verr(l, e, ...) (bc_vm_handleError((e), (l)->line, __VA_ARGS__))
#endif // NDEBUG
// BC_LEX_NEG_CHAR returns the char that corresponds to negative for the
// current calculator.

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -105,22 +105,32 @@
#define bc_parse_pushIndex(p, idx) (bc_vec_pushIndex(&(p)->func->code, (idx)))
/**
* A convenience macro for throwing errors in parse code. They take care of
* A convenience macro for throwing errors in parse code. This takes care of
* plumbing like passing in the current line the lexer is on.
* @param p The parser.
* @param e The error.
*/
#ifndef NDEBUG
#define bc_parse_err(p, e) \
(bc_vm_handleError((e), __FILE__, __LINE__, (p)->l.line))
#else // NDEBUG
#define bc_parse_err(p, e) (bc_vm_handleError((e), (p)->l.line))
#endif // NDEBUG
/**
* A convenience macro for throwing errors in parse code. They take care of
* A convenience macro for throwing errors in parse code. This takes care of
* plumbing like passing in the current line the lexer is on.
* @param p The parser.
* @param e The error.
* @param ... The varags that are needed.
*/
#ifndef NDEBUG
#define bc_parse_verr(p, e, ...) \
(bc_vm_handleError((e), __FILE__, __LINE__, (p)->l.line, __VA_ARGS__))
#else // NDEBUG
#define bc_parse_verr(p, e, ...) \
(bc_vm_handleError((e), (p)->l.line, __VA_ARGS__))
#endif // NDEBUG
// Forward declarations.
struct BcParse;

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -320,6 +320,13 @@ bc_program_free(BcProgram* p);
#endif // NDEBUG
/**
* Prints a stack trace of the bc functions or dc strings currently executing.
* @param p The program.
*/
void
bc_program_printStackTrace(BcProgram* p);
#if BC_DEBUG_CODE
#if BC_ENABLED && DC_ENABLED

View File

@ -13,7 +13,7 @@
* This code is under the following license:
*
* Copyright (c) 2014-2017 Melissa O'Neill and PCG Project contributors
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -687,11 +687,18 @@ typedef enum BcMode
/// Returns true if an exception is in flight, false otherwise.
#define BC_SIG_EXC(vm) \
BC_UNLIKELY(vm->status != (sig_atomic_t) BC_STATUS_SUCCESS || vm->sig)
BC_UNLIKELY((vm)->status != (sig_atomic_t) BC_STATUS_SUCCESS || (vm)->sig)
/// Returns true if there is *no* exception in flight, false otherwise.
#define BC_NO_SIG_EXC(vm) \
BC_LIKELY(vm->status == (sig_atomic_t) BC_STATUS_SUCCESS && !vm->sig)
BC_LIKELY((vm)->status == (sig_atomic_t) BC_STATUS_SUCCESS && !(vm)->sig)
#ifndef _WIN32
#define BC_SIG_INTERRUPT(vm) \
BC_UNLIKELY((vm)->sig != 0 && (vm)->sig != SIGWINCH)
#else // _WIN32
#define BC_SIG_INTERRUPT(vm) BC_UNLIKELY((vm)->sig != 0)
#endif // _WIN32
#ifndef NDEBUG
@ -773,7 +780,7 @@ typedef enum BcMode
} \
while (0)
/*
/**
* Locks signals, but stores the old lock state, to be restored later by
* BC_SIG_TRYUNLOCK.
* @param v The variable to store the old lock state to.
@ -786,7 +793,8 @@ typedef enum BcMode
} \
while (0)
/* Restores the previous state of a signal lock, and if it is now unlocked,
/**
* Restores the previous state of a signal lock, and if it is now unlocked,
* initiates an exception/jump.
* @param v The old lock state.
*/
@ -949,19 +957,33 @@ typedef enum BcMode
* @param l The line of the script that the error happened.
* @param ... Extra arguments for error messages as necessary.
*/
#ifndef NDEBUG
#define bc_error(e, l, ...) \
(bc_vm_handleError((e), __FILE__, __LINE__, (l), __VA_ARGS__))
#else // NDEBUG
#define bc_error(e, l, ...) (bc_vm_handleError((e), (l), __VA_ARGS__))
#endif // NDEBUG
/**
* Call bc's error handling routine.
* @param e The error.
*/
#ifndef NDEBUG
#define bc_err(e) (bc_vm_handleError((e), __FILE__, __LINE__, 0))
#else // NDEBUG
#define bc_err(e) (bc_vm_handleError((e), 0))
#endif // NDEBUG
/**
* Call bc's error handling routine.
* @param e The error.
*/
#ifndef NDEBUG
#define bc_verr(e, ...) \
(bc_vm_handleError((e), __FILE__, __LINE__, 0, __VA_ARGS__))
#else // NDEBUG
#define bc_verr(e, ...) (bc_vm_handleError((e), 0, __VA_ARGS__))
#endif // NDEBUG
#endif // BC_ENABLE_LIBRARY

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -37,6 +37,6 @@
#define BC_VERSION_H
/// The current version.
#define VERSION 6.1.0
#define VERSION 6.2.0
#endif // BC_VERSION_H

View File

@ -3,7 +3,7 @@
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018-2021 Gavin D. Howard and contributors.
* Copyright (c) 2018-2023 Gavin D. Howard and contributors.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@ -668,9 +668,6 @@ typedef struct BcVm
/// The function to call to parse expressions.
BcParseExpr expr;
/// The text to display to label functions in error messages.
const char* func_header;
/// The names of the categories of errors.
const char* err_ids[BC_ERR_IDX_NELEMS + BC_ENABLED];
@ -957,6 +954,7 @@ bc_vm_getenvFree(char* val);
*/
void
bc_vm_jmp(const char* f);
#else // BC_DEBUG_CODE
/**
@ -993,16 +991,42 @@ bc_vm_atexit(void);
#else // BC_ENABLE_LIBRARY
/**
* Calculates the number of decimal digits in the argument.
* @param val The value to calculate the number of decimal digits in.
* @return The number of decimal digits in @a val.
*/
size_t
bc_vm_numDigits(size_t val);
#ifndef NDEBUG
/**
* Handle an error. This is the true error handler. It will start a jump series
* if an error occurred. POSIX errors will not cause jumps when warnings are on
* or no POSIX errors are enabled.
* @param e The error.
* @param file The source file where the error occurred.
* @param fline The line in the source file where the error occurred.
* @param line The bc source line where the error occurred.
*/
void
bc_vm_handleError(BcErr e, const char* file, int fline, size_t line, ...);
#else // NDEBUG
/**
* Handle an error. This is the true error handler. It will start a jump series
* if an error occurred. POSIX errors will not cause jumps when warnings are on
* or no POSIX errors are enabled.
* @param e The error.
* @param line The source line where the error occurred.
* @param line The bc source line where the error occurred.
*/
void
bc_vm_handleError(BcErr e, size_t line, ...);
#endif // NDEBUG
/**
* Handle a fatal error.
* @param e The error.
@ -1024,12 +1048,6 @@ bc_vm_atexit(int status);
/// A reference to the copyright header.
extern const char bc_copyright[];
/// A reference to the format string for source code line printing.
extern const char* const bc_err_line;
/// A reference to the format string for source code function printing.
extern const char* const bc_err_func_header;
/// A reference to the array of default error category names.
extern const char* bc_errs[];

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Headers for printing errors/warnings.
$set 1
1 "Funktion:"
$ Error types.
$set 2
$set 1
1 "Rechenfehler:"
2 "Analysefehler:"
@ -43,7 +38,7 @@ $set 2
5 "Warnung:"
$ Math errors.
$set 3
$set 2
1 "negative Zahl"
2 "Nicht-Ganzzahl-Wert"
@ -51,7 +46,7 @@ $set 3
4 "Division durch 0"
$ Parse errors.
$set 4
$set 3
1 "Ende der Datei"
2 "ungültiges Zeichen: '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX erlaubt keine Zuweisung von Strings an Variablen oder Arrays"
$ Runtime errors.
$set 5
$set 4
1 "ungültige \"ibase\": muss im Intervall [%lu, %lu] liegen"
2 "ungültige \"obase\": muss im Intervall [%lu, %lu] liegen"
@ -100,7 +95,7 @@ $set 5
11 "kann keinen ungültigen Wert in einem Ausdruck verwenden"
$ Fatal errors.
$set 6
$set 5
1 "Speicherzuweisung fehlgeschlagen"
2 "Ein-Ausgabe-Fehler"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Headers for printing errors/warnings.
$set 1
1 "Funktion:"
$ Error types.
$set 2
$set 1
1 "Rechenfehler:"
2 "Analysefehler:"
@ -43,7 +38,7 @@ $set 2
5 "Warnung:"
$ Math errors.
$set 3
$set 2
1 "negative Zahl"
2 "Nicht-Ganzzahl-Wert"
@ -51,7 +46,7 @@ $set 3
4 "Division durch 0"
$ Parse errors.
$set 4
$set 3
1 "Ende der Datei"
2 "ungültiges Zeichen: '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX erlaubt keine Zuweisung von Strings an Variablen oder Arrays"
$ Runtime errors.
$set 5
$set 4
1 "ungültige \"ibase\": muss im Intervall [%lu, %lu] liegen"
2 "ungültige \"obase\": muss im Intervall [%lu, %lu] liegen"
@ -100,7 +95,7 @@ $set 5
11 "kann keinen ungültigen Wert in einem Ausdruck verwenden"
$ Fatal errors.
$set 6
$set 5
1 "Speicherzuweisung fehlgeschlagen"
2 "Ein-Ausgabe-Fehler"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Function:"
$ Error types.
$set 2
$set 1
1 "Math error:"
2 "Parse error:"
@ -43,7 +38,7 @@ $set 2
5 "Warning:"
$ Math errors.
$set 3
$set 2
1 "negative number"
2 "non-integer number"
@ -51,7 +46,7 @@ $set 3
4 "divide by 0"
$ Parse errors.
$set 4
$set 3
1 "end of file"
2 "invalid character '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX does not allow strings to be assigned to variables or arrays"
$ Runtime errors.
$set 5
$set 4
1 "invalid ibase: must be [%lu, %lu]"
2 "invalid obase: must be [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "cannot use a void value in an expression"
$ Fatal errors.
$set 6
$set 5
1 "memory allocation failed"
2 "I/O error"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Función:"
$ Error types.
$set 2
$set 1
1 "Error de matemática:"
2 "Error de syntaxis:"
@ -43,7 +38,7 @@ $set 2
5 "Advertencia:"
$ Math errors.
$set 3
$set 2
1 "número negativo"
2 "número no es entero"
@ -51,7 +46,7 @@ $set 3
4 "división por cero"
$ Parse errors.
$set 4
$set 3
1 "fin de archivo"
2 "no válido '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX no permite asignar cadenas a variables o matrices"
$ Runtime errors.
$set 5
$set 4
1 "\"ibase\" no es válido: debe ser [%lu, %lu]"
2 "\"obase\" no es válido: debe ser [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "no puede utilizar un valor vacío en una expresión"
$ Fatal errors.
$set 6
$set 5
1 "error en la asignación de memoria"
2 "error de I/O"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Función:"
$ Error types.
$set 2
$set 1
1 "Error de matemática:"
2 "Error de syntaxis:"
@ -43,7 +38,7 @@ $set 2
5 "Advertencia:"
$ Math errors.
$set 3
$set 2
1 "número negativo"
2 "número no es entero"
@ -51,7 +46,7 @@ $set 3
4 "división por cero"
$ Parse errors.
$set 4
$set 3
1 "fin de archivo"
2 "no válido '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX no permite asignar cadenas a variables o matrices"
$ Runtime errors.
$set 5
$set 4
1 "\"ibase\" no es válido: debe ser [%lu, %lu]"
2 "\"obase\" no es válido: debe ser [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "no puede utilizar un valor vacío en una expresión"
$ Fatal errors.
$set 6
$set 5
1 "error en la asignación de memoria"
2 "error de I/O"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Fonction :"
$ Error types.
$set 2
$set 1
1 "Erreur de calcul :"
2 "Erreur d'analyse syntaxique :"
@ -43,7 +38,7 @@ $set 2
5 "Avertissement :"
$ Math errors.
$set 3
$set 2
1 "nombre strictement négatif"
2 "nombre non entier"
@ -51,7 +46,7 @@ $set 3
4 "division par 0"
$ Parse errors.
$set 4
$set 3
1 "fin de fichier"
2 "caractère invalide '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX interdit pas d'assigner des chaînes de caractères à des variables ou à des tableaux"
$ Runtime errors.
$set 5
$set 4
1 "ibase invalide : doit être [%lu, %lu]"
2 "obase invalide : doit être [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "une valeur 'void' est inutilisable dans une expression"
$ Fatal errors.
$set 6
$set 5
1 "échec d'allocation mémoire"
2 "erreur d'entrée-sortie"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Fonction :"
$ Error types.
$set 2
$set 1
1 "Erreur de calcul :"
2 "Erreur d'analyse syntaxique :"
@ -43,7 +38,7 @@ $set 2
5 "Avertissement :"
$ Math errors.
$set 3
$set 2
1 "nombre strictement négatif"
2 "nombre non entier"
@ -51,7 +46,7 @@ $set 3
4 "division par 0"
$ Parse errors.
$set 4
$set 3
1 "fin de fichier"
2 "caractère invalide '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX interdit pas d'assigner des chaînes de caractères à des variables ou à des tableaux"
$ Runtime errors.
$set 5
$set 4
1 "ibase invalide : doit être [%lu, %lu]"
2 "obase invalide : doit être [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "une valeur 'void' est inutilisable dans une expression"
$ Fatal errors.
$set 6
$set 5
1 "échec d'allocation mémoire"
2 "erreur d'entrée-sortie"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ その他のメッセージ。
$set 1
1 "関数:"
$ エラーの種類。
$set 2
$set 1
1 "数学のエラー:"
2 "パースエラー:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学のエラーです。
$set 3
$set 2
1 "負の数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "0で割る"
$ 構文解析のエラー。
$set 4
$set 3
1 "ファイルの終了"
2 "無効な文字 '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIXでは、変数や配列に文字列を割り当てることはできません。"
$ ランタイムエラー。
$set 5
$set 4
1 "無効なibaseは[%lu、%lu]でなければなりません"
2 "無効なobaseは[%lu、%lu]でなければなりません"
@ -100,7 +95,7 @@ $set 5
11 "式では void 値を使用できません"
$ 致命的なエラーが発生しました。
$set 6
$set 5
1 "メモリの割り当てに失敗しました"
2 "I/Oエラー"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ その他のメッセージ。
$set 1
1 "関数:"
$ エラーの種類。
$set 2
$set 1
1 "数学のエラー:"
2 "パースエラー:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学のエラーです。
$set 3
$set 2
1 "負の数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "0で割る"
$ 構文解析のエラー。
$set 4
$set 3
1 "ファイルの終了"
2 "無効な文字 '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIXでは、変数や配列に文字列を割り当てることはできません。"
$ ランタイムエラー。
$set 5
$set 4
1 "無効なibaseは[%lu、%lu]でなければなりません"
2 "無効なobaseは[%lu、%lu]でなければなりません"
@ -100,7 +95,7 @@ $set 5
11 "式では void 値を使用できません"
$ 致命的なエラーが発生しました。
$set 6
$set 5
1 "メモリの割り当てに失敗しました"
2 "I/Oエラー"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Diversen berichten.
$set 1
1 "Functie:"
$ Fouttypes.
$set 2
$set 1
1 "Rekenfout:"
2 "Parse error:"
@ -43,7 +38,7 @@ $set 2
5 "Waarschuwing:"
$ Math error.
$set 3
$set 2
1 "negatief getal"
2 "niet-integraal getal"
@ -51,7 +46,7 @@ $set 3
4 "delen door 0"
$ Parsefouten.
$set 4
$set 3
1 "einde van het file"
2 "ongeldig teken '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX staat niet toe dat strings worden toegewezen aan variabelen of arrays"
$ Runtime fouten.
$set 5
$set 4
1 "ongeldige ibase: moet [%lu, %lu] zijn"
2 "ongeldige obase: moet [%lu, %lu] zijn"
@ -100,7 +95,7 @@ $set 5
11 "kan geen nietige waarde in een uitdrukking gebruiken"
$ Fatale fouten.
$set 6
$set 5
1 "geheugentoewijzing mislukt"
2 "I/O-fout"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Diversen berichten.
$set 1
1 "Functie:"
$ Fouttypes.
$set 2
$set 1
1 "Rekenfout:"
2 "Parse error:"
@ -43,7 +38,7 @@ $set 2
5 "Waarschuwing:"
$ Math error.
$set 3
$set 2
1 "negatief getal"
2 "niet-integraal getal"
@ -51,7 +46,7 @@ $set 3
4 "delen door 0"
$ Parsefouten.
$set 4
$set 3
1 "einde van het file"
2 "ongeldig teken '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX staat niet toe dat strings worden toegewezen aan variabelen of arrays"
$ Runtime fouten.
$set 5
$set 4
1 "ongeldige ibase: moet [%lu, %lu] zijn"
2 "ongeldige obase: moet [%lu, %lu] zijn"
@ -100,7 +95,7 @@ $set 5
11 "kan geen nietige waarde in een uitdrukking gebruiken"
$ Fatale fouten.
$set 6
$set 5
1 "geheugentoewijzing mislukt"
2 "I/O-fout"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Ró¿ne wiadomo¶ci.
$set 1
1 "Funkcja:"
$ Typy błędów.
$set 2
$set 1
1 "Błąd matematyczny:"
2 "Błąd parse'a:"
@ -43,7 +38,7 @@ $set 2
5 "Ostrzeżenie:"
$ Błędy matematyczne.
$set 3
$set 2
1 "liczba ujemna"
2 "numer nieintegracyjny"
@ -51,7 +46,7 @@ $set 3
4 "dzielenie przez 0"
$ Błędy Parse'a.
$set 4
$set 3
1 "koniec akt"
2 "nieważny znak '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX nie pozwala na przypisywanie ciągów znaków do zmiennych lub tablic"
$ Błędy Runtime'u.
$set 5
$set 4
1 "nieprawidłowa ibase: musi być [%lu, %lu]"
2 "nieprawidłowa obase: musi być [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "nie może użyć wartości pustej w wyrażeniu"
$ Fatalne błędy.
$set 6
$set 5
1 "Alokacja pamięci nie powiodła się"
2 "Błąd we/wy"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Różne wiadomości.
$set 1
1 "Funkcja:"
$ Typy błędów.
$set 2
$set 1
1 "Błąd matematyczny:"
2 "Błąd parse'a:"
@ -43,7 +38,7 @@ $set 2
5 "Ostrzeżenie:"
$ Błędy matematyczne.
$set 3
$set 2
1 "liczba ujemna"
2 "numer nieintegracyjny"
@ -51,7 +46,7 @@ $set 3
4 "dzielenie przez 0"
$ Błędy Parse'a.
$set 4
$set 3
1 "koniec akt"
2 "nieważny znak '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX nie pozwala na przypisywanie ciągów znaków do zmiennych lub tablic"
$ Błędy Runtime'u.
$set 5
$set 4
1 "nieprawidłowa ibase: musi być [%lu, %lu]"
2 "nieprawidłowa obase: musi być [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "nie może użyć wartości pustej w wyrażeniu"
$ Fatalne błędy.
$set 6
$set 5
1 "Alokacja pamięci nie powiodła się"
2 "Błąd we/wy"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Função:"
$ Error types.
$set 2
$set 1
1 "Erro de cálculo:"
2 "Erro de análise de sintaxe:"
@ -43,7 +38,7 @@ $set 2
5 "Aviso:"
$ Math errors.
$set 3
$set 2
1 "número negativo"
2 "número não inteiro"
@ -51,7 +46,7 @@ $set 3
4 "dividir por 0"
$ Parse errors.
$set 4
$set 3
1 "fim do arquivo"
2 "caractere inválido '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX não permite a atribuição de cadeias de caracteres a variáveis ou matrizes"
$ Runtime errors.
$set 5
$set 4
1 "ibase inválido: deve ser [%lu, %lu]"
2 "obase inválido: deve ser [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "um valor 'void' não pode ser usado em uma expressão"
$ Fatal errors.
$set 6
$set 5
1 "falha na alocação de memória"
2 "erro de entrada-saída"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Miscellaneous messages.
$set 1
1 "Função:"
$ Error types.
$set 2
$set 1
1 "Erro de cálculo:"
2 "Erro de análise de sintaxe:"
@ -43,7 +38,7 @@ $set 2
5 "Aviso:"
$ Math errors.
$set 3
$set 2
1 "número negativo"
2 "número não inteiro"
@ -51,7 +46,7 @@ $set 3
4 "dividir por 0"
$ Parse errors.
$set 4
$set 3
1 "fim do arquivo"
2 "caractere inválido '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX não permite a atribuição de cadeias de caracteres a variáveis ou matrizes"
$ Runtime errors.
$set 5
$set 4
1 "ibase inválido: deve ser [%lu, %lu]"
2 "obase inválido: deve ser [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "um valor 'void' não pode ser usado em uma expressão"
$ Fatal errors.
$set 6
$set 5
1 "falha na alocação de memória"
2 "erro de entrada-saída"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Ðàçíûå ñîîáùåíèÿ.
$set 1
1 "Ôóíêöèÿ:"
$ Типы ошибок.
$set 2
$set 1
1 "Математическая ошибка:"
2 "Ошибка при разборе:"
@ -43,7 +38,7 @@ $set 2
5 "Предупреждение:"
$ Математические ошибки.
$set 3
$set 2
1 "отрицательное число"
2 "неинтегрированное число"
@ -51,7 +46,7 @@ $set 3
4 "делить на 0"
$ Ошибки при разборе.
$set 4
$set 3
1 "конец файла"
2 "недопустимый символ '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX не позволяет присваивать строки переменным или массивам"
$ Ошибки выполнения.
$set 5
$set 4
1 "Недействительный ibase: должен быть [%lu, %lu]"
2 "Недействительный obase: должен быть [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "не может использовать пустое значение в выражении"
$ Фатальные ошибки.
$set 6
$set 5
1 "Не удалось выделить память"
2 "Ошибка ввода/вывода"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ <20> §­ë¥ á®®¡é¥­¨ï.
$set 1
1 "”ã­ªæ¨ï:"
$ ’¨¯ë ®è¨¡®ª.
$set 2
$set 1
1 "Œ â¥¬ â¨ç¥áª ï ®è¨¡ª :"
2 "Žè¨¡ª  ¯à¨ à §¡®à¥:"
@ -43,7 +38,7 @@ $set 2
5 "<22>।ã¯à¥¦¤¥­¨¥:"
$ Œ â¥¬ â¨ç¥áª¨¥ ®è¨¡ª¨.
$set 3
$set 2
1 "®âà¨æ â¥«ì­®¥ ç¨á«®"
2 "­¥¨­â¥£à¨à®¢ ­­®¥ ç¨á«®"
@ -51,7 +46,7 @@ $set 3
4 "¤¥«¨âì ­  0"
$ Žè¨¡ª¨ ¯à¨ à §¡®à¥.
$set 4
$set 3
1 "ª®­¥æ ä ©« "
2 "­¥¤®¯ãáâ¨¬ë© á¨¬¢®« '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX ­¥ ¯®§¢®«ï¥â ¯à¨á¢ ¨¢ âì áâப¨ ¯¥à¥¬¥­­ë¬ ¨«¨ ¬ áᨢ ¬"
$ Žè¨¡ª¨ ¢ë¯®«­¥­¨ï.
$set 5
$set 4
1 "<22>¥¤¥©á⢨⥫ì­ë© ibase: ¤®«¦¥­ ¡ëâì [%lu, %lu]"
2 "<22>¥¤¥©á⢨⥫ì­ë© obase: ¤®«¦¥­ ¡ëâì [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "­¥ ¬®¦¥â ¨á¯®«ì§®¢ âì ¯ãá⮥ §­ ç¥­¨¥ ¢ ¢ëà ¦¥­¨¨"
$ ” â «ì­ë¥ ®è¨¡ª¨.
$set 6
$set 5
1 "<22>¥ 㤠«®áì ¢ë¤¥«¨âì ¯ ¬ïâì"
2 "Žè¨¡ª  ¢¢®¤ /¢ë¢®¤ "

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ ÀÐ×ÝëÕ áÞÞÑéÕÝØï.
$set 1
1 "ÄãÝÚæØï:"
$ Типы ошибок.
$set 2
$set 1
1 "Математическая ошибка:"
2 "Ошибка при разборе:"
@ -43,7 +38,7 @@ $set 2
5 "Предупреждение:"
$ Математические ошибки.
$set 3
$set 2
1 "отрицательное число"
2 "неинтегрированное число"
@ -51,7 +46,7 @@ $set 3
4 "делить на 0"
$ Ошибки при разборе.
$set 4
$set 3
1 "конец файла"
2 "недопустимый символ '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX не позволяет присваивать строки переменным или массивам"
$ Ошибки выполнения.
$set 5
$set 4
1 "Недействительный ibase: должен быть [%lu, %lu]"
2 "Недействительный obase: должен быть [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "не может использовать пустое значение в выражении"
$ Фатальные ошибки.
$set 6
$set 5
1 "Не удалось выделить память"
2 "Ошибка ввода/вывода"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ òÁÚÎÙÅ ÓÏÏÂÝÅÎÉÑ.
$set 1
1 "æÕÎËÃÉÑ:"
$ Типы ошибок.
$set 2
$set 1
1 "Математическая ошибка:"
2 "Ошибка при разборе:"
@ -43,7 +38,7 @@ $set 2
5 "Предупреждение:"
$ Математические ошибки.
$set 3
$set 2
1 "отрицательное число"
2 "неинтегрированное число"
@ -51,7 +46,7 @@ $set 3
4 "делить на 0"
$ Ошибки при разборе.
$set 4
$set 3
1 "конец файла"
2 "недопустимый символ '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX не позволяет присваивать строки переменным или массивам"
$ Ошибки выполнения.
$set 5
$set 4
1 "Недействительный ibase: должен быть [%lu, %lu]"
2 "Недействительный obase: должен быть [%lu, %lu]"
@ -99,7 +94,7 @@ $set 5
10 "не может использовать пустое значение в выражении"
$ Фатальные ошибки.
$set 6
$set 5
1 "Не удалось выделить память"
2 "Ошибка ввода/вывода"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ Разные сообщения.
$set 1
1 "Функция:"
$ Типы ошибок.
$set 2
$set 1
1 "Математическая ошибка:"
2 "Ошибка при разборе:"
@ -43,7 +38,7 @@ $set 2
5 "Предупреждение:"
$ Математические ошибки.
$set 3
$set 2
1 "отрицательное число"
2 "неинтегрированное число"
@ -51,7 +46,7 @@ $set 3
4 "делить на 0"
$ Ошибки при разборе.
$set 4
$set 3
1 "конец файла"
2 "недопустимый символ '%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX не позволяет присваивать строки переменным или массивам"
$ Ошибки выполнения.
$set 5
$set 4
1 "Недействительный ibase: должен быть [%lu, %lu]"
2 "Недействительный obase: должен быть [%lu, %lu]"
@ -100,7 +95,7 @@ $set 5
11 "не может использовать пустое значение в выражении"
$ Фатальные ошибки.
$set 6
$set 5
1 "Не удалось выделить память"
2 "Ошибка ввода/вывода"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ 杂项信息。
$set 1
1 "函数:"
$ 错误类型。
$set 2
$set 1
1 "数学错误:"
2 "解析错误:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学错误。
$set 3
$set 2
1 "负数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "除以0"
$ 解析错误。
$set 4
$set 3
1 "文件结束"
2 "无效字符'%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX不允许将字符串分配给变量或数组"
$ 运行时错误。
$set 5
$set 4
1 "无效的ibase: 必须是[%lu, %lu]"
2 "无效的obase必须是[%lu%lu]"
@ -100,7 +95,7 @@ $set 5
11 “不能在表达式中使用空值”
$ 致命错误。
$set 6
$set 5
1 "内存分配失败"
2 "I/O错误"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ 杂项信息。
$set 1
1 "函数:"
$ 错误类型。
$set 2
$set 1
1 "数学错误:"
2 "解析错误:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学错误。
$set 3
$set 2
1 "负数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "除以0"
$ 解析错误。
$set 4
$set 3
1 "文件结束"
2 "无效字符'%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX不允许将字符串分配给变量或数组"
$ 运行时错误。
$set 5
$set 4
1 "无效的ibase: 必须是[%lu, %lu]"
2 "无效的obase必须是[%lu%lu]"
@ -100,7 +95,7 @@ $set 5
11 “不能在表达式中使用空值”
$ 致命错误。
$set 6
$set 5
1 "内存分配失败"
2 "I/O错误"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ 杂项信息。
$set 1
1 "函数:"
$ 错误类型。
$set 2
$set 1
1 "数学错误:"
2 "解析错误:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学错误。
$set 3
$set 2
1 "负数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "除以0"
$ 解析错误。
$set 4
$set 3
1 "文件结束"
2 "无效字符'%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX不允许将字符串分配给变量或数组"
$ 运行时错误。
$set 5
$set 4
1 "无效的ibase: 必须是[%lu, %lu]"
2 "无效的obase必须是[%lu%lu]"
@ -100,7 +95,7 @@ $set 5
11 “不能在表达式中使用空值”
$ 致命错误。
$set 6
$set 5
1 "内存分配失败"
2 "I/O错误"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ 杂项信息。
$set 1
1 "函数:"
$ 错误类型。
$set 2
$set 1
1 "数学错误:"
2 "解析错误:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学错误。
$set 3
$set 2
1 "负数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "除以0"
$ 解析错误。
$set 4
$set 3
1 "文件结束"
2 "无效字符'%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX不允许将字符串分配给变量或数组"
$ 运行时错误。
$set 5
$set 4
1 "无效的ibase: 必须是[%lu, %lu]"
2 "无效的obase必须是[%lu%lu]"
@ -100,7 +95,7 @@ $set 5
11 “不能在表达式中使用空值”
$ 致命错误。
$set 6
$set 5
1 "内存分配失败"
2 "I/O错误"

View File

@ -1,7 +1,7 @@
$ $
$ SPDX-License-Identifier: BSD-2-Clause
$ $
$ Copyright (c) 2018-2021 Gavin D. Howard and contributors.
$ Copyright (c) 2018-2023 Gavin D. Howard and contributors.
$ $
$ Redistribution and use in source and binary forms, with or without
$ modification, are permitted provided that the following conditions are met:
@ -28,13 +28,8 @@ $ $
$quote "
$ 杂项信息。
$set 1
1 "函数:"
$ 错误类型。
$set 2
$set 1
1 "数学错误:"
2 "解析错误:"
@ -43,7 +38,7 @@ $set 2
5 "警告:"
$ 数学错误。
$set 3
$set 2
1 "负数"
2 "非整数"
@ -51,7 +46,7 @@ $set 3
4 "除以0"
$ 解析错误。
$set 4
$set 3
1 "文件结束"
2 "无效字符'%c'"
@ -85,7 +80,7 @@ $set 4
30 "POSIX不允许将字符串分配给变量或数组"
$ 运行时错误。
$set 5
$set 4
1 "无效的ibase: 必须是[%lu, %lu]"
2 "无效的obase必须是[%lu%lu]"
@ -100,7 +95,7 @@ $set 5
11 “不能在表达式中使用空值”
$ 致命错误。
$set 6
$set 5
1 "内存分配失败"
2 "I/O错误"

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -132,7 +132,7 @@ the environment variable `GEN_EMU`.
This `bc` supports `CC`, `HOSTCC`, `HOST_CC`, `CFLAGS`, `HOSTCFLAGS`,
`HOST_CFLAGS`, `CPPFLAGS`, `LDFLAGS`, `LDLIBS`, `PREFIX`, `DESTDIR`, `BINDIR`,
`DATAROOTDIR`, `DATADIR`, `MANDIR`, `MAN1DIR`, `LOCALEDIR` `EXECSUFFIX`,
`DATAROOTDIR`, `DATADIR`, `MANDIR`, `MAN1DIR`, `MAN3DIR`, `EXECSUFFIX`,
`EXECPREFIX`, `LONG_BIT`, `GEN_HOST`, and `GEN_EMU` environment variables in
`configure.sh`. Any values of those variables given to `configure.sh` will be
put into the generated Makefile.
@ -276,13 +276,13 @@ Can be overridden by passing the `--man1dir` option to `configure.sh`.
Defaults to `$MANDIR/man1`.
#### `LOCALEDIR`
#### `MAN3DIR`
The directory to install locales in.
The directory to install Section 3 manpages in.
Can be overridden by passing the `--localedir` option to `configure.sh`.
Can be overridden by passing the `--man3dir` option to `configure.sh`.
Defaults to `$DATAROOTDIR/locale`.
Defaults to `$MANDIR/man3`.
#### `EXECSUFFIX`
@ -709,19 +709,18 @@ The relevant `autotools`-style install options are supported in `configure.sh`:
* `--datadir`
* `--mandir`
* `--man1dir`
* `--localedir`
* `--man3dir`
An example is:
```
./configure.sh --prefix=/usr --localedir /usr/share/nls
./configure.sh --prefix=/usr
make
make install
```
They correspond to the environment variables `$PREFIX`, `$BINDIR`,
`$DATAROOTDIR`, `$DATADIR`, `$MANDIR`, `$MAN1DIR`, and `$LOCALEDIR`,
respectively.
`$DATAROOTDIR`, `$DATADIR`, `$MANDIR`, `$MAN1DIR`, `$MAN3DIR`, and respectively.
***WARNING***: Locales ignore the prefix because they *must* be installed at a
fixed location to work at all. If you do not want that to happen, you must

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -1,7 +1,7 @@
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.\" Copyright (c) 2018-2021 Gavin D. Howard and contributors.
.\" Copyright (c) 2018-2023 Gavin D. Howard and contributors.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
SPDX-License-Identifier: BSD-2-Clause
Copyright (c) 2018-2021 Gavin D. Howard and contributors.
Copyright (c) 2018-2023 Gavin D. Howard and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

View File

@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
# Copyright (c) 2018-2021 Gavin D. Howard and contributors.
# Copyright (c) 2018-2023 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:

Some files were not shown because too many files have changed in this diff Show More