From: Robert K. <rik...@ho...> - 2003-02-25 03:43:35
|
Carsten, I looked ... can't tell. Compiles just fine for me under Cygwin. gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2/libxml -I/usr/includ e/libxml2 -g -O2 -c dia2code.c dia2code.c:778:2: warning: no newline at end of file Just a guess. Try this for me: In _d2c_fputc, you'll see that line 653 declares "int rc=..." Move "int rc;" to the top of the function, and leave "rc=" there. Tell me if that does it. Thanks, Rob ----- Original Message ----- From: "Carsten Zerbst" <car...@at...> To: <dia...@li...> Sent: Monday, February 24, 2003 11:05 AM Subject: Re: [Dia2code-general] Enumeration > Hello, > > I just checked out the cvs to create a patch for my changes. Though the > code looks pretty ok for me, the compiler complains: > > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/libxml2/libxml > -I/usr/include/libxml2 -DDSO -g -O2 -c dia2code.c > dia2code.c: In function `_d2c_fputc': > dia2code.c:653: parse error before `int' > dia2code.c:654: `rc' undeclared (first use in this function) > dia2code.c:654: (Each undeclared identifier is reported only once > dia2code.c:654: for each function it appears in.) > > Am Son, 2003-02-23 um 20.06 schrieb Oliver Kellogg: > > Carsten Zerbst wrote: > > > > > > 2. Is it possible to model enumeration in a way that dia2code generates > > > them as well in idl ? > > > > Yes, but you need dia2code from cvs. > > > > Simply give your enum classes the stereotype > > <<Enumeration>> or <<CORBAEnum>>. > > > Then I duplicated the work you have done on cvs :-) > > Robert Konigsberg <rik...@ho...> wrote : > > > Oops forgot to post to the list. > > > > Carsten, from where do I know you? > > Perhaps in the context of Tcl, Mico or VTK ? > > Bye, Carsten > > -- > Carsten Zerbst <car...@at...> > Atlantec Enterprise > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dia2code-general mailing list > Dia...@li... > https://lists.sourceforge.net/lists/listinfo/dia2code-general > |