/* TYPEDEC_NESTED */
+ if (!nested_declaration) {
+ fprintf(fd, "[error] %s: nested type is unknown.\n", __func__);
+ return NULL;
+ }
+
/* create array/sequence, pass nested_declaration as child. */
if (cds_list_empty(&node_type_declarator->u.type_declarator.u.nested.length)) {
fprintf(fd, "[error] %s: expecting length field reference or value.\n", __func__);
else if (!strcmp(s_right, "ASCII")
|| !strcmp(s_right, "ascii"))
encoding = CTF_STRING_ASCII;
+ else if (!strcmp(s_right, "none"))
+ encoding = CTF_STRING_NONE;
else {
fprintf(fd, "[error] %s: unknown string encoding \"%s\"\n", __func__, s_right);
g_free(s_right);
}
event->context = container_of(definition,
struct definition_struct, p);
- parent_def_scope = event->context->scope;
+ parent_def_scope = event->context->p.scope;
}
if (event->fields_decl) {
struct definition *definition =
}
event->fields = container_of(definition,
struct definition_struct, p);
- parent_def_scope = event->fields->scope;
+ parent_def_scope = event->fields->p.scope;
}
return 0;
}
stream->packet_context = container_of(definition,
struct definition_struct, p);
- parent_def_scope = stream->packet_context->scope;
+ parent_def_scope = stream->packet_context->p.scope;
}
if (stream->event_header_decl) {
struct definition *definition =
}
stream->event_header =
container_of(definition, struct definition_struct, p);
- parent_def_scope = stream->event_header->scope;
+ parent_def_scope = stream->event_header->p.scope;
}
if (stream->event_context_decl) {
struct definition *definition =
}
stream->event_context =
container_of(definition, struct definition_struct, p);
- parent_def_scope = stream->event_context->scope;
+ parent_def_scope = stream->event_context->p.scope;
}
stream->definition_scope = parent_def_scope;
}
trace->packet_header =
container_of(definition, struct definition_struct, p);
- parent_def_scope = trace->packet_header->scope;
+ parent_def_scope = trace->packet_header->p.scope;
}
trace->definition_scope = parent_def_scope;