From 90699b2bad4ff49fcaf0ad8520d7cf41ffc6c393 Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 20 Aug 2005 15:58:09 +0000 Subject: [PATCH] sync genevent and LTTV parsers git-svn-id: http://ltt.polymtl.ca/svn@1029 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent/parser.c | 151 ++++++++++++++++--------------- genevent/parser.h | 141 +++++++++++++++-------------- ltt/branches/poly/ltt/facility.c | 47 +++++----- ltt/branches/poly/ltt/parser.c | 151 ++++++++++++++++--------------- ltt/branches/poly/ltt/parser.h | 141 +++++++++++++++-------------- 5 files changed, 325 insertions(+), 306 deletions(-) diff --git a/genevent/parser.c b/genevent/parser.c index b4bd088b..24ffa521 100644 --- a/genevent/parser.c +++ b/genevent/parser.c @@ -81,7 +81,7 @@ int getSizeindex(int value) * size *****************************************************************************/ -int getSize(parse_file *in) +int getSize(parse_file_t *in) { char *token; @@ -109,7 +109,7 @@ int getSize(parse_file *in) * msg : message to be printed ****************************************************************************/ -void error_callback(parse_file *in, char *msg) +void error_callback(parse_file_t *in, char *msg) { if(in) printf("Error in file %s, line %d: %s\n", in->name, in->lineno, msg); @@ -170,7 +170,7 @@ char *allocAndCopy(char *str) * **************************************************************************/ -void getTypeAttributes(parse_file *in, type_descriptor *t) +void getTypeAttributes(parse_file_t *in, type_descriptor_t *t) { char * token; char car; @@ -217,7 +217,7 @@ void getTypeAttributes(parse_file *in, type_descriptor *t) * **************************************************************************/ -void getEventAttributes(parse_file *in, event *ev) +void getEventAttributes(parse_file_t *in, event_t *ev) { char * token; char car; @@ -260,7 +260,7 @@ void getEventAttributes(parse_file *in, event *ev) * **************************************************************************/ -void getFacilityAttributes(parse_file *in, facility *fac) +void getFacilityAttributes(parse_file_t *in, facility_t *fac) { char * token; char car; @@ -296,7 +296,7 @@ void getFacilityAttributes(parse_file *in, facility *fac) * **************************************************************************/ -void getFieldAttributes(parse_file *in, field *f) +void getFieldAttributes(parse_file_t *in, field_t *f) { char * token; char car; @@ -320,7 +320,7 @@ void getFieldAttributes(parse_file *in, field *f) } } -char *getNameAttribute(parse_file *in) +char *getNameAttribute(parse_file_t *in) { char * token; char *name = NULL; @@ -349,7 +349,7 @@ char *getNameAttribute(parse_file *in) //for