15 Commits

Author SHA1 Message Date
Jim Meyering
e5491fbcc7 maint: fix typos spotted by codespell
Induced by running this:
  printf '%s\n' Tye tye Ned bu nd > w
  codespell -w --summary --count -Iw $(git ls-files|grep -v gnulib)
Summary:
cvignore      1
declration    1
endianess     1
instad        1
intall        2
ouput         1
reenabled     1
repoducible   1
uncompressible1
* ChangeLog-2007: Fix typos.
* NEWS: Likewise.
* inflate.c: Likewise.
* sample/sub.c: Likewise.
* tests/reproducible: Likewise.
Since the above changed NEWS, I must also do this:
* cfg.mk (old_NEWS_hash): Update, to reflect recent NEWS correction.
(exclude_file_name_regexp--sc_codespell): Ignore THANKS.
(codespell_ignore_words_list): Exempt two false-positives.
2025-03-27 21:30:42 -07:00
Simon Josefsson
b1c42e30a7 maint: Drop unused sample/makecrc.c. 2024-10-17 13:47:14 -07:00
Paul Eggert
96cd660ad0 maint: port function definitions to C23
C23 does not allow K&R style function definitions.
Use protyped definitions.  However, don't bother with (void) in
function definitions since C23 prefers (); so prefer () to (void) as
this will work with older compilers anyway.
2022-12-25 16:13:10 -08:00
Paul Eggert
5e1fc8b92c maint: use C locale more often
* gzexe.in, zdiff.in, zgrep.in:
Run expr and sed in the C locale when it might help to avoid
undefined behavior on non-GNU platforms.
* sample/zfile, znew.in: Run in the C locale, for simplicity and
to avoid undefined behavior on non-GNU platforms.
2022-04-07 09:28:24 -07:00
Jim Meyering
e914d164fb maint: change "time stamp" to "timestamp" globally
This avoids a new syntax-check failure.
* ChangeLog-2007: Perform that change.
* NEWS: Likewise.
* algorithm.doc: Likewise.
* doc/gzip.texi: Likewise.
* gunzip.in: Likewise.
* gzip.1: Likewise.
* gzip.c: Likewise.
* gzip.h: Likewise.
* m4/.gitignore: Likewise.
* sample/ztouch: Likewise.
* tests/timestamp: Likewise.
* unzip.c: Likewise.
* zip.c: Likewise.
* znew.1: Likewise.
* cfg.mk: Update the old news hash accordingly.
2017-02-06 10:13:52 -08:00
Jim Meyering
3ea7fe86ac global: convert indentation-TABs to spaces
Transformed via this shell code:
t=$'\t'
git ls-files \
  | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \
  | grep -vE 'tests/pr/|help2man' \
  | xargs grep -lE "^ *$t" \
  | xargs perl -MText::Tabs -ni -le \
    '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
2010-02-03 08:53:02 +01:00
Jim Meyering
8dbccc10a6 build: accommodate new syntax-check test
* amiga/tailor.c (_expand_args): Change each of three uses of
"exit(20)" to "exit(EXIT_FAILURE)".
* sample/add.c: Include <stdlib.h>.
(main): Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0.
* sample/sub.c (main): Likewise.
* sample/zread.c (main): Likewise.
2009-10-30 19:52:17 +01:00
Jim Meyering
d250aeef2c maint: include <config.h> first in many files 2009-09-26 20:36:55 +02:00
Jim Meyering
8f824fc586 maint: remove RCS $Id$ variables and comments 2009-09-26 20:21:52 +02:00
Jean-loup Gailly
7ebf03f9cc gzip 1.3.5 1993-06-21 16:21:45 +00:00
Jean-loup Gailly
b5c52d80c0 gzip 1.3.5 1993-06-21 15:21:28 +00:00
Jean-loup Gailly
b98d93e9d1 gzip 1.3.5 1993-06-11 12:26:33 +00:00
Jean-loup Gailly
d8f1871d92 gzip 1.3.5 1993-06-11 12:12:28 +00:00
Jean-loup Gailly
ee1a0bfcbb checked in with -k by eggert at 2006/11/05 06:59:41 1993-05-28 07:42:59 +00:00
Jean-loup Gailly
bc3707e75b gzip 1.3.5 1993-05-27 14:28:42 +00:00