incomplete common.c file ?



Hi all,
 
I have a problem with compiling a file common.c generated by orbit-idl. It seems the common file is incomplete. I would appreciate any help.
 
my idl is:
 
module Wykres {
   typedef sequence<long> TypWyn;
   enum TypWykresu {a, b, c, d};
   struct ParamW {
      TypWykresu typW;               
      unsigned short min, max, gran; 
      string tytul;                 
      string osX, osY;          
   };    
   
   struct Ptest {
      unsigned short min, max, gran; 
      string opis;                   
      TypWyn wyniki;                 
   };
   
   struct ParamWZ {
      Ptest TabPtest[5]; 
      string tytul;      
      string osX, osY;   
      long ile;          
   }; 
   
   interface GnuPlot {
      any GenerujWykres (in ParamW p, in TypWyn w);
      any GenerujWykresZlozony (in ParamWZ pz);
   };
   // ...
}; 
 
orbit-idl accepts this definitions and generates stub, skel and common files. When i try to compile them i get such errors:
 
wykres-common.c:69: warning: initialization from incompatible pointer type
wykres-common.c:94: warning: initialization from incompatible pointer type
wykres-common.c:117: warning: initialization from incompatible pointer type
wykres-common.c:140: warning: initialization from incompatible pointer type
wykres-common.c: In function `Wykres_ParamWZ__free':
wykres-common.c:360: parse error before `)'
wykres-common.c: In function `Wykres_ParamWZ__alloc':
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
wykres-common.c:381: parse error before `)'
the line 360 in wykres-common.c looks like this:
 
354 gpointer
355 Wykres_ParamWZ__free(gpointer mem, gpointer dat, CORBA_boolean free_strings)
356 {
357    Wykres_ParamWZ *var = mem;
358
359    {
360       Wykres_Ptest__free(&(var->     ), NULL, free_strings);
361    }
362    if (free_strings) {
363      CORBA_string__free(&(var->tytul), NULL, free_strings);
364    }
365    if (free_strings) {
366       CORBA_string__free(&(var->osX), NULL, free_strings);
367       CORBA_string__free(&(var->osY), NULL, free_strings);
368    }
369    return (gpointer) (var + 1);
370 }
Does anybody know why the 360 line is incomplete?
Is my idl definition somehow wrong or to complicated?
I attached the wykres-common.c file if someone wants to check it out.
 
It is important for me, to know what's wrong, because I can't continue my work.
 
Thank you for any suggestion
Agnieszka

wykres-common.c



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