From: <li...@mi...> - 2007-09-17 13:38:54
|
Hi Mike, I want to add some more features/changes to Genparse in order to be able to apply Genparse to the GNU coreutils: 1. A new directive #gp_include which will include other Genparse files into the main Genparse files. 2. A __NEW_PRINT__ directive in the #usage section. This allows to partition the help text into multiple print commands. Especially for translations it is more practical to have sections of not more than 6-7 lines. 3. A __COMMAND__ directive in the #usage section. Can be used for adding a function call to the usage section. 4. A __NL__ directive in the #usage section. Allows to break lines manually while automatic line breaking is on (#break_lines directive). 5. A new global directive #export_long_options which adds a function get_long_options () which exports the long_options array used by getopt_long. This is required because the GNU glibc uses it for printing errors. 6. Add a space before opening braces. For example write f () instead of f(). The GNU coding style recommends this. I want to change this both in the generated and the genparse source code for consistency. 7. Add GPL preambles to all Genparse source files. Michael |