summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update .gitignorebaserock/morphJavier Jardón2015-02-111-1/+1
|
* maint: update copyright year ranges to include 2015; update gnulibJim Meyering2015-01-0138-50/+45
|
* maint: enable sc_prohibit_strncpy checkJim Meyering2014-12-203-5/+4
| | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_prohibit_strncpy): Remove its exemption. * sed/compile.c (compile_program): Remove two misuses of strncpy; use memcpy instead. * sed/execute.c (do_list): Likewise, for one instance.
* maint: begin to use "size_t" more, where appropriateJim Meyering2014-12-201-8/+6
| | | | | * sed/execute.c (do_list): Update some "int" locals to "size_t", and combine a few declarations with needlessly separate initializations.
* maint: update .gitignoreJim Meyering2014-12-201-13/+31
| | | | * .gitignore: Ignore build artifacts.
* maint: remove po/sed.pot from version controlJim Meyering2014-12-201-467/+0
| | | | | * po/sed.pot: Remove file. It is unnecessary and undesirable to version-control a file like this (mechanically-derived).
* build: update build tool version requirementsJim Meyering2014-12-201-3/+3
| | | | | * bootstrap.conf (buildreq): Blindly update tool-version number requirements from those required by coreutils.
* maint: fix "make distcheck" failureJim Meyering2014-12-201-2/+2
| | | | | * Makefile.am (EXTRA_DIST): List THANKS.in, not THANKS. Add .mailmap, too.
* build: build-aux/texi2dvi: remove fileJim Meyering2014-12-203-658/+1
| | | | | | | | * build-aux/texi2dvi: Remove file. It was out of date and could no longer parse our .texi files. * Makefile.am (EXTRA_DIST): Don't list it here. * cfg.mk: Remove an exemption for that file. * doc/Makefile.am (TEXI2DVI): Remove definition.
* remove support for the 'L' (fmt/flow-paragraph) commandJim Meyering2014-12-167-645/+7
| | | | | | | | | | | | | * sed/Makefile.am (sed_SOURCES): Remove fmt.c. * sed/execute.c (execute_program): * sed/fmt.c: Remove file. * sed/sed.h (fmt): Remove declaration. * doc/sed.texi: Remove documentation for 'L' command. * doc/sed-in.texi: Likewise. * NEWS (Feature removal): Document it. Prompted by the report from Jodie Cunningham that using this command with a large number could cause sed to segfault: https://bugs.launchpad.net/ubuntu/+source/sed/+bug/1400575
* doc: NEWS: mention the gzip->xz release tarball switchJim Meyering2014-12-011-0/+7
| | | | | * NEWS (Build-related): Mention that we are now distributing only .tar.xz archives; no more gzip-compressed tarballs.
* build: avoid warning about unused fchown resultJim Meyering2014-12-014-2/+7
| | | | | | | | * sed/execute.c: Include "ignore-value.h". (closedown): Explicitly ignore fchown return value. * bootstrap.conf (gnulib_modules): Add ignore-value. * lib/.gitignore: Ignore the new .h file. * .gitignore: Ignore all **~ backup files.
* build: use gnulib's manywarnings moduleJim Meyering2014-11-304-1/+153
| | | | | | | | bootstrap.conf: Add the module name. configure.ac: Copy boilerplate and exclusions from coreutils. sed/Makefile.am (AM_CFLAGS): Define in terms of the two new variables, $(WARN_CFLAGS) and $(WERROR_CFLAGS). m4/.gitignore: Add the two new .m4 files.
* maint: add three casts-in-initialization to avoid warningsJim Meyering2014-11-301-4/+4
| | | | | * sed/compile.c (special_files): When initializing, cast string literals to (char *) to avoid warnings.
* maint: avoid a gcc "const discard" warningJim Meyering2014-11-301-1/+1
| | | | | * sed/compile.c (compile_program): Make a local "const" to avoid discarding "const" attribute in assignment.
* maint: avoid more gcc warnings: apply _GL_ATTRIBUTE_PUREJim Meyering2014-11-302-5/+5
| | | | | | | * sed/utils.h (get_buffer, size_buffer): Make each functions sole parameter "const" and declare the function itself with the "pure" attribute. * sed/utils.c (get_buffer, size_buffer): Adjust definitions to match.
* maint: add _Noreturn attribute to two functionsJim Meyering2014-11-302-2/+2
| | | | | | This avoids two gcc may-be-noreturn warnings: * sed/sed.h (bad_prog): Add _Noreturn attribute. * sed/utils.h (panic): Likewise.
* maint: manually convert K&R to ANSI style decls; and add "static"Jim Meyering2014-11-308-298/+99
| | | | | | | | | | | | | | | | Convert many function definitions from K&R to ANSI style. When possible, make a function static and remove the immediately- preceding declaration of that same function. Also, add the const to a few declarations. * sed/compile.c: As above. (special_files): Likewise. * sed/execute.c: Likewise. * sed/fmt.c: Likewise. * sed/mbcs.c: Likewise. * sed/regexp.c: Likewise. * sed/sed.c: Likewise. * sed/sed.h: Likewise. * sed/utils.c: Likewise.
* maint: declare several "int" locals to be of type size_tJim Meyering2014-11-301-1/+1
| | | | | | * sed/compile.c (compile_program): Using "int" was wrong: not only too narrow, but would also evoke warnings from gcc when comparing with variables of unsigned type.
* maint: avoid gcc warning about unused macroJim Meyering2014-11-301-1/+0
| | | | * sed/regexp.c (END_ERRORS): Remove definition of unused macro.
* maint: avoid false-positive used-uninit. warning from gccJim Meyering2014-11-302-1/+8
| | | | | | * sed/sed.h (IF_LINT): Define. * sed/compile.c (snarf_char_class) [lint]: Use it to initialize DELIM, so that gcc doesn't report it is used uninitialized.
* maint: enable sc_prohibit_empty_lines_at_EOF checkJim Meyering2014-11-3020-22/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | * cfg.mk (exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF): * cfg.mk (local-checks-to-skip): Remove its exemption. Adjust many files to end in a single newline, but exempt a few test suite input and output files. * testsuite/fasts.sed: Remove three empty lines at EOF. * BUGS: Remove empty line at EOF. * sed/mbcs.c: Likewise. * sed/sed.h: Likewise. * testsuite/BOOST.tests: Likewise. * testsuite/dc.inp: Add a newline at EOF; there was none. * testsuite/flipcase.sed: Likewise. * testsuite/utf8-1.good: Likewise. * testsuite/utf8-1.inp: Likewise. * testsuite/utf8-2.good: Likewise. * testsuite/utf8-2.inp: Likewise. * testsuite/utf8-3.good: Likewise. * testsuite/utf8-3.inp: Likewise. * testsuite/utf8-4.good: Likewise. * testsuite/utf8-4.inp: Likewise. * testsuite/xbxcx.good: Likewise. * testsuite/xbxcx.inp: Likewise. * testsuite/xemacs.good: Likewise. * testsuite/xemacs.inp: Likewise.
* maint: enable sc_prohibit_tab_based_indentation syntax checkJim Meyering2014-11-3014-1328/+1330
| | | | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. Exempt all files under testsuite/, for now, and a few others. * .gitmodules: Change each leading TAB to 8 spaces spaces. * BUGS: Likewise. * NEWS: Likewise. * configure.ac: Likewise. * sed/compile.c: Likewise. * sed/execute.c: Likewise. * sed/fmt.c: Likewise. * sed/regexp.c: Likewise. * sed/sed.c: Likewise. * sed/sed.h: Likewise. * sed/utils.c: Likewise. * sed/utils.h: Likewise. * COPYING: Update from coreutils.
* maint: enable sc_m4_quote_check syntax checkJim Meyering2014-11-302-4/+3
| | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * configure.ac: Fix the under-quoting problems thus exposed.
* maint: enable sc_cast_of_argument_to_free syntax checkJim Meyering2014-11-302-2/+1
| | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * testsuite/tst-rxspencer.c (mb_test): Remove a cast.
* maint: enable sc_cast_of_alloca_return_value syntax checkJim Meyering2014-11-302-2/+1
| | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * sed/regexp.c (match_regex): Do not cast return value of alloca.
* maint: enable sc_po_check syntax checkJim Meyering2014-11-302-4/+9
| | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * po/POTFILES.in: Adjust to reflect added/removed file names.
* maint: enable sc_prohibit_always_true_header_tests syntax checkJim Meyering2014-11-301-1/+2
| | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. Exempt configure.ac.
* maint: enable sc_makefile_at_at_check syntax checkJim Meyering2014-11-302-3/+2
| | | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * testsuite/Makefile.am (LDADD, TESTS_ENVIRONMENT): Use $(...) rather than obsolescent @...@ notation.
* maint: enable sc_space_tab syntax checkJim Meyering2014-11-304-5/+6
| | | | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * doc/groupify.sed: Reverse SP-TAB sequences. * sed/compile.c (compile_program): Remove spaces before TAB. * sed/execute.c (append_replacement): Likewise.
* maint: enable sc_program_name syntax checkJim Meyering2014-11-304-3/+7
| | | | | | | | | * cfg.mk (local-checks-to-skip): Remove its exemption. * sed/sed.c: Include progname.h". (program_name): Remove now-unnecessary declaration. (main): Call set_program_name. * bootstrap.conf (gnulib_modules): Add progname. * lib/.gitignore: Append the two new names.
* maint: enable more checksJim Meyering2014-11-3021-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove exemptions for immutable NEWS as well as the two config.h checks. Also accept "sed.h", since the first thing it does is to include <config.h>. * sed/sed.h: Change "config.h" to <config.h>, for consistency with other GNU tools. * sed/utils.c: Likewise, here and for each of the following. * testsuite/bug-regex10.c: * testsuite/bug-regex11.c: * testsuite/bug-regex12.c: * testsuite/bug-regex13.c: * testsuite/bug-regex14.c: * testsuite/bug-regex15.c: * testsuite/bug-regex16.c: * testsuite/bug-regex21.c: * testsuite/bug-regex7.c: * testsuite/bug-regex8.c: * testsuite/bug-regex9.c: * testsuite/runptests.c: * testsuite/runtests.c: * testsuite/tst-boost.c: * testsuite/tst-pcre.c: * testsuite/tst-regex.c: * testsuite/tst-regex2.c: * testsuite/tst-rxspencer.c:
* maint: enable sc_const_long_option syntax checkJim Meyering2014-11-302-2/+1
| | | | | * sed/sed.c (main): Add "const" to decl of longopts. * cfg.mk (local-checks-to-skip): Remove its exemption.
* maint: enable double-word prohibitionJim Meyering2014-11-301-1/+2
| | | | | | * cfg.mk (local-checks-to-skip): Remove exemption for sc_prohibit_doubled_word. Exempt 4 files under testsuite/.
* doc: remove doubled wordJim Meyering2014-11-302-4/+4
| | | | | * doc/sed-in.texi: Remove doubled "the". * doc/sed.texi: Likewise.
* maint: add .prev-versionJim Meyering2014-11-301-0/+1
| | | | * .prev-version: New file.
* maint: turn on the test that prohibits use of HAVE_CONFIG_HJim Meyering2014-11-3019-41/+0
| | | | | | | | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Remove the exemption here. * testsuite/bug-regex10.c: Remove the use of the offending macro. * testsuite/bug-regex11.c: Likewise. * testsuite/bug-regex12.c: Likewise. * testsuite/bug-regex13.c: Likewise. * testsuite/bug-regex14.c: Likewise. * testsuite/bug-regex15.c: Likewise. * testsuite/bug-regex16.c: Likewise. * testsuite/bug-regex21.c: Likewise. * testsuite/bug-regex7.c: Likewise. * testsuite/bug-regex8.c: Likewise. * testsuite/bug-regex9.c: Likewise. * testsuite/runptests.c: Likewise. * testsuite/runtests.c: Likewise. * testsuite/tst-boost.c: Likewise. * testsuite/tst-pcre.c: Likewise. * testsuite/tst-regex.c: Likewise. * testsuite/tst-regex2.c: Likewise. * testsuite/tst-rxspencer.c: Likewise.
* maint: generate THANKS from THANKS.inJim Meyering2014-11-305-60/+114
| | | | | | | | | | | * THANKS.in: Renamed from THANKS, adjusted formatting and added header. Also remove from this list of names those that are now generated automatically. * THANKS: Removed, now that it's generated. * thanks-gen: New file. * Makefile.am (EXTRA_DIST): Add thanks-gen (THANKS): New rule. * .mailmap: New file.
* maint: add cfg.mk, derived from grep'sJim Meyering2014-11-302-1/+144
| | | | | | * cfg.mk (local-checks-to-skip): Exempt many failing tests. (old_NEWS_hash): Define. * NEWS: Tweak wording to avoid semblance of doubled word: in in-place.
* tests: hook up gnulib-testsJim Meyering2014-11-304-4/+13
| | | | | | | * Makefile.am (SUBDIRS): Add gnulib-tests. * gnulib-tests/Makefile.am: New file. * configure.ac (AC_CONFIG_FILES): Add gnulib-tests/Makefile. * .gitignore: Ignore all but Makefile.am.
* maint: .gitignore: ignore moreJim Meyering2014-11-301-6/+26
|
* maint: remove ACLOCAL_AMFLAGS in favor of AC_CONFIG_MACRO_DIRSJim Meyering2014-11-302-3/+1
| | | | | * Makefile.am (ACLOCAL_AMFLAGS): Remove this assignment. * configure.ac: Use this macro instead.
* maint: do not version-control generated files.Jim Meyering2014-11-304-561/+96
| | | | | | | * doc/sed.1: Remove. * po/sed.pot: Likewise. * po/Makevars: Likewise. * .gitignore: Add their names.
* maint: begin to modernize configure.acJim Meyering2014-11-303-3/+6
| | | | | | | | | * configure.ac: Turn on silent rules, by default. Use git-derived versions all the time. Required a new, signed v4.2.2 tag, which I've pushed. Distribute .tar.xz tarballs, not .bzip2 or .gz. * Makefile.am (AUTOMAKE_OPTIONS): Remove. * bootstrap.conf (gnulib_modules): Add git-version-gen.
* maint: convert obsolescent @VAR@ notation to $(VAR)Jim Meyering2014-11-301-3/+1
| | | | * sed/Makefile.am (sed_LDADD): Use $(VAR), no @VAR@.
* maint: update copyright dates; use gnulib's update-copyright moduleJim Meyering2014-11-3034-44/+63
| | | | | | * bootstrap.conf (gnulib_modules): Add update-copyright. Then, run "make update-copyright". * Makefile.am: Add copyright header.
* maint: remove all trailing white spaceJim Meyering2014-11-3045-493/+506
| | | | | | | | | | | 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.
* maint: update autogenerated .gitignore filesJim Meyering2014-11-304-0/+50
|
* maint: update build/gnulib infrastructure; generate ChangeLogJim Meyering2014-11-305-46/+135
| | | | | | | | | | | | * 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.
* maint: update bootstrap from gnulibJim Meyering2014-11-301-287/+634
|