projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
completely remove kernel headers
[lttv.git]
/
genevent
/
parser.c
diff --git
a/genevent/parser.c
b/genevent/parser.c
index 3bc227cfb154b9c5b9993d7cb93713428eb05865..2d6b27d5060718394983471a5738c62007f260fc 100644
(file)
--- a/
genevent/parser.c
+++ b/
genevent/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++;
@@
-994,7
+998,7
@@
type_descriptor_t * find_named_type(char *name, table_t * named_types)
{
type_descriptor_t *t;
{
type_descriptor_t *t;
- t = table_find(named_types,name);
+ t =
(type_descriptor_t*)
table_find(named_types,name);
return t;
}
return t;
}
This page took
0.022939 seconds
and
4
git commands to generate.