From 294f0059c470fc8e9e2d6b3ce6211e16041f530b Mon Sep 17 00:00:00 2001 From: compudj Date: Sat, 17 Dec 2005 04:04:47 +0000 Subject: [PATCH] parser fix git-svn-id: http://ltt.polymtl.ca/svn@1415 04897980-b3bd-0310-b5e0-8ef037075253 --- genevent-new/parser.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/genevent-new/parser.c b/genevent-new/parser.c index bfa64564..921c559a 100644 --- a/genevent-new/parser.c +++ b/genevent-new/parser.c @@ -784,29 +784,29 @@ type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType, } else if(strcmp(token,"char") == 0) { t->type = CHAR; - t->size = 1; getTypeAttributes(in, t, unnamed_types, named_types); + t->size = 1; getForwardslash(in); getRAnglebracket(in); } else if(strcmp(token,"uchar") == 0) { t->type = UCHAR; - t->size = 1; getTypeAttributes(in, t, unnamed_types, named_types); + t->size = 1; getForwardslash(in); getRAnglebracket(in); } else if(strcmp(token,"short") == 0) { t->type = SHORT; - t->size = 2; getTypeAttributes(in, t, unnamed_types, named_types); + t->size = 2; getForwardslash(in); getRAnglebracket(in); } else if(strcmp(token,"ushort") == 0) { t->type = USHORT; - t->size = 2; getTypeAttributes(in, t, unnamed_types, named_types); + t->size = 2; getForwardslash(in); getRAnglebracket(in); } @@ -1344,8 +1344,7 @@ unsigned long getTypeChecksum(unsigned long aCrc, type_descriptor_t * type) flag = 1; break; case SEQUENCE: - sprintf(buf,"%zu", type->size); - str = appendString("sequence ",buf); + str = allocAndCopy("sequence "); flag = 1; break; case STRUCT: -- 2.34.1