| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
nullptr in every place a null pointer constant was meant; NULL is gone
from src/.
constexpr where it improves on #define without costing anything: the
IGGCSI00 work-area offsets and sizes, and the scalar sizes MVS_DSN_MAX,
CSI_FIELD_LEN, CSI_WORK_MIN, PDS_DIRBLK, CSI_WORK, CSI_MAX_CALLS. A
constexpr in C is a constant expression, so it still bounds the arrays
that use it, and it now carries a type and can be checked with
static_assert. Feature switches (#if), the CSIETYPE/EBCDIC byte
constants read as octets, and the related-constant enum sets stay as
they were.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
`bind -l` lists the actions the editor can run and `bind
'^[[H'=beginning-of-line` gives one to a key sequence, in the notation
the BSD shells use. Only the names edit_key() already knows are
accepted, so a binding cannot do anything a key could not; `-m` (macro)
is refused rather than ignored. The defaults stay bash's: this is for
people whose .kshrc moves the arrow keys, not a move towards ksh.
`\[` and `\]` in PS1 say "this part does not move the cursor". The
width rule already skips control sequences, so dropping the markers is
the whole implementation, and a coloured prompt now shows its text
instead of the markers.
|
|
|
Language: $'...', aliases, function keyword, (( )) and let, typeset and
integer, print, whence, setvar, ulimit, read -t, RANDOM, SECONDS, the
ERR trap, trap -p, chdir, and more set -o names.
Job control: a job table, process groups, terminal hand-over through
the spawn layer, jobs/fg/bg, wait %n and kill %n.
Interactive: prompt expansion, a built-in line editor with emacs and vi
modes, completion, history with fc and HISTFILE, and libedit as a
compile-time alternative (make EDIT=libedit LDLIBS=-ledit).
The source is now C11 (was C23), uses typedef'd structs and enums, and
has Doxygen comments throughout. Adds .clang-tidy, .clangd and a
Doxyfile.
|