[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Command line parsing of ls, tail and wc with genparse
From: |
Michael Geng |
Subject: |
[PATCH] Command line parsing of ls, tail and wc with genparse |
Date: |
Sat, 22 Sep 2007 16:34:19 +0200 |
User-agent: |
Mutt/1.5.9i |
Hi Eric, Jim, hello mailing list,
I again generated a patch to the Coreutils which calls genparse
for generating command line parsers for the ls, tail and wc
commands. Some differences to the last patch I submitted:
1. It now passes "make distcheck".
2. It is targeted to the CVS version of the Coreutils from Sept 04.
It applies also to today's version without conflicts but I have
problems to build it since Sept 10.
3. A new directive __NEW_PRINT__ allows partitioning of text in
the usage function. This way it finds the existing translations.
4. The genparse (.gp) file can now include other genparse files
using the #gp_include directive. So it is now possible to extract
common command line switches like --help and --version to a
seperate file which can be included by the other genparse files.
5. A new __COMMAND__ directive allows the instantiation of functions
in the usage () function. This allows to keep the
emit_bug_reporting_address () function which was recently
introduced.
6. It is possible to let genparse break lines to a specified width
automatically as you suggested, Eric. That's a smart extension
to genparse but I wouldn't propose to use it for the Coreutils
because manual formatting of the help text in order keep
compatibility to the existing translations appears to be the
more important goal.
7. The generated code (and the genparse source code) insert a
space before opening braces '(' according to the GNU coding style.
Please let me know if you find more non conformances.
Michael
genparse-ls-tail-wc-04-09-2007.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Command line parsing of ls, tail and wc with genparse,
Michael Geng <=