projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-svn-id: http://ltt.polymtl.ca/svn@144 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git]
/
ltt
/
branches
/
poly
/
ltt
/
parser.c
diff --git
a/ltt/branches/poly/ltt/parser.c
b/ltt/branches/poly/ltt/parser.c
index 6b0fbd621a3b16b8b3b74881bfba084d1d7b6461..fa786985316e015a880f4ad6c0db0153c23f16eb 100644
(file)
--- a/
ltt/branches/poly/ltt/parser.c
+++ b/
ltt/branches/poly/ltt/parser.c
@@
-263,7
+263,7
@@
void parseFacility(parse_file *in, facility * fac)
fac->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
fac->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
- fac->description =
allocAndCopy(getDescription(in)
);
+ fac->description =
getDescription(in
);
while(1){
getLAnglebracket(in);
while(1){
getLAnglebracket(in);
@@
-311,7
+311,7
@@
void parseEvent(parse_file *in, event * ev, sequence * unnamed_types,
getRAnglebracket(in);
//<description>...</descriptio>
getRAnglebracket(in);
//<description>...</descriptio>
- ev->description =
allocAndCopy(getDescription(in)
);
+ ev->description =
getDescription(in
);
//event can have STRUCT, TYPEREF or NOTHING
getLAnglebracket(in);
//event can have STRUCT, TYPEREF or NOTHING
getLAnglebracket(in);
@@
-359,7
+359,7
@@
void parseFields(parse_file *in, type_descriptor *t, sequence * unnamed_types,
f->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
f->name = allocAndCopy(getNameAttribute(in));
getRAnglebracket(in);
- f->description =
allocAndCopy(getDescription(in)
);
+ f->description =
getDescription(in
);
//<int size=...>
getLAnglebracket(in);
//<int size=...>
getLAnglebracket(in);
@@
-497,10
+497,9
@@
type_descriptor *parseType(parse_file *in, type_descriptor *inType,
free(str);
str = appendString(str1,token);
free(str1);
free(str);
str = appendString(str1,token);
free(str1);
- sequence_push(&(t->labels),allocAndCopy(str));
- free(str);
+ sequence_push(&(t->labels),str);
}else
}else
- sequence_push(&(t->labels),
allocAndCopy(str)
);
+ sequence_push(&(t->labels),
str
);
getForwardslash(in);
getRAnglebracket(in);
getForwardslash(in);
getRAnglebracket(in);
This page took
0.024114 seconds
and
4
git commands to generate.