[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Command line parsing of ls, tail and wc with genparse
From: |
Jim Meyering |
Subject: |
Re: [PATCH] Command line parsing of ls, tail and wc with genparse |
Date: |
Sat, 06 Oct 2007 17:35:43 +0200 |
address@hidden (Michael Geng) wrote:
...
> file you extracted above is from the wc command. You can watch the genparse
> generated parser for it from
> http://genparse.sourceforge.net/examples/wc_clp.c.
It's nice to see the continuing improvements.
I noticed that you transformed the uses of fputs in wc's usage
function into uses of fprintf in your generated wc_clp.c.
That is probably ok in most cases, but in some (with a string
containing "%"), it's not -- unless you escape them.
Besides, I switched from fprintf to fputs for a reason: so that
I (and translators) don't have to worry about such escaping.
In addition, I don't mind that fputs is lighter-weight than fprintf.
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Bruno Haible, 2007/10/06
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/06
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Bruno Haible, 2007/10/06
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/07
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Jim Meyering, 2007/10/07
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/07
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Jim Meyering, 2007/10/08
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Bruno Haible, 2007/10/07
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/07
Re: [PATCH] Command line parsing of ls, tail and wc with genparse,
Jim Meyering <=
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/07
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Michael Geng, 2007/10/09
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Jim Meyering, 2007/10/09
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Andreas Schwab, 2007/10/09
- Re: [PATCH] Command line parsing of ls, tail and wc with genparse, Jim Meyering, 2007/10/09