From d9a67054dc8f62091fa9d05142244d64c0de7f1a Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 20 Aug 2005 05:33:52 +0000 Subject: [PATCH] fixes for reading : string in struct git-svn-id: http://ltt.polymtl.ca/svn@1024 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent/genevent.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/genevent/genevent.c b/genevent/genevent.c index 316f15b7..5a628ce8 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -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) { -- 2.34.1