From: compudj Date: Fri, 3 Jun 2005 20:48:33 +0000 (+0000) Subject: fixes xml X-Git-Tag: v0.12.20~2553 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cb1eb7ceb78154371c193608bcc9507404fec234;p=lttv.git fixes xml git-svn-id: http://ltt.polymtl.ca/svn@936 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/genevent/core.xml b/genevent/core.xml index 0dfe9d0a..1b7cd1b9 100644 --- a/genevent/core.xml +++ b/genevent/core.xml @@ -27,8 +27,10 @@ Block end timestamp - - + + + + diff --git a/genevent/genevent.c b/genevent/genevent.c index e6c5bb89..7c21d9e6 100644 --- a/genevent/genevent.c +++ b/genevent/genevent.c @@ -222,6 +222,7 @@ void generateEnumEvent(FILE *fp, char *facName, int * nbEvent, unsigned long che * hasStrSeq : string or sequence present? * structCount : struct postfix ****************************************************************************/ + static void printStruct(FILE * fp, int len, void ** array, char * name, char * facName, int * whichTypeFirst, int * hasStrSeq, int * structCount) @@ -235,34 +236,32 @@ printStruct(FILE * fp, int len, void ** array, char * name, char * facName, fld = (field *)array[pos]; td = fld->type; if( td->type != STRING && td->type != SEQUENCE && - td->type != ARRAY) { + td->type != ARRAY) { if (*whichTypeFirst == 0) { *whichTypeFirst = 1; //struct first } if (flag == 0) { flag = 1; - fprintf(fp,"struct %s_%s", - name, facName); - if (structCount) { - fprintf(fp, "_%d {\n", - ++*structCount); - } else { - fprintf(fp, " {\n"); - } + fprintf(fp,"struct %s_%s",name, facName); + if (structCount) { + fprintf(fp, "_%d {\n",++*structCount); + } else { + fprintf(fp, " {\n"); + } } - 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 ); } else { - if (*whichTypeFirst == 0) { + if (*whichTypeFirst == 0) { //string or sequence or array first - *whichTypeFirst = 2; - } - (*hasStrSeq)++; - if(flag) { - fprintf(fp,"} __attribute__ ((packed));\n\n"); - } - flag = 0; + *whichTypeFirst = 2; + } + (*hasStrSeq)++; + if(flag) { + fprintf(fp,"} __attribute__ ((packed));\n\n"); + } + flag = 0; } } diff --git a/genevent/ipc.xml b/genevent/ipc.xml index e66d7270..1a0c47a7 100644 --- a/genevent/ipc.xml +++ b/genevent/ipc.xml @@ -1,14 +1,15 @@ The ipc facility contains events related to Inter Process Communication - + - IPC call + + IPC call Number of IPC call + First argument - Get an IPC message queue identifier diff --git a/genevent/parser.c b/genevent/parser.c index 465f9cb4..fe0e0147 100644 --- a/genevent/parser.c +++ b/genevent/parser.c @@ -679,7 +679,7 @@ void parseTypeDefinition(parse_file * in, sequence * unnamed_types, getRAnglebracket(in); // getLAnglebracket(in); // token = getName(in); - if(strcmp("struct",token))in->error(in,"not a valid type definition"); + //MD ??if(strcmp("struct",token))in->error(in,"not a valid type definition"); ungetToken(in); parseType(in,t, unnamed_types, named_types); diff --git a/genevent/timer.xml b/genevent/timer.xml index 8f84e3fd..a3209c7d 100644 --- a/genevent/timer.xml +++ b/genevent/timer.xml @@ -16,13 +16,13 @@ An interval timer is set. kind of interval timer. - + timer interval. - + current value. - +