mirror of
git://git.sv.gnu.org/sed
synced 2026-11-19 15:26:19 +03:00
4e2995cd01965695f191eec1774c1b9b985b3dc9
When handling the y command, or the case-changing replacement, stay a bit more in the wchar_t world, to simplify allocation and help make future changes simpler. * basicdefs.h (STREQ_LEN): Remove; no longer used. * cfg.mk (sc_prohibit_strncmp): Don’t suggest STREQ_LEN. * sed/compile.c (compile_program): * sed/execute.c (str_append_modified, translate_mb): Instead of preserving the bytes of a multibyte character, just save its wchar_t counterpart, or negative of its single-byte encoding error. * sed/debug.c (debug_print_mb): New static function. (debug_print_translation): Use it to adjust to new data structure. * sed/execute.c (translate_mb): Args are now NPAIRS and PAIR, not TRANS. Caller changed. * sed/sed.h (struct sed_cmd.translate.mb): Now a struct with an npairs and pair members, instead of a single char **. All uses changed.
This is the GNU implementation of sed, the Unix stream editor. GNU Sed website: https://www.gnu.org/software/sed/ See the NEWS file for a brief summary and the ChangeLog for more detailed descriptions of changes. If you obtained this file as part of a "git clone", then see the README-hacking file. If this file came to you as part of a tar archive, then see the file INSTALL for compilation and installation instructions. See the file BUGS for instructions about reporting bugs. See the files AUTHORS and THANKS for a list of authors and other contributors. See the file COPYING for copying conditions. After installation run 'sed --help' or 'man sed' for short usage information, and 'info sed' for the complete manual. The manual is also available on sed's website.
Description
SED (stream editor) - неинтерактивный текстовый редактор командной строки
https://www.gnu.org/software/sed/
3 MiB
0 Stars
1 Watchers
0 Forks
Languages
Shell
43%
C
26.4%
Perl
16.5%
sed
7.3%
Makefile
5.2%
Other
1.6%