|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
gengetopt with native Win32 CL.EXEHi,
I tried to produce the C and header files from a GGO file for native Windows compilation with CL.EXE. Using any of the Cygwin or MinGW ports of 'gengen` and 'gengetopt` as built-chain works. As I see it, there is a small problem in the generated C code with the FIX_UNUSED macro which is sometimes called before or in the middle of a variable declaration in generated functions. After patching with gengetopt-2.22.2-fix-unused.patch, compilation is no problem. Greetings Andreas -- Andreas Baumann Trottenstrasse 20 CH-8037 Zuerich Telefon: +41(0)76/373 01 29 E-mail: abaumann@... Homepage: www.andreasbaumann.cc diff -rauN gengetopt-2.22.2/src/skels/c_source.h_skel gengetopt-2.22.2-fix-unused-patch/src/skels/c_source.h_skel --- gengetopt-2.22.2/src/skels/c_source.h_skel 2009-06-01 17:03:01.000000000 +0200 +++ gengetopt-2.22.2-fix-unused-patch/src/skels/c_source.h_skel 2009-09-13 11:28:37.000000000 +0200 @@ -706,8 +706,8 @@ int @parser_name@_required2 (struct @args_info@ *args_info, const char *prog_name, const char *additional_error) { - FIX_UNUSED (additional_error); int error = 0; + FIX_UNUSED (additional_error); /* checks for required options */ @handle_required:method@ @@ -754,13 +754,13 @@ const char *long_opt, char short_opt, const char *additional_error) { - FIX_UNUSED (field); char *stop_char = 0; const char *val = value; int found; @IF@ has_arg_string @THEN@ char **string_field; @ENDIF@ + FIX_UNUSED (field); stop_char = 0; found = 0; _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: gengetopt with native Win32 CL.EXEAndreas Baumann wrote:
> Hi, > > > I tried to produce the C and header files from a GGO file for native > Windows compilation with CL.EXE. Using any of the Cygwin or MinGW ports > of 'gengen` and 'gengetopt` as built-chain works. > > As I see it, there is a small problem in the generated C code with the > FIX_UNUSED macro which is sometimes called before or in the middle of a > variable declaration in generated functions. > > After patching with gengetopt-2.22.2-fix-unused.patch, compilation is no problem. > Hi Andreas actually this should have already been fixed by this candidate release, if you want to try it http://gdn.dsi.unifi.it/~bettini/gengetopt-2.22.3.tar.gz hope to hear from you soon cheers Lorenzo -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba 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 _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: gengetopt with native Win32 CL.EXEOn Thu, Sep 17, 2009 at 12:03:18PM +0200, Lorenzo Bettini wrote:
> Andreas Baumann wrote: > >Hi, > > > > > >I tried to produce the C and header files from a GGO file for native > >Windows compilation with CL.EXE. Using any of the Cygwin or MinGW ports > >of 'gengen` and 'gengetopt` as built-chain works. > > > >As I see it, there is a small problem in the generated C code with the > >FIX_UNUSED macro which is sometimes called before or in the middle of a > >variable declaration in generated functions. > > > >After patching with gengetopt-2.22.2-fix-unused.patch, compilation is no problem. > > > > Hi Andreas > > actually this should have already been fixed by this candidate > release, if you want to try it > > http://gdn.dsi.unifi.it/~bettini/gengetopt-2.22.3.tar.gz Ah, perfect. :-) Yes, the patch corrects exactly the same lines as in 2.22.3. Works fine. Thanks Andreas > hope to hear from you soon > cheers > Lorenzo > > -- > Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino > ICQ# lbetto, 16080134 (GNU/Linux User # 158233) > HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com > http://www.myspace.com/supertrouperabba > 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 > > > _______________________________________________ > Help-gengetopt mailing list > Help-gengetopt@... > http://lists.gnu.org/mailman/listinfo/help-gengetopt -- Andreas Baumann Trottenstrasse 20 CH-8037 Zuerich Telefon: +41(0)76/373 01 29 E-mail: abaumann@... Homepage: www.andreasbaumann.cc _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
|
|
Re: gengetopt with native Win32 CL.EXEAndreas Baumann wrote:
> On Thu, Sep 17, 2009 at 12:03:18PM +0200, Lorenzo Bettini wrote: > >> Andreas Baumann wrote: >> >>> Hi, >>> >>> >>> I tried to produce the C and header files from a GGO file for native >>> Windows compilation with CL.EXE. Using any of the Cygwin or MinGW ports >>> of 'gengen` and 'gengetopt` as built-chain works. >>> >>> As I see it, there is a small problem in the generated C code with the >>> FIX_UNUSED macro which is sometimes called before or in the middle of a >>> variable declaration in generated functions. >>> >>> After patching with gengetopt-2.22.2-fix-unused.patch, compilation is no problem. >>> >>> >> Hi Andreas >> >> actually this should have already been fixed by this candidate >> release, if you want to try it >> >> http://gdn.dsi.unifi.it/~bettini/gengetopt-2.22.3.tar.gz >> > > Ah, perfect. :-) > > Yes, the patch corrects exactly the same lines as in 2.22.3. > Works fine. > > happy to hear that! I'll release that version soon cheers Lorenzo _______________________________________________ Help-gengetopt mailing list Help-gengetopt@... http://lists.gnu.org/mailman/listinfo/help-gengetopt |
| Free embeddable forum powered by Nabble | Forum Help |