[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Command line parsing of ls with genparse: inline code
From: |
Jim Meyering |
Subject: |
Re: Command line parsing of ls with genparse: inline code |
Date: |
Mon, 16 Jun 2008 21:43:37 +0200 |
address@hidden (Michael Geng) wrote:
...
> I think emitting into a .h file would be a good solution. But wouldn't
> it then be better to directly add a genparse file (e.g. ls.gp) instead of
> extracting it from ls.c? ls.c would no longer have to be modified then.
The disadvantage is that there would then be bits of code in ls.gp
that depends on declarations in ls.c. I.e., "static", file-scoped
variables in ls.c would now also appear in ls.gp. That is too distant
for my taste. That would also add ~100 more version-controlled *.gp
"source" files.