help-gengetopt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gengetopt] Found a bug, in gengetopt?


From: Lorenzo Bettini
Subject: Re: [help-gengetopt] Found a bug, in gengetopt?
Date: Tue, 19 Jun 2007 19:45:16 +0200
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)

Hi Christian!

could you please tell me which version of gengetopt you're using?

thanks
        Lorenzo

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))

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



------------------------------------------------------------------------


# 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


------------------------------------------------------------------------

_______________________________________________
Help-gengetopt mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gengetopt


--
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]