projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes for reading : string in struct
[lttv.git]
/
genevent
/
genevent.c
diff --git
a/genevent/genevent.c
b/genevent/genevent.c
index 316f15b7a076bf8e44be56b2943a1deb94a1ccf9..5a628ce88901c5ba7eca1e5f187e7c367d59c065 100644
(file)
--- 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( td->type == STRING || td->type == SEQUENCE ||
td->type == ARRAY) {
(*hasStrSeq)++;
- }
-// if (*whichTypeFirst == 0) {
-// *whichTypeFirst = 1; //struct first
-// }
+ } else {
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);
@@
-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 );
}
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) {
}
if(flag) {
This page took
0.022778 seconds
and
4
git commands to generate.