summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-0161-89/+67
| | | | | | Use this command: git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \ env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
* fix multi-byte-locale read-beyond-end-of-buffer errorJim Meyering2009-12-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid read-beyond-end-of-buffer errors, evoked by running this: LC_ALL=en_US.UTF-8 valgrind src/grep -f <(printf 'a\nb\n') <(echo c) Conditional jump or move depends on uninitialised value(s) at 0x78136D: __gconv_transform_utf8_internal (in /lib/libc-2.11.so) by 0x7E7232: mbrtowc (in /lib/libc-2.11.so) by 0x8055773: dfaexec (dfa.c:2816) by 0x804D7B0: EGexecute (search.c:353) by 0x804ACD8: grepbuf (grep.c:1036) by 0x804B023: grep (grep.c:1156) by 0x804B460: grepfile (grep.c:1287) by 0x804CF0D: main (grep.c:2282) Conditional jump or move depends on uninitialised value(s) at 0x7E7248: mbrtowc (in /lib/libc-2.11.so) by 0x8055773: dfaexec (dfa.c:2816) by 0x804D7B0: EGexecute (search.c:353) by 0x804ACD8: grepbuf (grep.c:1036) by 0x804B023: grep (grep.c:1156) by 0x804B460: grepfile (grep.c:1287) by 0x804CF0D: main (grep.c:2282) * src/dfa.c (dfaexec) [MBS_SUPPORT]: Do not access one byte beyond end of buffer.
* build: update gnulib submodule to latestJim Meyering2009-12-231-0/+0
|
* Speed up insert.Paolo Bonzini2009-12-232-13/+17
| | | | | | Suggested by Johan Walles <johan.walles@gmail.com> (bug 23354). * src/dfa.c (insert): Use binary search.
* Decrease epsclosure memory usageJohan Walles2009-12-231-2/+2
| | | | | | Fixes bug 23321. * src/dfa.c (epsclosure): Make visited an array of char.
* Make 'grep -1 -2' and 'grep -1v2' equivalent to grep -2Paolo Bonzini2009-12-223-7/+26
| | | | | | | Fixes bug 12128. * src/grep.c (get_nondigit_option): Reset the buffer every time a non-digit option is found or a new argument is started.
* Improve description of --labelPaolo Bonzini2009-12-222-6/+6
| | | | | | | Fixes bug 22681. * doc/grep.1 (--label): Use -H in the example, improve wording. * doc/grep.texi (Output Line Prefix Control): Likewise.
* Avoid using an invalid memchr result.Paolo Bonzini2009-12-222-6/+12
| | | | | | | Related to bug 13161. I cannot find a testcase, but it is better to be defensive considering that these bug were found in the past. * src/search.c (EGexecute, Fexecute): Check for memchr return values.
* build: update gnulib submodule to latestJim Meyering2009-12-112-0/+1
|
* maint: enable prohibit_have_config_h checkJim Meyering2009-12-046-16/+5
| | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_prohibit_have_config_h * lib/regex.c: Remove useless cpp test of HAVE_CONFIG_H. * lib/savedir.c: Likewise. * src/grep.c: Likewise. * src/kwset.c: Likewise. * src/search.c: Likewise.
* maint: enable cast_of_x_alloc_return_value checkJim Meyering2009-12-045-10/+9
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_cast_of_x_alloc_return_value. * .x-sc_cast_of_x_alloc_return_value: * src/dfa.c (CALLOC, MALLOC, REALLOC): Remove casts. * src/dosbuf.c (undossify_input): Likewise. * src/grep.c (print_line_middle, prepend_default_options): Likewise.
* maint: enable cast_of_alloca_return_value checkJim Meyering2009-12-042-1/+1
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_cast_of_alloca_return_value. * .x-sc_cast_of_alloca_return_value: New file.
* fix "grep -Ff" on CRLF-terminated filesPaolo Bonzini2009-12-041-6/+20
| | | | | * src/search.c (Fcompile) [HAVE_DOS_FILE_CONTENTS]: Recognize \r\n as a line terminator.
* fix compilation with included regexPaolo Bonzini2009-12-041-0/+1
| | | | * Makefile.am (libgreputils_a_DEPENDENCIES): New.
* switch to pkg-config for PCRE detectionPaolo Bonzini2009-12-042-5/+7
| | | | | * configure.ac: use pkg-config to detect PCRE * src/Makefile.am (grep_LDADD): link grep with PCRE_LIBS
* maint: remove "missing" scriptJim Meyering2009-12-041-375/+0
| | | | * missing: Remove now-unused file.
* maint: make .gitignore ignore moreJim Meyering2009-12-041-0/+10
| | | | * .gitignore: Ignore more.
* maint: enable useless-if-before-free checkJim Meyering2009-12-044-13/+9
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free. * .x-sc_avoid_if_before_free: New file. Exempt regex.c and dfa.c, in case anyone ever tries to merge their contents with other versions. * src/grep.c (print_line_middle, grepdir): Remove useless if-before-free. * src/search.c (IF_BK, EXECUTE_FCT): Likewise.
* maint: enable po-checkJim Meyering2009-12-042-9/+6
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_po_check. * po/POTFILES.in: Sort and update.
* update gnulib, fixing missing inclusion of stdbool.hPaolo Bonzini2009-12-031-0/+0
| | | | * gnulib: Update.
* maint: enable two checksJim Meyering2009-11-303-5/+3
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable two: sc_prohibit_xalloc_without_use sc_two_space_separator_in_usage * src/grep.c (usage): Conform: use two spaces, not 1. * src/kwset.c (malloc): Define as a function-macro so that the syntax-check rule sees that we are indeed using xmalloc here.
* maint: enable makefile_path_separator checkJim Meyering2009-11-301-1/+0
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_makefile_path_separator_check, now that the sole offender, an old po/Makefile.in.in, is gone.
* maint: remove now-generated file: po/Makefile.in.inJim Meyering2009-11-301-429/+0
| | | | * po/Makefile.in.in: Remove file, now generated via bootstrap.
* maint: enable makefile @...@ checkJim Meyering2009-11-304-5/+2
| | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_makefile_check. * lib/Makefile.am (libgreputils_a_LIBADD): Use $(...), rather than anachronistic @...@ notation. * src/Makefile.am (LDADD): Likewise. * tests/Makefile.am (AWK): Remove definition.
* maint: enable trailing_blank checkJim Meyering2009-11-3016-24/+23
| | | | | | | | | | | | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_trailing_blank. * AUTHORS: Remove trailing blanks. * COPYING: Likewise. * README: Likewise. * README-alpha: Likewise. * README-boot: Likewise. * THANKS: Likewise. * TODO: Likewise. * src/dfa.c: Likewise. * src/mbsupport.h: Likewise. * tests/backref.sh: Likewise. * tests/file.sh: Likewise. * tests/options.sh: Likewise. * tests/tests: Likewise. * vms/README: Likewise. * vms/make.com: Likewise.
* maint: enable unmarked_diagnostics checkJim Meyering2009-11-302-3/+2
| | | | | | * cfg.mk (local-checks-to-skip): Enable sc_unmarked_diagnostics * src/grep.c (fillbuf): Mark a diagnostic for translation. (reset): Likewise.
* maint: enable require_config_h checksJim Meyering2009-11-305-2/+12
| | | | | | | | | * cfg.mk (local-checks-to-skip): Enable sc_require_config_h and sc_require_config_h_first. * src/dosbuf.c: Include <config.h>. * src/vms_fab.c: Likewise. * .x-sc_require_config_h: New file: list the exceptions. * .x-sc_require_config_h_first: Likewise.
* maint: use gnulib's progname module; enable set_program_name checkJim Meyering2009-11-304-8/+11
| | | | | | | | * bootstrap.conf (gnulib_modules): Add progname. * src/grep.c: Include "progname.h". (program_name): Remove declaration. (main): Call set_program_name. * cfg.mk (local-checks-to-skip): Add sc_program_name.
* maint: enable "file system" checkJim Meyering2009-11-302-3/+2
| | | | | * cfg.mk (local-checks-to-skip): Enable sc_file_system. * lib/savedir.c (savedir): Tweak spelling. Remove trailing blanks.
* maint: enable immutable_NEWS checkJim Meyering2009-11-303-9/+23
| | | | | | | | * NEWS: Move copyright to the bottom. Use the format required by release-related tools. * .prev-version: New file. * cfg.mk (old_NEWS_hash): Define. (local-checks-to-skip): Enable check: sc_immutable_NEWS.
* maint: disable the many failing syntax-checksJim Meyering2009-11-301-0/+56
| | | | | | * cfg.mk: New file. (local-checks-to-skip): Define to the list of disabled rules. Subsequent change-sets will enable them, one by one.
* build: require automake-1.11, enable silent-rules, parallel tests, xzJim Meyering2009-11-301-2/+4
| | | | | | | * configure.ac (AM_INIT_AUTOMAKE): Create xz-compressed tarballs, not bzip2-compressed ones. Enable automake's silent-rules, parallel tests, and test PASS/FAIL coloring options. Use AC_CONFIG_HEADERS, not AM_CONFIG_HEADER. Quote the argument.
* build: use git-version-gen for inter-release version stringsJim Meyering2009-11-301-1/+4
| | | | * configure.ac (AC_INIT): Use git-version-gen.
* build: add several build- and release-related gnulib modulesJim Meyering2009-11-304-0/+20
| | | | | | * bootstrap.conf (gnulib_modules): Add announce-gen update-copyright do-release-commit-and-tag git-version-gen gnu-web-doc-update gnupload maintainer-makefile useless-if-before-free
* build: adapt to the newer closeout module from gnulibJim Meyering2009-11-301-1/+2
| | | | | | * src/grep.c: Include "exitfail.h". (main) [-q]: Set the global variable, exit_failure, rather than calling the now-removed close_stdout_set_file_name function.
* build: adapt to the newer exclude API we now get from gnulibJim Meyering2009-11-301-5/+5
| | | | | * src/grep.c (main): Adapt to newer exclude.c: add EXCLUDE_WILDCARDS as the new "option" argument in calls to add_exclude and add_exclude_file.
* build: get more lib/* files from gnulib, adjust savedirJim Meyering2009-11-3014-507/+124
| | | | | | | | | | | | | | * bootstrap.conf (gnulib_modules): Add the following: closeout exclude hard-locale isdir strtoumax. * lib/.gitignore, m4/.gitignore: Update. * lib/closeout.c, lib/closeout.h: Remove. * lib/exclude.c, lib/exclude.h: Remove. * lib/hard-locale.c, lib/hard-locale.h: Remove. * lib/strtoumax.c: Remove. * lib/isdir.c: Remove. * lib/Makefile.am: Remove here, too. * lib/savedir.c: Adapt to new exclude module: s/excluded_filename/excluded_file_name/ and remove 3rd argument.
* build: update gnulib submodule to latestJim Meyering2009-11-301-0/+0
|
* maint: generate ChangeLog from git logsJim Meyering2009-11-306-7/+23
| | | | | | | | | * Makefile.am (dist-hook, gen-ChangeLog): New rules. * bootstrap.conf (gnulib_modules): Add gitlog-to-changelog. Ensure that ChangeLog exists. * ChangeLog-2009: Rename from ChangeLog * ChangeLog: Remove file. * .gitignore: Add ChangeLog.
* maint: list gnulib modules one per lineJim Meyering2009-11-301-6/+40
| | | | * bootstrap.conf (gnulib_modules): List them one per line.
* Acknowledge new maintainers, update README-alphaTony Abou-Assaleh2009-11-304-6/+14
| | | | | | * AUTHORS: new maintainers added * THANKS: same * README-alpha: change CVS references to Git
* replace AC_DOSFILE with gnulib modulesPaolo Bonzini2009-11-268-53/+33
| | | | | | | | * bootstrap.conf: Add binary-io, dirname. * configure.ac: Remove check for setmode, AC_DOSFILE. * m4/dosfile.m4: Remove. * src/grep.c: Adjust for dirname.h. * src/system.h: Adjust for new gnulib modules.
* replace AC_CHECK_* with gnulib modulesPaolo Bonzini2009-11-2615-243/+75
| | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules for replacement functions and headers. * configure.ac: Remove macros subsumed by gnulib. * lib/hard-locale.c: Remove guards for headers/functions provided by gnulib. * lib/regex.c: Likewise. * lib/savedir.c: Likewise. * src/dfa.c: Likewise. * src/dfa.h: Do not look at PROTOTYPES. * src/grep.c: Likewise. * src/mbsupport.h: Likewise. * src/system.h: Likewise. * m4/mbstate_t.m4: Remove. * src/getpagesize.h: Remove.
* add gnulib modulesPaolo Bonzini2009-11-2641-6412/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bootstrap.conf: Add gnulib modules and build libgreputils.a. * configure.ac: Remove macros subsumed by gnulib. * lib/Makefile.am: Remove files subsumed by gnulib. * lib/alloca.c: Remove. * lib/atexit.c: Remove. * lib/error.c: Remove. * lib/error.h: Remove. * lib/fnmatch.c: Remove. * lib/fnmatch.h: Remove. * lib/getopt.c: Remove. * lib/getopt.h: Remove. * lib/getopt1.c: Remove. * lib/gettext.h: Remove. * lib/malloc.c: Remove. * lib/memchr.c: Remove. * lib/obstack.c: Remove. * lib/obstack.h: Remove. * lib/quotearg.c: Remove. * lib/quotearg.h: Remove. * lib/realloc.c: Remove. * lib/stpcpy.c: Remove. * lib/strtol.c: Remove. * lib/strtoul.c: Remove. * lib/strtoull.c: Remove. * lib/xalloc.h: Remove. * lib/xmalloc.c: Remove. * lib/xstrtol.c: Remove. * lib/xstrtol.h: Remove. * lib/xstrtoumax.c: Remove. * m4/error.m4: Remove. * m4/inttypes_h.m4: Remove. * m4/malloc.m4: Remove. * m4/realloc.m4: Remove. * m4/uintmax_t.m4: Remove. * m4/ulonglong.m4: Remove. * m4/xstrtoumax.m4: Remove. * src/system.h: Remove strerror, sys_nerr, sys_errlist.
* add gnulibPaolo Bonzini2009-11-2611-123/+882
| | | | | * bootstrap: Use gnulib's build-aux/bootstrap. * configure.ac: Add gl_INIT and gl_EARLY.
* bump AC_PREREQ to minimum supported by gnulibPaolo Bonzini2009-11-262-1/+5
| | | | * configure.ac: Bump AC_PREREQ to 2.59.
* do not use NAMLENPaolo Bonzini2009-11-262-4/+7
| | | | * lib/savedir.c: Do not use NAMLEN.
* another unused autoconf macroPaolo Bonzini2009-11-213-24/+5
| | | | | * configure.ac: Remove AC_SEP. * m4/envsep.m4: Remove.
* remove lib/posix/ directoryPaolo Bonzini2009-11-206-602/+560
| | | | | | | | * configure.ac: Do not generate lib/posix/Makefile. * lib/Makefile.am: Remove SUBDIRS. * lib/posix/Makefile.am: Remove. * lib/posix/regex.h: Overwrite... * lib/regex.h: ... this.
* remove useless AUTOMAKE_OPTIONSPaolo Bonzini2009-11-204-6/+6
| | | | | | * doc/Makefile.am: Remove AUTOMAKE_OPTIONS. * lib/posix/Makefile.am: Remove AUTOMAKE_OPTIONS. * vms/Makefile.am: Remove AUTOMAKE_OPTIONS.