projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix print style
[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 3bc227cfb154b9c5b9993d7cb93713428eb05865..ab24a6c2e0030898d11c8141edff00c2ec8cd0c4 100644
(file)
--- a/
ltt/branches/poly/ltt/parser.c
+++ b/
ltt/branches/poly/ltt/parser.c
@@
-750,8
+750,10
@@
type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType,
//getLAnglebracket(in); //<subtype>
/* subfield */
//getLAnglebracket(in); //<subtype>
/* subfield */
- f = (field_t *)memAlloc(sizeof(field_t));
- sequence_push(&(t->fields),f);
+ f = (field_t *)memAlloc(sizeof(field_t));
+
+ f->name = NULL;
+ sequence_push(&(t->fields),f);
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<type struct>
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<type struct>
@@
-772,14
+774,16
@@
type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType,
//getLAnglebracket(in); //<sequence size type>
/* subfield */
//getLAnglebracket(in); //<sequence size type>
/* subfield */
- f = (field_t *)memAlloc(sizeof(field_t));
- sequence_push(&(t->fields),f);
+ f = (field_t *)memAlloc(sizeof(field_t));
+ f->name = NULL;
+ sequence_push(&(t->fields),f);
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<subtype>
/* subfield */
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<subtype>
/* subfield */
- f = (field_t *)memAlloc(sizeof(field_t));
- sequence_push(&(t->fields),f);
+ f = (field_t *)memAlloc(sizeof(field_t));
+ f->name = NULL;
+ sequence_push(&(t->fields),f);
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<type sequence>
parseFields(in, f, unnamed_types, named_types, 0);
//getLAnglebracket(in); //<type sequence>
@@
-838,7
+842,7
@@
type_descriptor_t *parseType(parse_file_t *in, type_descriptor_t *inType,
str = allocAndCopy(getNameAttribute(in));
has_value = getValueAttribute(in, &loc_value);
str = allocAndCopy(getNameAttribute(in));
has_value = getValueAttribute(in, &loc_value);
-
sequence_push(&(t->labels),str);
+ sequence_push(&(t->labels),str);
if(has_value) value = loc_value;
else value++;
if(has_value) value = loc_value;
else value++;
This page took
0.022823 seconds
and
4
git commands to generate.