[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gengetopt] Found a bug, in gengetopt?
From: |
Christian Gagneraud |
Subject: |
Re: [help-gengetopt] Found a bug, in gengetopt? |
Date: |
Mon, 18 Jun 2007 20:21:20 +0100 |
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
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-gengetopt