>From e6d4e51cc73274189e9d12062698679f79829e71 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Sat, 29 Dec 2018 11:54:23 -0600 Subject: [PATCH 1/5] Add Zstandard compression support for etags * lib-src/etags.c: (compressors): Add zstd support. (print_language_names): Report zstd support. * doc/man/etags.1: Update doc. --- doc/man/etags.1 | 2 +- etc/NEWS | 3 +++ lib-src/etags.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/man/etags.1 b/doc/man/etags.1 index 558b249f31..42c6fcd6da 100644 --- a/doc/man/etags.1 +++ b/doc/man/etags.1 @@ -64,7 +64,7 @@ Files specified with absolute file names will be recorded with absolute file names. Files generated from a source file\-\-like a C file generated from a source Cweb file\-\-will be recorded with the name of the source file. -Compressed files are supported using gzip, bzip2, and xz. +Compressed files are supported using gzip, bzip2, xz, and zstd. The programs recognize the language used in an input file based on its file name and contents. The \fB\-\-language\fP switch can be used to force parsing of the file names following the switch according to the given diff --git a/etc/NEWS b/etc/NEWS index 586e7065d1..2bacb66d4a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -373,6 +373,9 @@ The mode is automatically enabled in files that start with the use the new 'multifile-initialize' and 'multifile-continue' functions instead. ++++ +*** etags is now able to read Zstandard-compressed files. + ** bibtex --- diff --git a/lib-src/etags.c b/lib-src/etags.c index 102d867b38..61f5ff7a08 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -527,6 +527,7 @@ static compressor compressors[] = { "GZ", "gzip -d -c"}, { "bz2", "bzip2 -d -c" }, { "xz", "xz -d -c" }, + { "zst", "zstd -d -c -q" }, { NULL } }; @@ -869,7 +870,7 @@ followed by the name of an interpreter. If no such sequence is found,\n\ Fortran is tried first; if no tags are found, C is tried next.\n\ When parsing any C file, a \"class\" or \"template\" keyword\n\ switches to C++."); - puts ("Compressed files are supported using gzip, bzip2, and xz.\n\ + puts ("Compressed files are supported using gzip, bzip2, xz, and zstd.\n\ \n\ For detailed help on a given language use, for example,\n\ etags --help --lang=ada."); -- 2.20.1