Lines Matching +full:global +full:- +full:reset

4  * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2018-2025 Gavin D. Howard and contributors.
100 * Help generate a string from text. The preprocessor requires this two-step
145 /// The flag for the global stacks option.
171 /// The flag for reset on SIGINT.
181 #define BC_TTYIN (vm->flags & BC_FLAG_TTYIN)
184 #define BC_TTY (vm->flags & BC_FLAG_TTY)
187 #define BC_SIGINT (vm->flags & BC_FLAG_SIGINT)
192 #define BC_S (vm->flags & BC_FLAG_S)
195 #define BC_W (vm->flags & BC_FLAG_W)
198 #define BC_L (vm->flags & BC_FLAG_L)
200 /// A convenience macro for getting the global stacks flag.
201 #define BC_G (vm->flags & BC_FLAG_G)
208 #define DC_X (vm->flags & DC_FLAG_X)
213 #define BC_I (vm->flags & BC_FLAG_I)
216 #define BC_P (vm->flags & BC_FLAG_P)
219 #define BC_R (vm->flags & BC_FLAG_R)
222 #define BC_Z (vm->flags & BC_FLAG_Z)
225 #define BC_EXPR_EXIT (vm->flags & BC_FLAG_EXPR_EXIT)
228 #define BC_DIGIT_CLAMP (vm->flags & BC_FLAG_DIGIT_CLAMP)
238 #define BC_IS_BC (vm->name[0] != 'd')
241 #define BC_IS_DC (vm->name[0] == 'd')
279 /// Returns the string for the SIGINT reset environment variable.
283 /// Returns the string for the SIGINT reset environment variable.
328 /// Returns the default for the SIGINT reset environment variable.
331 /// Returns the string for the SIGINT reset environment variable.
334 /// Returns the string for the SIGINT reset environment variable.
383 /// Returns the default for the SIGINT reset environment variable.
386 /// Returns the string for the SIGINT reset environment variable.
389 /// Returns the string for the SIGINT reset environment variable.
402 #define BC_Z (vm->leading_zeroes)
404 #define BC_DIGIT_CLAMP (vm->digit_clamp)
430 #define BC_MAX_DIM ((BcBigDig) (SIZE_MAX - 1))
433 #define BC_MAX_SCALE ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
436 #define BC_MAX_STRING ((BcBigDig) (BC_NUM_BIGDIG_MAX - 1))
447 #define BC_MAX_RAND ((BcBigDig) (((BcRand) 0) - 1))
455 #define BC_MAX_VARS ((ulong) (SIZE_MAX - 1))
459 /// The size of the global buffer.
462 /// The amount of the global buffer allocated to stdin.
463 #define BC_VM_STDIN_BUF_SIZE (BC_VM_BUF_SIZE - 1)
467 /// The size of the global buffer.
470 /// The amount of the global buffer allocated to stdout.
473 /// The amount of the global buffer allocated to stderr.
476 /// The amount of the global buffer allocated to stdin.
477 #define BC_VM_STDIN_BUF_SIZE (BC_VM_STDERR_BUF_SIZE - 1)
492 #define BC_VM_SAFE_RESULT(r) ((r)->t >= BC_RESULT_TEMP)
495 #define BC_VM_INVALID_CATALOG ((nl_catd) - 1)
507 /// The global vm struct. This holds all of the global data besides the file
513 /// (manuals/development.md#async-signal-safe-signal-handling) for more
517 /// Non-zero if a jump series is in progress and items should be popped off
520 /// (manuals/development.md#async-signal-safe-signal-handling) for more
547 /// A vector of jmp_bufs for doing a jump series. This allows exception-type
594 /// Non-zero when signals are "locked." This is volatile sig_atomic_t
596 /// manual (manuals/development.md#async-signal-safe-signal-handling) for
600 /// Non-zero when a signal has been received, but not acted on. This is
603 /// (manuals/development.md#async-signal-safe-signal-handling) for more
699 /// BC_BASE_POW - last_pow.
759 /// string-like things.
765 /// BC_REDEFINE_KEYWORDS is non-zero.
783 * Print the copyright banner and help if it's non-NULL.
784 * @param help The help message to print if it's non-NULL.
799 * Initializes some of the BcVm global. This is separate to make things easier
806 * Frees the BcVm global.
923 * Reads a line from the command-line expressions into BcVm's buffer field.
1080 /// A reference to the global data.
1083 /// The global data.
1086 /// A reference to the global output buffers.