46 Commits
Author SHA1 Message Date
Jim Meyering 026c55f63c avoid new "make syntax-check" failures
* po/POTFILES.in: Add lib/getopt.c.
* lib/.gitignore: Add getopt-related names for recent change, and sort.
2025-03-09 09:18:44 -07:00
Paul Eggert fd9898dc4b maint: omit unnecessary Gnulib modules
* basicdefs.h: Do not include alloca.h.
* bootstrap.conf (gnulib_modules): Remove alloca, stdalign,
c-ctype, closeout, mbrlen, verify.
Add version-etc.
* lib/.gitignore, m4/.gitignore: Omit now-unused files.
* po/POTFILES.in: Remove closeout.c.
* testsuite/test-mbrtowc.c: Do not include closeout.h.
(main): Close stdout by hand, to avoid a dependency on closeout.
2023-01-30 09:58:54 -08:00
Paul Eggert 8a13de6943 maint: update .gitignore files 2023-01-30 09:58:54 -08:00
Paul Eggert cc351c8251 Update, simplify, and sort .gitignore files 2022-07-02 17:06:39 -05:00
Assaf Gordon 71de42fd34 maint: update all copyright year number ranges
Run "make update-copyright" and then...
* gnulib: Update to latest with copyright year adjusted.
* bootstrap.conf (gnulib_modules): Remove getopt module, depracated in
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=0abc38bd2a1398f0
* po/POTFILES.in: Remove getopt.c
* sed/utils.h (panic): Rename _GL_ATTRIBUTE_FORMAT_PRINTF to
_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD following gnulib's change:
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=387d654cabd7bc15
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
2021-01-05 17:02:10 -07:00
Jim Meyering ba26be8954 dfa: reflect move of dfa code to new gnulib module
* bootstrap.conf (gnulib_modules): Add dfa.
* sed/dfa.c: Remove file.
* sed/dfa.h: Likewise.
* sed/local.mk (sed_sed_SOURCES): Remove dfa.c.
(NOINST_HEADERS): Remove dfa.h.
* sed/regexp.c (compile_regex_1): Use new dfasyntax API.
* sed/sed.c (localeinfo): New global.
(main): Call init_localeinfo to initialize it.
* sed/sed.h: Include localeinfo.h and declare the new global.
* lib/.gitignore: Ignore new gnulib-imported files.
* m4/.gitignore: Likewise.
* po/POTFILES.in: s,sed/dfa.c,lib/dfa.c,
2016-09-11 20:53:03 -07:00
Norihiro Tanaka cbd13f729d sed: use grep's DFA matcher to speed up regular expression matching
When possible, sed now uses grep's DFA matcher to match regular
expression, often resulting in a 10x speed-up.
* NEWS (Improvements): Mention it.  Move this section to the top.
* sed/local.mk (sed_sed_SOURCES): Add dfa.c, and sort file names.
(noinst_HEADERS): Add dfa.h, and sort file names.
* sed/regexp.c (dfaerror, dfawarn): New functions.
(compile_regex_1): Compile pattern with dfa.
(match_regex): Use dfa.
* sed/sed.h: Include dfa.h.
(struct regex): New member dfa.
* sed/dfa.c: New file, copied from grep.
* sed/dfa.h: New file, copied from grep.
* po/POTFILES.in: Add sed/dfa.c.
2016-08-08 17:50:49 -07:00
Assaf Gordon bc182c966e maint: update .gitignore after bootstrap
Added by running ./bootstrap on a clean sed repository.

* build-aux/.gitignore: Add config.rpath.
* lib/.gitignore: Add additional gnulib C files.
* m4/.gitignore: Add additional gnulib m4 files.
* po/.gitignore: Add additional PO-related files.
2016-07-26 22:13:37 -04:00
Assaf Gordon 77a7c6a731 tests: skip tests upon buggy mbrtowc implementations
Sed tests purposefully use invalid non-utf8 multibyte sequences to
test sed's handling of invalid input/program.
Some implementations wrongly accept invalid sequences, causing false
alarms. Add a test program to detect such buggy implementations and skip
the tests if needed.
See discussion in:
http://lists.gnu.org/archive/html/sed-devel/2016-07/msg00005.html
http://lists.gnu.org/archive/html/sed-devel/2016-07/msg00000.html
http://lists.gnu.org/archive/html/sed-devel/2016-06/msg00031.html
http://lists.gnu.org/archive/html/sed-devel/2016-06/msg00014.html

* bootstrap.conf: Add gnulib's closeout module.
* m4/.gitignore, lib/.gitignore, po/POTFILES.in: Adjust after adding
closeout module.
* testsuite/Makefile.am (check_PROGRAMS): Add new program.
* testsuite/test-mbrtowc.c: New program.
* testsuite/init.cfg (require_valid_ja_eucjp_locale_)
(require_valid_ja_shiftjis_locale_): New functions. Call test-mbrtowc
with known invalid multibyte sequences to ensure implementation is not
buggy and rejects them; Skip test otherwise.
* testsuite/invalid-mb-seq-UMR.sh: Use require_valid_ja_eucjp_locale_.
* testsuite/mb-charclass-non-utf8.sh: Use require_valid_ja_shiftjis_locale_.
2016-07-06 20:29:07 -04:00
Jim Meyering 0a6fe4a625 maint: remove po/sed.pot from version control
* po/sed.pot: Remove file.  It is unnecessary and undesirable to
version-control a file like this (mechanically-derived).
2014-12-20 16:11:49 -08:00
Jim Meyering c0babfb931 maint: enable sc_po_check syntax check
* cfg.mk (local-checks-to-skip): Remove its exemption.
* po/POTFILES.in: Adjust to reflect added/removed file names.
2014-11-30 18:59:34 -08:00
Jim Meyering b741f318d0 maint: do not version-control generated files.
* doc/sed.1: Remove.
* po/sed.pot: Likewise.
* po/Makevars: Likewise.
* .gitignore: Add their names.
2014-11-30 18:59:33 -08:00
Jim Meyering d0c7a7dc82 maint: remove all trailing white space
First, run this command:
  git grep -l '	 $'|xargs perl -pi -e 's/[ \t]+$//'
Then some minor fix-up to make the two newly-failing tests
pass once again:
* testsuite/mac-mf.sed: Append this, s/ $//,
to eliminate trailing spaces in the actual output.
* testsuite/y-newline.good: Manually remove a trailing
space between two concatenated prompts.
2014-11-30 18:59:32 -08:00
Jim Meyering f6756292cf maint: update build/gnulib infrastructure; generate ChangeLog
* ChangeLog-2014: Renamed from ChangeLog.
* po/ChangeLog-2014: Renamed from po/ChangeLog.
* Makefile.am (EXTRA_DIST): Add the two new file names.
(dist-hook): Generate ChangeLog at tarball-creation time.
(gen-ChangeLog): New rule.  Just like the one in coreutils and grep.
* bootstrap.conf (gnulib_modules): Add the modules, readme-release
and gitlog-to-changelog, and revamp to be much more like grep and
coreutils.
* lib/Makefile.am: Update.
2014-11-30 18:59:32 -08:00
Paolo Bonzini ced39febc8 Regenerate files
2012-12-21  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed.texi: Regenerate.
	* doc/sed.1: Regenerate.
	* po/sed.pot: Regenerate.
2012-12-22 15:12:27 +01:00
Paolo Bonzini db462e5466 update .pot file
2009-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* po/sed.pot: Update.
2009-10-14 11:18:30 +02:00
Paolo Bonzini feaa20792f bump version number to 4.2.1
2009-06-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Bump version.
	* NEWS: Bump version.
	* gnulib: Update.
	* doc/sed.1: Regenerate.
2009-06-27 15:25:59 +02:00
Paolo Bonzini 5a30fa2129 bump version number 2009-05-11 09:05:08 +02:00
Paolo Bonzini 9e971bab12 update gnulib prior to release 2009-03-31 10:02:59 +02:00
Paolo Bonzini 17a36e7d1f update .gitignore files 2008-07-11 15:21:33 +02:00
Paolo Bonzini b26af57c7c update for newer gnulib
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Update for newer gnulib.
2008-05-15 09:54:55 +02:00
Paolo Bonzini 6b96a347ca add .gitattributes file 2008-04-10 11:14:38 +02:00
Paolo Bonzini f3eea031a6 upgrade autoboot 2008-01-16 08:37:50 +01:00
Paolo Bonzini c1067081c5 switch to GPLv3
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
2008-01-09 16:12:27 +01:00
Paolo Bonzini 068afd076e bump version to 4.1c and fix some warnings
2006-12-29  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Fix warnings.
	* sed/execute.c: Fix warnings.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-91
2008-01-09 16:12:25 +01:00
Paolo Bonzini f6aa842534 bump version number to 4.1b
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-85
2008-01-09 16:12:21 +01:00
Paolo Bonzini ba68fb42b8 --posix disables all extensions to regular expressions
2006-12-15  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Disable all extensions on --posix.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-84
2008-01-09 16:12:20 +01:00
Paolo Bonzini cba6413f07 finish gnulib conversion -- upgrade bootstrap and a few details
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-79
2008-01-09 16:12:16 +01:00
Paolo Bonzini 59ee990c6b gnulibify part 2, use gnulib-tool in autoboot and remove PO files from repo
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-76
2008-01-09 16:12:14 +01:00
Paolo Bonzini ac9a20b3fb gnulibify and add ACL support
2006-09-24  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c: Support ACLs.
	* lib/utils.c: Move...
	* sed/utils.c: ... here, and remove xmalloc.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
2008-01-09 16:12:13 +01:00
Paolo Bonzini 3a8e165ab0 treat cygwin CR/LF correctly (and by design, not by chance)
2006-08-03  Paolo Bonzini  <bonzini@gnu.org>
            Corinna Vinschen  <vinschen@redhat.com>

        * lib/getline.c (getline): Remove Windows special casing.
        * lib/utils.c (register_open_file, ck_fdopen): New.
        (ck_fopen, ck_mkstemp): Use register_open_file.
        * lib/utils.h (ck_fdopen): New.
        * sed/execute.c (open_next_file): Reopen stdin.
        * sed/sed.h (read_mode): New.
        * sed/sed.c (read_mode): New.
        (main): Set it on --binary.
        (usage): Document --binary.
        * sed/compile.c (get_openfile): Change second argument to char
        and turn it into a string within the function.  Adjust callers.
        * sed/execute.c (dump_append_queue, open_next_file): Use it
        as mode for ck_fopen.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-71
2008-01-09 16:12:11 +01:00
Paolo Bonzini 4ca34ac568 don't rely on malloc(0) != NULL
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-69
2008-01-09 16:12:09 +01:00
Paolo Bonzini 3cfe7fdf8a Fix compilation on non-GCC compilers, update po files
2006-05-15  Hans-Bernhard Bröker <broeker@physik.rwth-aachen.de>

	* sed/basicdefs.h (OB_MALLOC): Turn VCAST into void * cast.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-66
2008-01-09 16:12:07 +01:00
Paolo Bonzini 034190bd22 fix for freebsd sed
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-64
2008-01-09 16:12:05 +01:00
Paolo Bonzini 44536f208a bump version number to 4.1.5
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-63
2008-01-09 16:12:04 +01:00
Paolo Bonzini 811c3446c6 merge with glibc regex
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-59
2008-01-09 16:12:01 +01:00
Paolo Bonzini 34b6da2799 remove RCS markers
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-55
2008-01-09 16:11:58 +01:00
Paolo Bonzini d3f8e118d5 fix handling of [^]xyz]
2005-05-16  Eero Hakkinen  <eero17@bigfoot.com>

	* sed/compile.c (snarf_char_class): Fix handling of
	[^]xyz].

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-47
2008-01-09 16:11:51 +01:00
Paolo Bonzini 480bc129c1 update PO files from translation project
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-46
2008-01-09 16:11:50 +01:00
Paolo Bonzini cf7d4aadd2 include config.h from within obstack.h
2005-02-08  Paolo Bonzini  <bonzini@gnu.org>

	* lib/obstack.h: include config.h.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-41
2008-01-09 16:11:46 +01:00
Paolo Bonzini b48e80e8ad prepare for 4.1.4 release
2005-01-25  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Fix building on GCC 2.95 and earlier.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-35
2008-01-09 16:11:42 +01:00
Paolo Bonzini fd8f5daad7 more portability improvements
2004-11-11  Paolo Bonzini  <bonzini@gnu

	* tst-rxspecer.c: Do not mix instructions and
	declarations.
	* basicdefs.h: Include locale.h before #defining
	gettext, to avoid breakage under Solaris.
	* sed/sed.c: do not include locale.h.

po:
2004-11-11  Paolo Bonzini  <bonzini@gnu.org>

	* Makevars: New.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-18
2008-01-09 16:10:52 +01:00
Paolo Bonzini c27b981aba add tagging conventions and fix configure for gettext 0.14
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-15
2008-01-09 16:10:50 +01:00
Paolo Bonzini 21555923d4 fix builds with included gettext
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-6
2008-01-09 16:10:44 +01:00
Paolo Bonzini 016372d25f add .gitignore files 2008-01-09 16:10:40 +01:00
Paolo Bonzini 9c9919efe2 initial import
(automatically generated log message)

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0
2004-10-20 21:42:31 +00:00