for (const VarlinkField *field = symbol->fields; field->field_type != _VARLINK_FIELD_TYPE_END_MARKER; field++) {
+ if (field->field_type == _VARLINK_FIELD_COMMENT)
+ continue;
+
assert(field->field_type == VARLINK_ENUM_VALUE);
if (streq_ptr(field->name, s)) {
for (const VarlinkField *field = symbol->fields; field->field_type != _VARLINK_FIELD_TYPE_END_MARKER; field++) {
+ if (field->field_type == _VARLINK_FIELD_COMMENT)
+ continue;
+
if (field->field_direction != direction)
continue;
/* This one has (nested) enonymous enums and structs */
static const char text[] =
"interface validate.test\n"
- "method Mymethod ( a:string, b:int, c:?bool, d:[]int, e:?[string]bool, f:?(piff, paff), g:(f:float) ) -> ()\n";
+ "method Mymethod ( \n"
+ "# piff \n"
+ "a:string,\n"
+ "#paff\n"
+ "b:int, c:?bool, d:[]int, e:?[string]bool, f:?(piff, paff), g:(f:float) ) -> ()\n";
assert_se(varlink_idl_parse(text, NULL, NULL, &parsed) >= 0);
test_parse_format_one(parsed);