fac->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
- fac->description = allocAndCopy(getDescription(in));
+ fac->description = getDescription(in);
while(1){
getLAnglebracket(in);
getRAnglebracket(in);
//<description>...</descriptio>
- ev->description = allocAndCopy(getDescription(in));
+ ev->description = getDescription(in);
//event can have STRUCT, TYPEREF or NOTHING
getLAnglebracket(in);
f->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
- f->description = allocAndCopy(getDescription(in));
+ f->description = getDescription(in);
//<int size=...>
getLAnglebracket(in);
free(str);
str = appendString(str1,token);
free(str1);
- sequence_push(&(t->labels),allocAndCopy(str));
- free(str);
+ sequence_push(&(t->labels),str);
}else
- sequence_push(&(t->labels),allocAndCopy(str));
+ sequence_push(&(t->labels),str);
getForwardslash(in);
getRAnglebracket(in);
t->type_name = allocAndCopy(name);
t->type = NONE;
t->fmt = NULL;
- table_insert(named_types,allocAndCopy(name),t);
+ table_insert(named_types,t->type_name,t);
+ // table_insert(named_types,allocAndCopy(name),t);
}
return t;
}