Found a bug, in gengetopt?

Christian Gagneraud <[email protected]>
Newsgroups gmane.comp.gnu.gengetopt.general
Message-ID <1182191433.8777.100.camel@devel002>
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))

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
tmbbRs232ConnectorConfigC.ggo (text/plain, 1 KB)
# Example:
#
# device="/dev/ttyS0"
# speed="9600"
# parity="none"
# stop="1"
# csize="8"
# vtime="50"
# flowctrl="none"
#

package "tmbbRs232ConnectorConfigC"
version "1.0"
purpose "Handle the configuration of RS232 connectors of TMBB"

args "--file-name=tmbbRs232ConnectorConfig_parser --func-name=tmbbRs232ConnectorConfig_parser --no-handle-help --no-handle-error --show-required --conf-parser --string-parser --include-getopt "

option "device" D "Serial port device" string required
option "baud" B "Baud rate" int typestr="0,50,75,110,134,150,200,300,600,1200,1800,2400,\n\t4800,9600,19200,38400,57600,115200,230400,460800,921600" required
option "parity" P "Input parity checking" values="none","odd","even" required
option "stop" S "Number of stop bits" int typestr="[1:2]" required
option "csize" C "Character size mask" int typestr="[5:8]" required
option "vtime" V "Timeout in deciseconds while waiting for an input character" int typestr="[0:256]" required
option "flowctrl" F "Flow control" values="hard","soft","none" required
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.