From: compudj Date: Sat, 20 Aug 2005 05:33:52 +0000 (+0000) Subject: fixes for reading : string in struct X-Git-Tag: v0.12.20~2465 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=d9a67054dc8f62091fa9d05142244d64c0de7f1a;hp=276a9e6fc8f3f6cb40f759a429cbd17c0b437043;p=lttv.git fixes for reading : string in struct git-svn-id: http://ltt.polymtl.ca/svn@1024 04897980-b3bd-0310-b5e0-8ef037075253 --- 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) {