Re: Found a bug, in gengetopt?

Christian Gagneraud <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <1182194480.8777.104.camel@devel002>
On Mon, 2007-06-18 at 19:30 +0100, Christian Gagneraud wrote:
> Hi all,
> 
> I'm encourted some problem with my .ggo (see attached)
> When i change the args "..." string i get different result, seems that
> there are some memory corruption around there, but don't know if it
> comes from gengetopt or my gcc (Fedora Core 7, x86_64, gcc (GCC) 4.1.2
> 20070502 (Red Hat 4.1.2-12))

And if i set func-name and file-name from the command line, then all is
OK:

in .ggo:
args "--no-handle-help --no-handle-error --show-required --conf-parser
--string-parser --include-getopt "

and the generation:
gengetopt --func-name=tmbbRs232ConnectorConfigParser
--file-name=tmbbRs232ConnectorConfig -i tmbbRs232ConnectorConfig.ggo

Regards,
Christian

> 
> here are some detailed, when i change the name of the function and file
> (via --func-name and --file-name within the "args" in my .ggo), i would
> like to use "long" name:
> 
> --file-name=ConnectorConfig_parser --func-name=TMBBConfig_parser
> =>OK
> 
> --file-name=ConnectorConfig_parser --func-name=AAATMBBConfig_parser
> =>OK
> 
> --file-name=AAAConnectorConfig_parser --func-name=TMBBConfig_parser
> =>Gives TMBBConfig_parser.[ch] and TMBBConfig_parser_configfile()
> (file-name is ignored!)
> 
> --file-name=ConnectorConfig_parser
> --func-name=AAAAAAAAAAAAATMBBConfig_parser
> =>Gives ConnectorConfig_parser.[ch] but _configfile()
> 
> --file-name=tmbbRs232ConnectorConfigParser
> --func-name=tmbbRs232ConnectorConfigParser 
> =>Give .[ch] and `$e_configfile()
> 
> Any ideas?
> 
> Regards,
> Christian
> 
> _______________________________________________
> Help-gengetopt mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gengetopt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.