if( td->type == STRING || td->type == SEQUENCE ||
td->type == ARRAY) {
(*hasStrSeq)++;
if( td->type == STRING || td->type == SEQUENCE ||
td->type == ARRAY) {
(*hasStrSeq)++;
- }
-// if (*whichTypeFirst == 0) {
-// *whichTypeFirst = 1; //struct first
-// }
if (flag == 0) {
flag = 1;
if (flag == 0) {
flag = 1;
fprintf(fp,"struct %s_%s",name, facName);
if (structCount) {
fprintf(fp, "_%d {\n",++*structCount);
fprintf(fp,"struct %s_%s",name, facName);
if (structCount) {
fprintf(fp, "_%d {\n",++*structCount);
}
fprintf(fp, "\t%s %s; /* %s */\n",
getTypeStr(td),fld->name,fld->description );
}
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;