fixes for reading : string in struct
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 20 Aug 2005 05:33:52 +0000 (05:33 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Sat, 20 Aug 2005 05:33:52 +0000 (05:33 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1024 04897980-b3bd-0310-b5e0-8ef037075253

genevent/genevent.c

index 316f15b7a076bf8e44be56b2943a1deb94a1ccf9..5a628ce88901c5ba7eca1e5f187e7c367d59c065 100644 (file)
@@ -299,13 +299,9 @@ printStruct(FILE * fp, int len, void ** array, char * name, char * facName,
     if( td->type == STRING || td->type == SEQUENCE ||
         td->type == ARRAY) {
         (*hasStrSeq)++;
-               }
-//      if (*whichTypeFirst == 0) {
-//        *whichTypeFirst = 1; //struct first
-//      }
+               } else {
       if (flag == 0) {
         flag = 1;
-
         fprintf(fp,"struct %s_%s",name, facName);
         if (structCount) {
           fprintf(fp, "_%d {\n",++*structCount);
@@ -315,19 +311,7 @@ printStruct(FILE * fp, int len, void ** array, char * name, char * facName,
       }
       fprintf(fp, "\t%s %s; /* %s */\n", 
           getTypeStr(td),fld->name,fld->description );
-#if 0
-    } else {
-        if (*whichTypeFirst == 0) {
-        //string or sequence or array first
-          *whichTypeFirst = 2;
-        }
-        (*hasStrSeq)++;
-        if(flag) {
-          fprintf(fp,"} __attribute__ ((packed));\n\n");
-        }
-        flag = 0;
     }
-#endif //0
   }
 
   if(flag) {
This page took 0.024322 seconds and 4 git commands to generate.