From: <li...@mi...> - 2007-09-13 07:17:46
|
Mike, I'm presently trying Genparse on the GNU Coreutils. They have strict tests and I'm having trouble to pass "make distcheck" if the time stamp alwas changes. But I agree that the full header as Genparse generates it now is useful and for this reason the default will be to create it the same way as it was before. Michael On Wed, Sep 12, 2007 at 06:36:56PM -0500, Mike Borella wrote: > Michael, > > These options seem fine. Any reason not to include the header info? > Its not necessary but I also found it useful. Did someone request the > option to remove it? > > Michael Geng wrote: > >Hi Mike, > > > >I want to introduce a new global definition "#break_lines" to the Genparse > >file. It takes an integer argument specifying the page width and > >automatically breaks lines on the help screen to this width. E.g. > >#break_lines 80 would automatically format all output printed by the > >usage() function to a width of 80 characters. > > > >==================================== > > > >Additionally I would like to introduce a new command line switch > > > >s / static-headers flag "Keep headers of generated files static. > >Don't add" > > "creation date, username, kernel version > > etc." > > > >which removes those lines in the header of the generated parser files > >which are > >frequently changing. Below is a Genparse header as it has been generated > >up to now > >(and will continue to be generated if the command switch is not set): > > > >/****************************************************************************** > >** > >** mycopy4_clp.cc > >** > >** Sun Sep 9 11:55:55 2007 > >** Linux 2.6.19 (#1 Sun Jan 21 11:52:23 CET 2007) i686 > >** linux@mgpc (Michael Geng) > >** > >** Definition of command line parser class > >** > >** Automatically created by genparse v0.6.9 > >** > >** See http://genparse.sourceforge.net for details and updates > >** > >******************************************************************************/ > > > >If you invoke genparse with -s or --static-headers then the complete > >header would look like this: > > > >/****************************************************************************** > >** > >** mycopy4_clp.cc > >** > >** Definition of command line parser class > >** > >** Automatically created by genparse v0.6.9 > >** > >** See http://genparse.sourceforge.net for details and updates > >** > >******************************************************************************/ > > > >Michael > > > > > -- > Mike Borella > http://www.borella.net/mike > |